We are currently updating the OP Help Center content for the release of OP 14.19 or OP 19. OP 19 is a member of the certified OP 14 family of products (official version is 14.19.1), which you may see in your software (such as in Help > About) and in the Help Center tabs labeled 14.19. You may also notice that the version number in content and videos may not match the version of your software, and some procedural content may not match the workflow in your software. We appreciate your patience and understanding as we make these enhancements.

SQL: Review Cancelled Appointments


This report shows the patient name, DOB, patient phone number, and schedule information (scheduled provider, date/time, and location) for cancelled appointments in a date range that you specify.

A sample image of this SQL report run in the Database Viewer is shown below:




To highlight and copy the code below to your clipboard, simply click the Copy button.

select uniqkey, patno, ( fname || ' ' || lname) as patient_name,  birthdat, code1 as appt_type, hphone,  loc_name, staffname as scheduled_provider, dateadd(minute,start_time,appt_date) as appt_time from schedule
inner join register on register.patno = schedule.patno
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 visit_status = 'Cancelled'
 order by patno