From 3a0de7310370d550e310b3719fb2ea35d2da596d Mon Sep 17 00:00:00 2001 From: Jose Costa Teixeira Date: Sat, 21 Sep 2024 15:56:49 +0100 Subject: [PATCH] fix brackets --- input/maps/IMMZCQRToLM.fml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/input/maps/IMMZCQRToLM.fml b/input/maps/IMMZCQRToLM.fml index ac846c7259..da0acaeb6d 100644 --- a/input/maps/IMMZCQRToLM.fml +++ b/input/maps/IMMZCQRToLM.fml @@ -7,37 +7,37 @@ uses "http://smart.who.int/immunizations-measles/StructureDefinition/IMMZCRegist group QRespToIMMZC ( source qr : QResp, target immzc : IMMZC) { qr.item as item then { - item.answer first as answer where item.linkId = 'uniqueId' then { + item.answer first as answer where (item.linkId = 'uniqueId') then { answer.value as content -> immzc.uniqueId = content "SetIdentifier"; } "FirstAnswerForIdentifier"; item as name where item.linkId = 'name' then NameToIMMZC( name, immzc ) "SetNames"; - item.answer first as answer where item.linkId = 'sex' then { + item.answer first as answer where (item.linkId = 'sex') then { answer.value as coding then { coding.code as content -> immzc.sex = content "SetSex"; } "ProcessCoding"; } "FirstAnswerForIdentifier"; - item.answer first as answer where item.linkId = 'birthDate' then { + item.answer first as answer where (item.linkId = 'birthDate') then { answer.value as content -> immzc.birthDate = content "SetBirthDate2"; } "FirstAnswerForBirthDate"; - item.answer as caregiver where item.linkId = 'caregiver' -> immzc.caregiver as caretgt + item.answer as caregiver where (item.linkId = 'caregiver') -> immzc.caregiver as caretgt then NameToIMMZC( caregiver, caretgt ) "SetCaregiver"; - item.answer first as answer where item.linkId = 'phone' then { + item.answer first as answer where (item.linkId = 'phone') then { answer.value as content -> immzc.phone = content "SetPhone"; } "FirstAnswerForPhone"; - item.answer first as answer where item.linkId = 'administrativeArea' then { + item.answer first as answer where (item.linkId = 'administrativeArea') then { answer.value as coding -> immzc.administrativeArea as area then { coding -> area.coding = coding "SetCodingValue"; coding.display as display -> area.text = display "SetDisplay"; } "SetCoding"; } "FirstAnswerForAdministrativeArea"; - item.answer first as answer where item.linkId = 'healthWorker' then { + item.answer first as answer where (item.linkId = 'healthWorker') then { answer.value as content -> immzc.healthWorker = content "SetHealthWorker"; } "FirstAnswerForHealthWorker"; @@ -48,15 +48,15 @@ group QRespToIMMZC ( source qr : QResp, target immzc : IMMZC) { group NameToIMMZC( source name, target immzc) { name.item as item then { - item.answer first as answer where item.linkId = 'fullName' then { + item.answer first as answer where (item.linkId = 'fullName') then { answer.value as content -> immzc.name = content "SetFullName"; } "FirstAnswerForFullName"; -// item.answer first as answer where item.linkId = 'firstName' then { +// item.answer first as answer where (item.linkId = 'firstName') then { // answer.value as content -> immzc.firstName = content "SetFirstName"; // } "FirstAnswerForFirstName"; -// item.answer first as answer where item.linkId = 'familyName' then { +// item.answer first as answer where (item.linkId = 'familyName') then { // answer.value as content -> immzc.familyName = content "SetFamilyName"; // } "FirstAnswerForFamilyName";