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: Find Synagis Candidates

About

This report shows chart number, first name, and last name of all active patients who have “Synagis indicated” in their birth history.

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

Caveats

  • This will show only active patients.
  • There is no DOB cutoff in this report, but it will show the youngest patients first.
  • In order to list a patient, the Synagis Indicated  checkbox must be selected in the Patient Chart/History/Perinatal History/Birth Info tab. A patient will not show in the list just because a patient is listed with a diagnosis code as having been premature, having chronic lung disease, etc.

Code

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

select patno, fname, lname, birthdat, familyimmunostatus from medhist
inner join register on register.patno = medhist.patno
where status_pat = 'ACTIVE' and familyimmunostatus not in ('0','N')
order by birthdat desc