Important Content Update Message
We are currently updating the OP Help Center content for the release of OP 20. OP 20 (official version 20.0.x) is the certified, 2015 Edition, version of the Office Practicum software. This is displayed in your software (Help tab > About) and in the Help Center tab labeled Version 20.0. We appreciate your patience as we continue to update all of our content.

SQL: Unbilled Well Notes


This report shows all well notes with nothing billed on those dates of service for a date of service range that you specify.

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


A well note will show with a blank row under "CODES" if no CPT codes of any kind were billed on that date of service.


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

select physical.patno, fname, lname, physical.date1, dwp, codes from physical
inner join register on register.patno = physical.patno
left outer join (select patno, date1, list(cptcode,',') as codes from archive_transactions where date1 between :start_Date and :end_date and archive_Flag = 1 and cptcode not in ('1','2','3','4') group by patno, date1) a on a.patno = physical.patno and a.date1 = physical.date1
where physical.date1 between :start_Date and :end_date