Skip to content

Commit

Permalink
#1408 | Run validation rule on encounter cancellation form
Browse files Browse the repository at this point in the history
  • Loading branch information
1t5j0y committed May 30, 2024
1 parent fe9253e commit b11ce8c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ class ProgramEncounterCancelState extends AbstractDataEntryState {
return validationResults;
}

validateEntityAgainstRule(ruleService) {
return ruleService.validateAgainstRule(this.programEncounter, this.formElementGroup.form, 'EncounterCancellation');
}

getEffectiveDataEntryDate() {
return this.programEncounter.cancelDateTime;
}
Expand Down

0 comments on commit b11ce8c

Please sign in to comment.