WHO Immunization Implementation Guide
0.2.0 - ci-build
WHO Immunization Implementation Guide, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.2.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-immunizations/ and changes regularly. See the Directory of published versions
Draft as of 2024-12-18 |
{
"resourceType" : "StructureMap",
"id" : "IMMZCQRToLM",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap IMMZCQRToLM</b></p><a name=\"IMMZCQRToLM\"> </a><a name=\"hcIMMZCQRToLM\"> </a><a name=\"IMMZCQRToLM-en-US\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> "</span>http://smart.who.int/immunizations/StructureMap/IMMZCQRToLM<span style=\"color: navy\">" = "</span>IMMZCQRToLM<span style=\"color: navy\">"\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Immunization Client Registry - Transform QuestionnaireResponse to Logical Model</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4/questionnaireresponse.html\" title=\"QuestionnaireResponse\">http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse</a><span style=\"color: navy\">" </span><b>alias </b>QResp <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"StructureDefinition-IMMZCClientregistration.html\" title=\"IMMZ.C Client registration\">http://smart.who.int/immunizations/StructureDefinition/IMMZCClientregistration</a><span style=\"color: navy\">" </span><b>alias </b>IMMZC <b>as </b><b>target</b>\r\n\r\n<b>group </b>QRespToIMMZC<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">qr</span><span style=\"color: navy\"> : </span>QResp, <b>target</b> <span style=\"color: maroon\">immzc</span><span style=\"color: navy\"> : </span>IMMZC<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qr.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'uniqueIdentifier'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>immzc.uniqueIdentifier = <span style=\"color: maroon\">content</span> <i>"SetIdentifier"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForIdentifier"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'name'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>immzc.name = <span style=\"color: maroon\">content</span> <i>"SetFullName"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForFullName"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'firstName'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>immzc.firstName = <span style=\"color: maroon\">content</span> <i>"SetFirstName"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForFirstName"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'familyName'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>immzc.familyName = <span style=\"color: maroon\">content</span> <i>"SetFamilyName"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForFamilyName"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'sex'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">coding</span><b> then</b><span style=\"color: navy\"> {\r\n</span> coding.code<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>immzc.sex = <span style=\"color: maroon\">content</span> <i>"SetSex"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"ProcessCoding"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForIdentifier"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'dateOfBirth'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>immzc.dateOfBirth = <span style=\"color: maroon\">content</span> <i>"SetBirthDate"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForBirthDate"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'age'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>immzc.age = <span style=\"color: maroon\">content</span> <i>"SetAge"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForAge"</i><span style=\"color: navy\">;</span>\r\n item<b> as </b><span style=\"color: maroon\">caregiver</span><b> where </b>item.linkId = 'caregiversMultiple'<span style=\"color: navy\"><b> -> </b></span>immzc.caregiversMultiple<b> as </b><span style=\"color: maroon\">caretgt</span><b> then</b><span style=\"color: navy\"> {\r\n</span> caregiver.item<b> as </b><span style=\"color: maroon\">cgitem</span><b> then</b><span style=\"color: navy\"> {\r\n</span> cgitem.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>cgitem.linkId = 'caregiversFullName'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>caretgt.caregiversFullName = <span style=\"color: maroon\">content</span> <i>"SetFullName"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForFullName"</i><span style=\"color: navy\">;</span>\r\n cgitem.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>cgitem.linkId = 'caregiversFirstName'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>caretgt.caregiversFirstName = <span style=\"color: maroon\">content</span> <i>"SetFirstName"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForFirstName"</i><span style=\"color: navy\">;</span>\r\n cgitem.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>cgitem.linkId = 'caregiversFamilyName'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>caretgt.caregiversFamilyName = <span style=\"color: maroon\">content</span> <i>"SetFamilyName"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForFamilyName"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"caregiverItems"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"AnswerForCaregiverMultiple"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'contactPhoneNumber'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>immzc.contactPhoneNumber = <span style=\"color: maroon\">content</span> <i>"SetPhone"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForPhone"</i><span style=\"color: navy\">;</span>\r\n item.answer first<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'address'<b> then</b><span style=\"color: navy\"> {\r\n</span> answer.value<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span>immzc.address = <span style=\"color: maroon\">content</span> <i>"SetAddress"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"FirstAnswerForAddress"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"processItems"</i><span style=\"color: navy\">;</span>\r\n<span style=\"color: navy\">}\r\n\r\n</span></pre></div>"
},
"url" : "http://smart.who.int/immunizations/StructureMap/IMMZCQRToLM",
"version" : "0.2.0",
"name" : "IMMZCQRToLM",
"status" : "draft",
"date" : "2024-12-18T23:00:54+00:00",
"publisher" : "WHO",
"contact" : [
{
"name" : "WHO",
"telecom" : [
{
"system" : "url",
"value" : "http://who.int"
}
]
}
],
"description" : "Immunization Client Registry - Transform QuestionnaireResponse to Logical Model",
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
"mode" : "source",
"alias" : "QResp"
},
{
"url" : "http://smart.who.int/immunizations/StructureDefinition/IMMZCClientregistration",
"mode" : "target",
"alias" : "IMMZC"
}
],
"group" : [
{
"name" : "QRespToIMMZC",
"typeMode" : "none",
"input" : [
{
"name" : "qr",
"type" : "QResp",
"mode" : "source"
},
{
"name" : "immzc",
"type" : "IMMZC",
"mode" : "target"
}
],
"rule" : [
{
"name" : "processItems",
"source" : [
{
"context" : "qr",
"element" : "item",
"variable" : "item"
}
],
"rule" : [
{
"name" : "FirstAnswerForIdentifier",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'uniqueIdentifier'"
}
],
"rule" : [
{
"name" : "SetIdentifier",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immzc",
"contextType" : "variable",
"element" : "uniqueIdentifier",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForFullName",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'name'"
}
],
"rule" : [
{
"name" : "SetFullName",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immzc",
"contextType" : "variable",
"element" : "name",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForFirstName",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'firstName'"
}
],
"rule" : [
{
"name" : "SetFirstName",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immzc",
"contextType" : "variable",
"element" : "firstName",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForFamilyName",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'familyName'"
}
],
"rule" : [
{
"name" : "SetFamilyName",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immzc",
"contextType" : "variable",
"element" : "familyName",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForIdentifier",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'sex'"
}
],
"rule" : [
{
"name" : "ProcessCoding",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "coding"
}
],
"rule" : [
{
"name" : "SetSex",
"source" : [
{
"context" : "coding",
"element" : "code",
"variable" : "content"
}
],
"target" : [
{
"context" : "immzc",
"contextType" : "variable",
"element" : "sex",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForBirthDate",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'dateOfBirth'"
}
],
"rule" : [
{
"name" : "SetBirthDate",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immzc",
"contextType" : "variable",
"element" : "dateOfBirth",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForAge",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'age'"
}
],
"rule" : [
{
"name" : "SetAge",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immzc",
"contextType" : "variable",
"element" : "age",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "AnswerForCaregiverMultiple",
"source" : [
{
"context" : "item",
"variable" : "caregiver",
"condition" : "item.linkId = 'caregiversMultiple'"
}
],
"target" : [
{
"context" : "immzc",
"contextType" : "variable",
"element" : "caregiversMultiple",
"variable" : "caretgt"
}
],
"rule" : [
{
"name" : "caregiverItems",
"source" : [
{
"context" : "caregiver",
"element" : "item",
"variable" : "cgitem"
}
],
"rule" : [
{
"name" : "FirstAnswerForFullName",
"source" : [
{
"context" : "cgitem",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "cgitem.linkId = 'caregiversFullName'"
}
],
"rule" : [
{
"name" : "SetFullName",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "caretgt",
"contextType" : "variable",
"element" : "caregiversFullName",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForFirstName",
"source" : [
{
"context" : "cgitem",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "cgitem.linkId = 'caregiversFirstName'"
}
],
"rule" : [
{
"name" : "SetFirstName",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "caretgt",
"contextType" : "variable",
"element" : "caregiversFirstName",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForFamilyName",
"source" : [
{
"context" : "cgitem",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "cgitem.linkId = 'caregiversFamilyName'"
}
],
"rule" : [
{
"name" : "SetFamilyName",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "caretgt",
"contextType" : "variable",
"element" : "caregiversFamilyName",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForPhone",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'contactPhoneNumber'"
}
],
"rule" : [
{
"name" : "SetPhone",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immzc",
"contextType" : "variable",
"element" : "contactPhoneNumber",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
},
{
"name" : "FirstAnswerForAddress",
"source" : [
{
"context" : "item",
"element" : "answer",
"listMode" : "first",
"variable" : "answer",
"condition" : "item.linkId = 'address'"
}
],
"rule" : [
{
"name" : "SetAddress",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immzc",
"contextType" : "variable",
"element" : "address",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
}
]
}
]
}
]
}