From bc847ae0e113b883f5ebf3a2cf497749a59f46f8 Mon Sep 17 00:00:00 2001 From: melkam-mekonnen Date: Tue, 30 Jul 2024 15:29:31 +0300 Subject: [PATCH] Correct ScCr in screening --- src/forms/pre-exposure-screening.json | 48 ++++++++++++++++++++------- 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/src/forms/pre-exposure-screening.json b/src/forms/pre-exposure-screening.json index 65b4489..ca83ae4 100644 --- a/src/forms/pre-exposure-screening.json +++ b/src/forms/pre-exposure-screening.json @@ -364,21 +364,45 @@ { "label": "ScCr", "type": "obs", - "required": false, - "id": "creatinineLevel", "questionOptions": { - "rendering": "number", - "concept": "164364AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", - "conceptMappings": [ + "rendering": "text", + "concept": "5f39ac9e-7338-4a79-8b40-58dbef9debb0", + "conceptMappings": [ + { + "type": "CIEL", + "value": "790" + }, + { + "type": "SNOMED-CT", + "value": "113075003" + }, + { + "type": "LOINC", + "value": "14682-9" + }, + { + "type": "AMPATH", + "value": "790" + }, + { + "type": "AMPATH", + "value": "790" + }, + { + "type": "CIEL", + "value": "790" + } + ] + }, + "validators": [ { - "relationship": "SAME-AS", - "type": "CIEL", - "value": "164364" + "type": "js_expression", + "failsWhenExpression": "!/^(0|[1-9]\\d*)(\\.\\d+)?$/.test(myValue)", + "message": "ScCr should be a numeric value" } - ] - }, - "validators": [] - }, + ], + "id": "creatinineLevel" + }, { "label": "eGFR", "type": "obs",