There are two versions of this SQL: Firebird and MySQL. The MySQL version only applies to clients who are have migrated to MySQL.. All other Practices should continue to use the Firebird version of this code. Click to expand and copy the code you need. If you are unsure which code to use, please check with your Practice Administrator. |
About
This report shows all appointments with visit status “No Show,” along with confirmation status & date, location, appointment date, chart number, and type of visit for two schedule dates you specify.
A sample image of this SQL report run in the Database Viewer is shown below:
Caveats
The provider name comes from the column on the schedule.
SQL Code: Firebird
To highlight and copy the code below to your clipboard, simply click the Copy button.
select loc_name, patno, appt_date, code1 as visit_type, staffname, visit_status, confirm_status, confirm_date from schedule inner join staff1 on staff1.staffid = schedule.addr_id inner join location on location.id = schedule.loc_id Where appt_date between :start_date and :end_date and patno is not null and patno >99 and visit_status like '%No Show%'
SQL Code: MySQL
To highlight and copy the code below to your clipboard, simply click the Copy button.
select loc_name, patno, appt_date, code1 as visit_type, staffname, visit_status, confirm_status, confirm_date from schedule inner join staff1 on staff1.staffid = schedule.addr_id inner join location on location.id = schedule.loc_id Where appt_date between :start_date and :end_date and patno is not null and patno >99 and visit_status like '%No Show%'