Hi All,
I am facing a problem with medications data.I am trying to create a dataset that has all the days upto one year and depending upon the start and stop dates of medication it will have a value of 1 or 0.
eg. day0 day1, day2--- day365.
When I use the array to create these variables , I am facing problem while filling the days in there. If the medication was continued for 12 days then day0 -day12 will have a value of 1 and all others variables will have the value 0 for all patients and so on.
Can anyone please help me as to how can this be programmed.Also some medications are stoped and then started again.
Thank you for your time.
Regards,
April