Hi,
I have a database which has patient episode information. Each patient will recieve a Cycle of treatment. Within the cycle can be any number of treatment days. For example Cycle 1 may have treatment days 1 and 8. And when they go onto Cycle 2 they may have treatment days 1, 8 and 15. Just depends how the Cycles of treatment are defined.
I'm trying to get a figure for the number of treatment days the patient has attended for a given period. For example in the above senario they will have attended for 5 treatment days in total. 2 days in Cycle 1 and 3 days in Cycle 2.
In the database there is a row for every drug given on a particular treatment day. The number of rows therefore cannot be counted. I did a distinct count on the treatment days but where a there are 2 x "Day 1" treatment days it obviously counts this as 1, and not 2. If I do a standard count I get all the rows for that treatment day which is incorrect.
I have grouped the report and dropped a distinct count field onto the report, then exported into EXCEL and used the sum function to give a value, but hey not very clever...
For some reason I cannnot find out how to do this...
Any ideas ? much appreciated as ever !
Regards
Steve
I have a database which has patient episode information. Each patient will recieve a Cycle of treatment. Within the cycle can be any number of treatment days. For example Cycle 1 may have treatment days 1 and 8. And when they go onto Cycle 2 they may have treatment days 1, 8 and 15. Just depends how the Cycles of treatment are defined.
I'm trying to get a figure for the number of treatment days the patient has attended for a given period. For example in the above senario they will have attended for 5 treatment days in total. 2 days in Cycle 1 and 3 days in Cycle 2.
In the database there is a row for every drug given on a particular treatment day. The number of rows therefore cannot be counted. I did a distinct count on the treatment days but where a there are 2 x "Day 1" treatment days it obviously counts this as 1, and not 2. If I do a standard count I get all the rows for that treatment day which is incorrect.
I have grouped the report and dropped a distinct count field onto the report, then exported into EXCEL and used the sum function to give a value, but hey not very clever...
For some reason I cannnot find out how to do this...
Any ideas ? much appreciated as ever !
Regards
Steve