crystalclear01
MIS
All,
CR 9 ORCL 8
SCENARIO:
100 Patients total:
20 of 100 Seen by Doctor A only
30 of 100 Seen by Doctor B only
50 of 100 Seen by both Doctor A and B together.
(yes the records are duplicated in the DB, once showing with Dr. A and once showing with Dr. B)
Requirements:
1. Credit each doctor with patients seen by themselves.
2. Credit doctor B with all patients seen by both A & B
Results desired:
Report for Doctor A must contain ONLY 20 patients
Report for Doctor B should contain 80 patients
There are many other details which I'll spare you. The crux of this situation is that I'm able to accurately report for Doctor B by sorting out the 20 patients in his report by filtering Doctor A out in my select statement.
My question is how can I do this for Dr. A?
If I filter out Dr. B then Dr A gets undue credit for his 20 + 50 = 70. He should only get credit for 20.
So far I have been able to generate an array at the end of Dr. A's report containing all the charts he's seen.(all 80 of them)
I would like to pass each one of the elements of this array to a sub -or main???- report to filter them out in the selection criteria.
Can this be done?
Does this make sense?
Am I complicating things?
Deadline looming...Aaargh!!
Help, Help, Help...
CR 9 ORCL 8
SCENARIO:
100 Patients total:
20 of 100 Seen by Doctor A only
30 of 100 Seen by Doctor B only
50 of 100 Seen by both Doctor A and B together.
(yes the records are duplicated in the DB, once showing with Dr. A and once showing with Dr. B)
Requirements:
1. Credit each doctor with patients seen by themselves.
2. Credit doctor B with all patients seen by both A & B
Results desired:
Report for Doctor A must contain ONLY 20 patients
Report for Doctor B should contain 80 patients
There are many other details which I'll spare you. The crux of this situation is that I'm able to accurately report for Doctor B by sorting out the 20 patients in his report by filtering Doctor A out in my select statement.
My question is how can I do this for Dr. A?
If I filter out Dr. B then Dr A gets undue credit for his 20 + 50 = 70. He should only get credit for 20.
So far I have been able to generate an array at the end of Dr. A's report containing all the charts he's seen.(all 80 of them)
I would like to pass each one of the elements of this array to a sub -or main???- report to filter them out in the selection criteria.
Can this be done?
Does this make sense?
Am I complicating things?
Deadline looming...Aaargh!!
Help, Help, Help...