-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Modified Surgical Rounds validation process. * Modified Mense input form to allow error messages to be displayed when trigger scripts generates a warning. * Modified Mense input form to allow error messages to be displayed when trigger scripts generates a warning.
- Loading branch information
Showing
3 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* Copyright (c) 2014-2019 LabKey Corporation | ||
* | ||
* Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 | ||
*/ | ||
EHR.model.DataModelManager.registerMetadata('MensesAddendum', { | ||
byQuery: { | ||
'study.clinical_observations': { | ||
category: { | ||
defaultValue: 'Menses' | ||
}, | ||
observation: { | ||
defaultValue: 'M' | ||
} | ||
} | ||
} | ||
}); | ||
|
||
|
||
EHR.DataEntryUtils.registerDataEntryFormButton('MENSEFINAL', { | ||
text: 'Submit Final', | ||
name: 'submit', | ||
requiredQC: 'Completed', | ||
targetQC: 'Completed', | ||
errorThreshold: 'INFO', | ||
successURL: LABKEY.ActionURL.getParameter('srcURL') || LABKEY.ActionURL.getParameter('returnUrl') || LABKEY.ActionURL.getParameter('returnURL') || LABKEY.ActionURL.buildURL('ehr', 'enterData.view'), | ||
disabled: true, | ||
itemId: 'finalBtn', | ||
handler: function(btn){ | ||
var panel = btn.up('ehr-dataentrypanel'); | ||
Ext4.Msg.confirm('Finalize Form', 'You are about to finalize this form. Do you want to do this?', function(v){ | ||
if(v == 'yes') | ||
this.onSubmit(btn); | ||
}, this); | ||
}, | ||
disableOn: 'ERROR' | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters