Skip to content

Commit d1cdf17

Browse files
authored
Modified program to allow exemption based on a value within the description. The description should have (#1350)
a value of "exempt" to allow exemption from Cage notifications.
1 parent 983d6d5 commit d1cdf17

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

onprc_ehr/resources/queries/ehr_lookups/cageReview.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ LEFT JOIN (
9898
f.id,
9999
min(f.flag.value) as heightExemption
100100
FROM study.flags f
101-
WHERE f.isActive = true AND f.flag.category = 'Caging Note' and (f.flag.value = javaConstant('org.labkey.onprc_ehr.ONPRC_EHRManager.CAGE_HEIGHT_EXEMPTION_FLAG') OR f.flag.value = javaConstant('org.labkey.onprc_ehr.ONPRC_EHRManager.CAGE_MEDICAL_EXEMPTION_FLAG'))
101+
WHERE f.isActive = true AND f.flag.category = 'Caging Note' and f.flag.description like '%exempt%'
102102
GROUP BY f.Id
103103
) f on (f.Id = h.Id)
104104

@@ -108,7 +108,7 @@ LEFT JOIN (
108108
f.id,
109109
min(f.flag.value) as weightExemption
110110
FROM study.flags f
111-
WHERE f.isActive = true AND f.flag.category = 'Caging Note' and (f.flag.value = javaConstant('org.labkey.onprc_ehr.ONPRC_EHRManager.CAGE_WEIGHT_EXEMPTION_FLAG') or f.flag.value = javaConstant('org.labkey.onprc_ehr.ONPRC_EHRManager.CAGE_MEDICAL_EXEMPTION_FLAG'))
111+
WHERE f.isActive = true AND f.flag.category = 'Caging Note' and f.flag.description like '%exempt%'
112112
GROUP BY f.Id
113113
) wf on (wf.Id = h.Id)
114114

0 commit comments

Comments
 (0)