Skip to content

Commit

Permalink
Update HIV Discontinuation for to allow future date for Effective dis… (
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatheka authored Sep 30, 2024
1 parent 73def87 commit 8beec08
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions configuration/ampathforms/HIV_Discontinuation.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,9 @@
"validators": [
{
"type": "date",
"allowFutureDates": "false"
},
{
"type": "js_expression",
"failsWhenExpression": "(new moment(encDate)).isAfter((new moment(myValue)), 'day'))",
"message": "Discontinuation Date should not be greater than the encounter date."
"allowFutureDates": "true"
}

]
},
{
Expand Down

0 comments on commit 8beec08

Please sign in to comment.