Skip to content

Commit 8dab23e

Browse files
committed
Changed WARN to ERROR for enddate exception validation.
1 parent 9bed473 commit 8dab23e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

onprc_ehr/resources/scripts/onprc_ehr/onprc_triggers.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,9 @@ exports.init = function(EHR){
11091109
*/
11101110
if (row.code != 'E-85760' && row.code != 'E-Y7735' && row.code != 'E-X0500' && row.code != 'E-Y9750' && row.code != 'E-X1380'){
11111111
if (!row.enddate) {
1112-
EHR.Server.Utils.addError(scriptErrors, 'enddate', 'Must enter enddate', 'WARN');
1112+
//Changed by Kollil on 5/28/25 - Changed the 'WARN' to 'ERROR' to tighten the end date validation.
1113+
//This will prevent the user to submit the med/diet data without passing the validation. The "Force Submit" button WILL NOT WORK with this setting.
1114+
EHR.Server.Utils.addError(scriptErrors, 'enddate', 'Must enter enddate', 'ERROR');
11131115
}
11141116
}
11151117
});

0 commit comments

Comments
 (0)