diff --git a/input/maps/IMMZCQRToLM.fml b/input/maps/IMMZCQRToLM.fml index da0acaeb6d..7799a4638e 100644 --- a/input/maps/IMMZCQRToLM.fml +++ b/input/maps/IMMZCQRToLM.fml @@ -1,4 +1,4 @@ -map "http://smart.who.int/immunizations-measles/StructureMap/IMMZCQRToLM" = "IMMZCQRToLM" +map "http://smart.who.int/immunizations-measles/StructureMap/IMMZCQRToLM" = IMMZCQRToLM // Immunization Client Registry - Extract QuestionnaireResponse to Logical Model uses "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" alias QResp as source @@ -11,7 +11,7 @@ group QRespToIMMZC ( source qr : QResp, target immzc : IMMZC) { answer.value as content -> immzc.uniqueId = content "SetIdentifier"; } "FirstAnswerForIdentifier"; - item as name where item.linkId = 'name' then NameToIMMZC( name, immzc ) "SetNames"; + item as name where (item.linkId = 'name') then NameToIMMZC( name, immzc ) "SetNames"; item.answer first as answer where (item.linkId = 'sex') then { answer.value as coding then { @@ -61,4 +61,4 @@ group NameToIMMZC( source name, target immzc) { // } "FirstAnswerForFamilyName"; } "processNameItems"; -} \ No newline at end of file +}