From fe3f8a260eca5c6d7ae5dd13281cdc13c351408f Mon Sep 17 00:00:00 2001 From: Ohsudev <76500320+Ohsudev@users.noreply.github.com> Date: Thu, 31 Oct 2024 00:24:31 -0700 Subject: [PATCH] Modified Pathology Misc Charges query --- .../resources/queries/study/NecropsyToMiscCharges.sql | 3 ++- .../resources/web/onprc_ehr/model/sources/BiopsyNotes.js | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/onprc_ehr/resources/queries/study/NecropsyToMiscCharges.sql b/onprc_ehr/resources/queries/study/NecropsyToMiscCharges.sql index 8a41e254c..ecc09b49c 100644 --- a/onprc_ehr/resources/queries/study/NecropsyToMiscCharges.sql +++ b/onprc_ehr/resources/queries/study/NecropsyToMiscCharges.sql @@ -24,7 +24,8 @@ FROM study.encounters b Left join ( Select a.Id, a.date, a.project, a.chargeId, a.quantity, a.unitCost, a.chargecategory, a.QCState, a.taskid from onprc_billing.miscCharges a - Where a.chargeid.rowid in (4484,4485,4486,4487,4488,4489,5283, 4516,5296,5297,5298) + Where a.chargeid.rowid in (select j.rowid from onprc_billing_public.chargeableItems j where j.category = 'Pathology' + And j.active = true) group by a.Id, a.date, a.project, a.chargeId, a.quantity, a.unitCost, a.chargecategory, a.QCState, a.taskid ) r1 on (r1.id = b.id ) diff --git a/onprc_ehr/resources/web/onprc_ehr/model/sources/BiopsyNotes.js b/onprc_ehr/resources/web/onprc_ehr/model/sources/BiopsyNotes.js index 5cbca2f8c..c07de6bf3 100644 --- a/onprc_ehr/resources/web/onprc_ehr/model/sources/BiopsyNotes.js +++ b/onprc_ehr/resources/web/onprc_ehr/model/sources/BiopsyNotes.js @@ -18,6 +18,14 @@ EHR.model.DataModelManager.registerMetadata('Biopsy_Notes', { project: { xtype: 'onprc_ehr-projectentryfield' }, + filename: { + hidden: false, + shownInGrid: true, + label: 'Pdf File', + columnConfig: { + width: 200 + } + }, remark: { defaultValue: 'CLINICAL HISTORY: \n\n\nGROSS DESCRIPTION: \n\n\nHISTOLOGIC DIAGNOSIS: \n\n\nCOMMENTS: \n\n\n', hidden: false