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: 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