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: Active Patients with Non-Medication Allergies


This report shows all active patients with active-non medication allergies, along with detail about the allergy.

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




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

select patno, startdate, icd_1, icd_1_descript, snomed1, snomed1_descript, note1, severity, symptoms,ref_name as refer_coord from chartnotes
inner join register on register.patno = chartnotes.patno
where section_subheading = 'NON-MEDICATION ALLERGY'
and status_pat = 'ACTIVE' and problem_list = 'Y'
order by patno