Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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 ? "<b>" + LABKEY.Utils.encodeHtml(values.category) + ":</b> " : "") + 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
}
}

}

}
});
Original file line number Diff line number Diff line change
Expand Up @@ -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")
));
Expand All @@ -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"));
Expand Down Expand Up @@ -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"));

}

Expand Down