From 8beec080b004303678c12d90d8924c5c7abc3ad1 Mon Sep 17 00:00:00 2001 From: mmatheka <99263785+mmatheka@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:08:14 +0300 Subject: [PATCH] =?UTF-8?q?Update=20HIV=20Discontinuation=20for=20to=20all?= =?UTF-8?q?ow=20future=20date=20for=20Effective=20dis=E2=80=A6=20(#796)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configuration/ampathforms/HIV_Discontinuation.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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" } + ] }, {