diff --git a/onprc_ehr/resources/web/onprc_ehr/model/sources/Bulk_Clinic_Pairing_Properties.js b/onprc_ehr/resources/web/onprc_ehr/model/sources/Bulk_Clinic_Pairing_Properties.js new file mode 100644 index 000000000..8c01cc7d2 --- /dev/null +++ b/onprc_ehr/resources/web/onprc_ehr/model/sources/Bulk_Clinic_Pairing_Properties.js @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2016-2017 LabKey Corporation + * + * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 + */ + +//Created 6-7-2016 R.Blasa +EHR.model.DataModelManager.registerMetadata('Bulk_Pairing_Properties', { + allQueries: { + + }, + byQuery: { + + 'study.pairings': { + + outcome: { + hidden: true + }, + Id: { + allowBlank: false, + columnConfig: { + width: 100 + } + }, + infant_id: { + hidden: true + }, + + eventtype: { + columnConfig: { + width: 250 + }, + editorConfig: { + caseSensitive: false, + anyMatch: true, + listConfig: { + innerTpl: '{[(values.category ? "" + LABKEY.Utils.encodeHtml(values.category) + ": " : "") + LABKEY.Utils.encodeHtml(values.value)]}', + getInnerTpl: function () { + return this.innerTpl; + } + } + }, + lookup: { + xtype: 'combobox', + schemaName: 'ehr_Lookups', + queryName: 'pairingstarttype', + columns: 'value,category,sort_order,date_disabled', + keyColumn: 'value', + displayColumn: 'value', + sort: 'category,value,sort_order', + filterArray: [ + LABKEY.Filter.create('date_disabled', null, LABKEY.Filter.Types.ISBLANK), + LABKEY.Filter.create('category', 'STF Clinical', LABKEY.Filter.Types.EQUAL) + ] + } + }, + outcome: { + hidden: true + }, + goal: { + hidden: true + }, + endeventType: { + columnConfig: { + width: 250 + }, + lookup: { + filterArray: [ + LABKEY.Filter.create('date_disabled', null, LABKEY.Filter.Types.ISBLANK) + ] + } + }, + enddate: { + hidden: false + }, + separationreason: { + hidden: true + }, + observation: { + hidden: true + }, + + remark2: { + xtype: 'textareafield', + columnConfig: { + width: 200 + } + }, + room: { + allowBlank: false, + columnConfig: { + width: 130 + } + }, + cage: { + allowBlank: false, + columnConfig: { + width: 100 + } + }, + priorgrouphousing: { + hidden: true + }, + category: { + allowBlank: false, + columnConfig: { + width: 150 + }, + lookup: { + filterArray: [ + LABKEY.Filter.create('date_disabled', null, LABKEY.Filter.Types.ISBLANK), + LABKEY.Filter.create('value', 'STF Clinical', LABKEY.Filter.Types.EQUAL) + ] + } + }, + other_infant: { + hidden: true + }, + lowestcage: { + hidden: false + }, + remark: { + xtype: 'textareafield', + columnConfig: { + width: 200 + } + } + + } + + } +}); \ No newline at end of file diff --git a/onprc_ehr/src/org/labkey/onprc_ehr/dataentry/BulkClinicalEntryFormType.java b/onprc_ehr/src/org/labkey/onprc_ehr/dataentry/BulkClinicalEntryFormType.java index 2c0d89d73..78cdb5d56 100644 --- a/onprc_ehr/src/org/labkey/onprc_ehr/dataentry/BulkClinicalEntryFormType.java +++ b/onprc_ehr/src/org/labkey/onprc_ehr/dataentry/BulkClinicalEntryFormType.java @@ -55,6 +55,7 @@ public BulkClinicalEntryFormType(DataEntryFormContext ctx, Module owner) new DrugAdministrationFormSection(ClientDependency.supplierFromPath("onprc_ehr/window/ONPRC_AddScheduledTreatmentWindow.js")), new TreatmentOrdersFormSection(), new WeightFormSection(), + new PairingFormSection(), new SimpleGridPanel("study", "blood", "Blood Draws"), new SimpleGridPanel("ehr", "snomed_tags", "Diagnostic Codes") )); @@ -64,6 +65,8 @@ public BulkClinicalEntryFormType(DataEntryFormContext ctx, Module owner) s.addConfigSource("ClinicalDefaults"); //Added 6-4-2015 Blasa s.addConfigSource("ClinicalProcedures"); + + s.addConfigSource("Bulk_Pairing_Properties"); } addClientDependency(ClientDependency.supplierFromPath("ehr/model/sources/ClinicalDefaults.js")); @@ -91,7 +94,8 @@ public BulkClinicalEntryFormType(DataEntryFormContext ctx, Module owner) //Added 11-4-2025 R. Blasa addClientDependency(ClientDependency.supplierFromPath("onprc_ehr/window/FormTemplateWindow.js")); - + //Added 6-22-2026 R.Blasa + addClientDependency(ClientDependency.supplierFromPath("/onprc_ehr/model/sources/Bulk_Clinic_Pairing_Properties.js")); }