Report on the currently selected patient
Posted: Sat Sep 10, 2016 10:49 pm
To create a custom report for a particular patient you need to insert the patnum into the Where statement of the query.
Ex:
select patnum from patient
where patnum = '0999'
Is there any way to write the query in such a way as it can pull the current selected patient? The audit trail has a button to select the Current Patient, so I would think we should be able to write a query that can detect the Current Patient as well, no?
Ex:
select patnum from patient
where patnum = '0999'
Is there any way to write the query in such a way as it can pull the current selected patient? The audit trail has a button to select the Current Patient, so I would think we should be able to write a query that can detect the Current Patient as well, no?