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: Finalized Notes for Dates

About

This report shows notes that were finalized between two dates that you specify.

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

Caveats

  • The date range you specify is the date range when finalization occurred, not necessarily the date of service.
  • Only finalized notes (both encounter and well) are shown.
  • COSIGN_ADDR_ID is the OP user ID of the note-cosigner, and COSIGN DATE is the timestamp when the note was cosigned.  If those last  two fields are blank, the note was not co-signed.

Code

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

select patno, date1 as dos, 'encounter note' as note_type, staffname as rendering, final_date, cosign_addr_id, cosign_date from enc_note
inner join staff1 on staff1.staffid = enc_note.p_addr_id
 where final_date between :Start_date and :end_date
 
union
 
select patno, date1 as dos, 'well note' as note_type, staffname as rendering, final_date, cosign_addr_id, cosign_date from physical
inner join staff1 on staff1.staffid =physical.p_addr_id
 where final_date between :Start_date and :end_date