Skip to content

Commit

Permalink
Fix for - HIV confirmed Date must not be earlier than Date of Birth
Browse files Browse the repository at this point in the history
  • Loading branch information
melkam-mekonnen committed Jul 26, 2024
1 parent 57b937d commit fa5315d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/forms/intake-a.json
Original file line number Diff line number Diff line change
Expand Up @@ -736,6 +736,11 @@
"type": "js_expression",
"failsWhenExpression": "myValue > enrollment_date",
"message": "HIV confirmation date should be earlier than enrollment date"
},
{
"type": "js_expression",
"failsWhenExpression": "myValue < new Date(patient.birthDate)",
"message": "HIV confirmation date should not be earlier than Birth date"
}
],
"id": "date_confirmed"
Expand Down

0 comments on commit fa5315d

Please sign in to comment.