From bc74553c55ac85789f1236d09d0d6ba05c5132d1 Mon Sep 17 00:00:00 2001 From: Ohsudev <76500320+Ohsudev@users.noreply.github.com> Date: Mon, 24 May 2021 10:35:22 -0700 Subject: [PATCH] Modified program to allow reporting to conform into Jarrett's requirements --- .../queries/EHR_ComplianceDB/ComplianceRecentTests.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/ComplianceRecentTests.sql b/ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/ComplianceRecentTests.sql index 4495fdfb3..6453a3232 100644 --- a/ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/ComplianceRecentTests.sql +++ b/ONPRC_EHR_ComplianceDB/resources/queries/EHR_ComplianceDB/ComplianceRecentTests.sql @@ -26,7 +26,7 @@ SELECT WHEN (e.isActive = false) THEN NULL --dont bother to include if the employee is not active WHEN (rn.requirementname IS NULL) THEN NULL WHEN (ee.RequirementName IS NOT NULL) THEN NULL -----Added 12-17-2020 - WHEN (T1.MostRecentDate IS NULL) THEN NULL + WHEN (T1.MostRecentDate IS NULL) THEN 0 ---Modified: 5-18-2021 restore original WHEN(rn.ExpirePeriod = 0 OR rn.ExpirePeriod IS NULL) THEN NULL ELSE (rn.expirePeriod - (age_in_months(T1.MostRecentDate, curdate()))) END AS double)