Skip to content

Commit 4512149

Browse files
authored
25.7 fb bulk clinical entry uploads (#1476)
* Created an upload process. * Created an upload process. * Modified Bulk Clinical Entry to include option to monkey ids.
1 parent e4c5db7 commit 4512149

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/*
2+
* Copyright (c) 2014-2019 LabKey Corporation
3+
*
4+
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
5+
*/
6+
Ext4.define('ONPRC_EHR.panel.ExamInstructionsPanel', {
7+
extend: 'Ext.panel.Panel',
8+
alias: 'widget.onprc_ehr-examinstructionspanel',
9+
10+
initComponent: function(){
11+
var buttons = [];
12+
LDK.Assert.assertNotEmpty('No data entry panel', this.dataEntryPanel);
13+
var btnCfg = EHR.DataEntryUtils.getDataEntryFormButton('APPLYFORMTEMPLATE');
14+
if (btnCfg){
15+
btnCfg = this.dataEntryPanel.configureButton(btnCfg);
16+
if (btnCfg){
17+
btnCfg.defaultDate = new Date();
18+
btnCfg.text = 'Apply Template To Form';
19+
buttons.push(btnCfg);
20+
}
21+
}
22+
23+
24+
Ext4.apply(this, {
25+
defaults: {
26+
27+
},
28+
bodyStyle: 'padding: 5px;',
29+
title: 'Instructions',
30+
items: [{
31+
html: 'Use the \'Apply Form Template\' button below to load predefined input values ',
32+
maxWidth: Ext4.getBody().getWidth() * 0.8,
33+
style: 'padding-top: 10px;padding-bottom: 10px;',
34+
border: false
35+
},{
36+
layout: 'hbox',
37+
border: false,
38+
defaults: {
39+
style: 'margin-right: 5px;'
40+
},
41+
items: buttons
42+
}]
43+
});
44+
45+
this.callParent(arguments);
46+
}
47+
48+
});

onprc_ehr/src/org/labkey/onprc_ehr/dataentry/BulkClinicalEntryFormType.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import org.labkey.api.ehr.EHRService;
1919
import org.labkey.api.ehr.dataentry.DataEntryFormContext;
2020
import org.labkey.api.ehr.dataentry.FormSection;
21+
import org.labkey.api.ehr.dataentry.NonStoreFormSection;
2122
import org.labkey.api.ehr.dataentry.SimpleGridPanel;
2223
import org.labkey.api.ehr.dataentry.TaskForm;
2324
import org.labkey.api.ehr.dataentry.TaskFormSection;
@@ -43,6 +44,7 @@ public class BulkClinicalEntryFormType extends TaskForm
4344
public BulkClinicalEntryFormType(DataEntryFormContext ctx, Module owner)
4445
{
4546
super(ctx, owner, NAME, "Bulk Clinical Entry", "Clinical", Arrays.asList(
47+
new NonStoreFormSection("Instructions", "Instructions", "onprc_ehr-examinstructionspanel", Arrays.asList(ClientDependency.supplierFromPath("onprc_ehr/panel/ExamInstructionsPanel.js"))),
4648
new TaskFormSection(),
4749
new AnimalDetailsFormSection(),
4850

@@ -82,6 +84,10 @@ public BulkClinicalEntryFormType(DataEntryFormContext ctx, Module owner)
8284
addClientDependency(ClientDependency.supplierFromPath("onprc_ehr/panel/ExamCasesDataEntryPanel.js"));
8385
setDisplayReviewRequired(true);
8486
setJavascriptClass("ONPRC_EHR.panel.ExamCasesDataEntryPanel");
87+
88+
//Added 9-18-2025 R. Blasa
89+
addClientDependency(ClientDependency.supplierFromPath("onprc_ehr/panel/ExamInstructionsPanel.js"));
90+
8591
}
8692

8793
@Override

0 commit comments

Comments
 (0)