diff --git a/configuration/ampathforms/HIV_Discontinuation.json b/configuration/ampathforms/HIV_Discontinuation.json index b99bc979..5ec69a4e 100644 --- a/configuration/ampathforms/HIV_Discontinuation.json +++ b/configuration/ampathforms/HIV_Discontinuation.json @@ -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" } + ] }, {