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: Find Unbilled Vaccines

About

This report shows vaccines that were administered by your practice but do not have the corresponding expected CPT code in claims for the same date of service.

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

Caveats

  • You must be using OP’s billing module.
  • Vaccines will show up on this list if:
  • A nurse had unchecked the “Vaccines to Superbill” 
  • The administration date in the patient’s chart and the billed date in Claims are different
  • You are not using the expected CVX code for a particular vaccine
  • You are not using the expected CPT code for a particular CVX code
Note: The CPT Code and Date1 columns will not have any data.

Code

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

select distinct * from (
SELECT VACCINE1_1.PATNO, VACCINE1_1.VACNAME, 
       VACCINE1_1.VACDATE, VACCINE1_1.VFC1, 
       VACCINE1_1.ID, VACCINE1_1.ADMIN_ROUTE, 
       VACCINE1_1.CVXCODE, VACCINE1_1.OFFCODE, 
       ARCHIVE_TRANSACTIONS_1.CPTCODE, 
       ARCHIVE_TRANSACTIONS_1.DATE1, 
       VACCINE1_1.S_ADDR_ID, STAFF1_1.STAFFNAME
FROM VACCINE1 VACCINE1_1
      LEFT OUTER JOIN (select patno, date1, cptcode from ARCHIVE_TRANSACTIONS where cptcode between '90620' and '90746') ARCHIVE_TRANSACTIONS_1 ON 
     (ARCHIVE_TRANSACTIONS_1.PATNO = VACCINE1_1.PATNO)
      AND (ARCHIVE_TRANSACTIONS_1.DATE1 = VACCINE1_1.VACDATE)
      INNER JOIN VACNAMES VACNAMES_1 ON 
     (VACNAMES_1.VACNYC = VACCINE1_1.CVXCODE)
      INNER JOIN STAFF1 STAFF1_1 ON 
     (STAFF1_1.STAFFID = VACCINE1_1.S_ADDR_ID)
WHERE 
      ( VACCINE1_1.VACDATE BETWEEN :start_date and :end_date )
       AND ( VACCINE1_1.ADMIN_ROUTE IS NOT NULL  )
ORDER BY VACCINE1_1.PATNO, VACCINE1_1.VACDATE, 
         VACCINE1_1.VACNAME
)
where cptcode is null