Skip to content

Commit

Permalink
24.11 fb surgery procedure default blood (#1257)
Browse files Browse the repository at this point in the history
* Modified Surgical Procedure default entries for blood.

* Modified Surgical Procedure default entries for blood.

* Modified Surgical Procedure default entries for blood.

* Modified Surgical Procedure default entries for blood.

* Modified Surgical Procedure default entries for blood.

* Modified Surgical Procedure default entries for blood.

* Modified Surgical Procedure default entries for blood.

* Modified Surgical input forms to include blood input form and accompanying surgical procedure defaults.

* Modified Surgical input forms to include blood input form and accompanying surgical procedure defaults.

* Modified Surgical input forms to include blood input form and accompanying surgical procedure defaults.

* Modified Surgical input forms to include blood input form and accompanying surgical procedure defaults.

* Modified Surgical input forms to include blood input form and accompanying surgical procedure defaults.
  • Loading branch information
Ohsudev authored Feb 16, 2025
1 parent 50e6b2d commit dda4ef3
Show file tree
Hide file tree
Showing 9 changed files with 621 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CREATE TABLE onprc_ehr.procedure_default_blood (
rowid int identity(1,1),
procedureid int,
sampletype varchar(300) Null,
additionalServices varchar(1000) Null,
reason varchar(300) Null,
instructions varchar(2000) Null,
chargetype varchar(400) Null


CONSTRAINT PK_procedure_default_blood PRIMARY KEY (rowid)
)

GO
30 changes: 30 additions & 0 deletions onprc_ehr/resources/schemas/onprc_ehr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,36 @@

</columns>
</table>
<table tableName="procedure_default_blood" tableDbType="TABLE" useColumnOrder="true">
<javaCustomizer class="org.labkey.ehr.table.DefaultEHRCustomizer" />
<auditLogging>DETAILED</auditLogging>
<tableTitle>Default Surgical Observations Per Procedure</tableTitle>
<titleColumn>rowid</titleColumn>
<columns>
<column columnName="rowid">
<isHidden>true</isHidden>
</column>
<column columnName="procedureid">
<fk>
<fkDbSchema>ehr_lookups</fkDbSchema>
<fkTable>procedure</fkTable>
<fkColumnName>rowid</fkColumnName>
</fk>
</column>

<column columnName="sampletype"/>

<column columnName="additionalServices"/>

<column columnName="reason"/>

<column columnName="instructions"/>

<column columnName="chargetype"/>

</columns>
</table>




Expand Down
5 changes: 5 additions & 0 deletions onprc_ehr/resources/web/onprc_ehr/model/sources/Surgery.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ EHR.model.DataModelManager.registerMetadata('onprc_Surgery', {
}
}
},
'study.blood': {
reason: {
defaultValue: 'Surgical'
}
},
'ehr.encounter_summaries': {
category: {
defaultValue: 'Narrative'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* Copyright (c) 2014-2019 LabKey Corporation
*
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
*/
Ext4.define('ONPRC_EHR.panel.SurgeryInstructionsPanel', {
extend: 'Ext.panel.Panel',
alias: 'widget.onprc_ehr-surgeryinstructionspanel',

initComponent: function(){
var buttons = [];
LDK.Assert.assertNotEmpty('No data entry panel', this.dataEntryPanel);
var btnCfg = EHR.DataEntryUtils.getDataEntryFormButton('APPLYENCOUNTERDEFAULTSAMENDED');
if (btnCfg){
btnCfg = this.dataEntryPanel.configureButton(btnCfg);
if (btnCfg){
btnCfg.text = 'Add Procedure Defaults';
buttons.push(btnCfg);
}
}

Ext4.apply(this, {
defaults: {

},
bodyStyle: 'padding: 5px;',
title: 'Instructions',
items: [{
html: 'This form is designed for surgery entry. The top section contains basic information on the procedure(s). The bottom sections can be used to enter the narrative, medications, etc. Once you enter entered the animal(s) and procedures, use the bottom below to apply defaults to the other sections for those procedures.',
maxWidth: Ext4.getBody().getWidth() * 0.8,
style: 'padding-top: 10px;padding-bottom: 10px;',
border: false
},btnCfg]
});

this.callParent(arguments);
}

});
Loading

0 comments on commit dda4ef3

Please sign in to comment.