We are currently updating the OP Help Center content for the release of OP 19, which is a member of the certified OP 14 family of products. OP 19’s 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: 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