Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

23.11 fb surgery default procedure blood #1237

Open
wants to merge 7 commits into
base: release23.11-SNAPSHOT
Choose a base branch
from
Open
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,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="hargetype"/>

</columns>
</table>




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
Loading