I'm working on a report that will do the following:
- display a specific exam code for a date range that the user will specify in the report parameter
- take the resulting scheduled date and do another search for xx amount of days before and after that scheduled date
- return ALL exams for that second search
For example, if the user only searches for Port Knee X-Rays for 1/9/2014 and specifies 5 days for the date range, it should only return patients who have Knee X-Rays and any other eams from 1/4 (5 days prior) and 1/14 (5 days after).
I think I'm close to finishing this but ran into problems. I'm getting the "ALL other exams" (second search) results returned even when the patient has no Knee X-Ray. What can I do to have it hide GH1, Da & Db sections if a patient does not have the exam that the user specified in the report parameter?
One example is for test patient "PFSREG, GERONIMO I". This patient has no Port Knee exams and I don't want anything to show up for this patient. All sections should be hidden. For "Test, Kevin" on the other hand, there are two Port Knee exams and I should also see any exams before and after 5 days.
Please see attached report with sample data. You can ignore the last two fields on the far right. I was using them for reference purposes only.
Thanks.
- display a specific exam code for a date range that the user will specify in the report parameter
- take the resulting scheduled date and do another search for xx amount of days before and after that scheduled date
- return ALL exams for that second search
For example, if the user only searches for Port Knee X-Rays for 1/9/2014 and specifies 5 days for the date range, it should only return patients who have Knee X-Rays and any other eams from 1/4 (5 days prior) and 1/14 (5 days after).
I think I'm close to finishing this but ran into problems. I'm getting the "ALL other exams" (second search) results returned even when the patient has no Knee X-Ray. What can I do to have it hide GH1, Da & Db sections if a patient does not have the exam that the user specified in the report parameter?
One example is for test patient "PFSREG, GERONIMO I". This patient has no Port Knee exams and I don't want anything to show up for this patient. All sections should be hidden. For "Test, Kevin" on the other hand, there are two Port Knee exams and I should also see any exams before and after 5 days.
Please see attached report with sample data. You can ignore the last two fields on the far right. I was using them for reference purposes only.
Thanks.