WHO Immunization Implementation Guide
0.1.0 - CI Build
WHO Immunization Implementation Guide, published by World Health Organization (WHO). This guide is not an authorized publication; it is the continuous build for version 0.1.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-05-30 |
{
"resourceType" : "StructureMap",
"id" : "IMMZD5QRToLM",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> "</span>http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD5QRToLM<span style=\"color: navy\">" = "</span>IMMZD5QRToLM<span style=\"color: navy\">"\r\n\r\n</span><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-IMMZD5CheckContraindications.html\" title=\"IMMZ.D5 Check Contraindications\">http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD5CheckContraindications</a><span style=\"color: navy\">" </span><b>alias </b>IMMZD5 <b>as </b><b>target</b>\r\n\r\n<b>group </b>QRespToIMMZD5<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\">immz</span><span style=\"color: navy\"> : </span>IMMZD5<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> qr.subject<b> as </b><span style=\"color: maroon\">patient</span><span style=\"color: navy\"><b> -> </b></span>immz.patient = <span style=\"color: maroon\">patient</span> <i>"SetPatient"</i><span style=\"color: navy\">;</span>\r\n qr.item<b> as </b><span style=\"color: maroon\">item</span><b> then</b><span style=\"color: navy\"> {\r\n</span> item.answer<b> as </b><span style=\"color: maroon\">answer</span><b> where </b>item.linkId = 'contraindications'<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>immz.contraindications = <span style=\"color: maroon\">content</span> <i>"SetContraindication"</i><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"SetContraindicationAnswer"</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/ig/smart-immunizations/StructureMap/IMMZD5QRToLM",
"version" : "0.1.0",
"name" : "IMMZD5QRToLM",
"status" : "draft",
"date" : "2024-05-30T21:26:16+00:00",
"publisher" : "World Health Organization (WHO)",
"contact" : [
{
"name" : "World Health Organization (WHO)",
"telecom" : [
{
"system" : "url",
"value" : "https://www.who.int"
}
]
}
],
"jurisdiction" : [
{
"coding" : [
{
"system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
"code" : "001"
}
]
}
],
"structure" : [
{
"url" : "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
"mode" : "source",
"alias" : "QResp"
},
{
"url" : "http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD5CheckContraindications",
"mode" : "target",
"alias" : "IMMZD5"
}
],
"group" : [
{
"name" : "QRespToIMMZD5",
"typeMode" : "none",
"input" : [
{
"name" : "qr",
"type" : "QResp",
"mode" : "source"
},
{
"name" : "immz",
"type" : "IMMZD5",
"mode" : "target"
}
],
"rule" : [
{
"name" : "SetPatient",
"source" : [
{
"context" : "qr",
"element" : "subject",
"variable" : "patient"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "patient",
"transform" : "copy",
"parameter" : [
{
"valueId" : "patient"
}
]
}
]
},
{
"name" : "processItems",
"source" : [
{
"context" : "qr",
"element" : "item",
"variable" : "item"
}
],
"rule" : [
{
"name" : "SetContraindicationAnswer",
"source" : [
{
"context" : "item",
"element" : "answer",
"variable" : "answer",
"condition" : "item.linkId = 'contraindications'"
}
],
"rule" : [
{
"name" : "SetContraindication",
"source" : [
{
"context" : "answer",
"element" : "value",
"variable" : "content"
}
],
"target" : [
{
"context" : "immz",
"contextType" : "variable",
"element" : "contraindications",
"transform" : "copy",
"parameter" : [
{
"valueId" : "content"
}
]
}
]
}
]
}
]
}
]
}
]
}