From f4b433da1cb26173d92b36078cc6468f5ea2b85e Mon Sep 17 00:00:00 2001 From: ErickSomie <101555608+ErickSomie@users.noreply.github.com> Date: Thu, 2 Nov 2023 13:15:27 +0300 Subject: [PATCH] Update HTS_Linkage.json (#252) --- configuration/ampathforms/HTS_Linkage.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configuration/ampathforms/HTS_Linkage.json b/configuration/ampathforms/HTS_Linkage.json index 37c5dd16..c0bfdec2 100644 --- a/configuration/ampathforms/HTS_Linkage.json +++ b/configuration/ampathforms/HTS_Linkage.json @@ -87,7 +87,10 @@ "id": "thisfacility", "questionOptions": { "concept": "162724AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "rendering": "text" + "rendering": "text", + "calculate": { + "calculateExpression": "userLocation.display" + } }, "hide": { @@ -197,7 +200,12 @@ { "type": "date", "allowFutureDates": "false" - } + }, + { + "type": "js_expression", + "failsWhenExpression": "(new moment(dateenrolled)).isAfter((new moment(myValue)), 'day')", + "message": "ART start date should be greater than or equal to the enrolment date." + } ], "id": "artstartdate" },