From 5b44497c90667537d290fffbb4353e93ed9d2e0f Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Fri, 10 Apr 2026 14:44:10 -0700 Subject: [PATCH 1/2] New query to resolve rerqeust for Discrepancy Report for R&L when Procedures are carged against an incorrect Alias --- .../onprc_ehr/GJ_BillingDescrepenciesR&.sql | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 onprc_ehr/resources/queries/onprc_ehr/GJ_BillingDescrepenciesR&.sql diff --git a/onprc_ehr/resources/queries/onprc_ehr/GJ_BillingDescrepenciesR&.sql b/onprc_ehr/resources/queries/onprc_ehr/GJ_BillingDescrepenciesR&.sql new file mode 100644 index 000000000..854494058 --- /dev/null +++ b/onprc_ehr/resources/queries/onprc_ehr/GJ_BillingDescrepenciesR&.sql @@ -0,0 +1,57 @@ +/* +===================================================================== + Query Name : GJ_BillingDescrepenciesR&L + Schema : onprc_ehr + Purpose : To provide the R&L team with a tool to idetofy when a procedure charges will be generated + Point to a alias that is not associcated witht eh Aniomals assigned project + Issue / Ticket : EHR Issue 11870 + Feature Branch: + Pull Request: + Development Status: In development FB posted to Test E + Business Context: + Resolution Logic: + Parameters : Non Defined + Output : Query Grid + Validation Notes: Thi + Author : jonesga + Created : 2026-04-10 + Last Modified : 2026-04-10 +===================================================================== +*/ + + +With procedureFees as ( + Select + pfr.id, + pfr.date, + pfr.project, + pfr.account, + pfr.chargetype, + pfr.assistingStaff, + pfr.procedureid, + pfr.chargeID, + pfr.serviceCenter, + pfr.item, + pfr.category, + pfr.sourceRecord, + pfr.unitcost, + pfr.NIHRate, + pfr.creditAccount, + pfr.matchesProject, + pfr.isAdjustment, + pfr.IsAcceptingCharges, + pfr.isExpiredAccount, + pfr.currentActiveAlias + from onprc_billing.procedurefeeRates pfr ) + +Select pf.* from procedureFees pf + +/*I want to add these are parameters on a webpart after we validate the query + +WHERE + (?matchesProject IS NULL OR pfr.matchesProject = ?matchesProject) + AND (?isAdjustment IS NULL OR pfr.isAdjustment = ?isAdjustment) + AND (?isAcceptingCharges IS NULL OR pfr.isAcceptingCharges = ?isAcceptingCharges) + AND (?isExpiredAccount IS NULL OR pfr.isExpiredAccount = ?isExpiredAccount) + AND (?currentActiveAlias IS NULL OR pfr.currentActiveAlias = ?currentActiveAlias) +*/ \ No newline at end of file From 68ea8712a884ec40befdc50bb77f8b124ab26823 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Fri, 10 Apr 2026 14:52:18 -0700 Subject: [PATCH 2/2] New query to resolve rerqeust for Discrepancy Report for R&L when Procedures are carged against an incorrect Alias --- .../resources/queries/onprc_ehr/GJ_BillingDescrepenciesR&.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/onprc_ehr/resources/queries/onprc_ehr/GJ_BillingDescrepenciesR&.sql b/onprc_ehr/resources/queries/onprc_ehr/GJ_BillingDescrepenciesR&.sql index 854494058..919858c7f 100644 --- a/onprc_ehr/resources/queries/onprc_ehr/GJ_BillingDescrepenciesR&.sql +++ b/onprc_ehr/resources/queries/onprc_ehr/GJ_BillingDescrepenciesR&.sql @@ -17,6 +17,7 @@ Created : 2026-04-10 Last Modified : 2026-04-10 ===================================================================== +2nd Try bad Github token */