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 2025-09-10 |
{
"resourceType" : "StructureMap",
"id" : "IMMZ.D5.LMToBundle",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap IMMZ.D5.LMToBundle</b></p><a name=\"IMMZ.D5.LMToBundle\"> </a><a name=\"hcIMMZ.D5.LMToBundle\"> </a><pre class=\"fml\">\r\n<b>map</b><span style=\"color: navy\"> "</span>http://smart.who.int/immunizations/StructureMap/IMMZ.D5.LMToBundle<span style=\"color: navy\">" = "</span>IMMZ.D5.LMToBundle<span style=\"color: navy\">"\r\n\r\n</span><span style=\"color: navy\">// </span><span style=\"color: green\">Immunization Administer Vaccine - Transform Logical Model to Immunization resources</span>\r\n\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"StructureDefinition-IMMZD5.html\" title=\"IMMZ.D5.Determine vaccine(s) to be administered based on contraindications\">http://smart.who.int/immunizations/StructureDefinition/IMMZD5</a><span style=\"color: navy\">" </span><b>alias </b>IMMZD5 <b>as </b><b>source</b>\r\n<b>uses</b><span style=\"color: navy\"> "</span><a href=\"http://hl7.org/fhir/R4/bundle.html\" title=\"Bundle\">http://hl7.org/fhir/StructureDefinition/Bundle</a><span style=\"color: navy\">" </span><b>alias </b>Bundle <b>as </b><b>target</b>\r\n\r\n<b>imports</b><span style=\"color: navy\"> "</span><a href=\"StructureMap-IMMZ.Helpers.html\" title=\"IMMZ.Helpers\">http://smart.who.int/immunizations/StructureMap/IMMZ.Helpers</a><span style=\"color: navy\">"\r\n</span>\r\n<b>group </b>IMMZD5ToBundle<span style=\"color: navy\">(</span><b>source</b> <span style=\"color: maroon\">immz</span><span style=\"color: navy\"> : </span>IMMZD5, <b>target</b> <span style=\"color: maroon\">bundle</span><span style=\"color: navy\"> : </span>Bundle<span style=\"color: navy\">)</span><span style=\"color: navy\"> {\r\n</span> immz<span style=\"color: navy\"><b> -> </b></span>bundle.type = <span style=\"color: blue\">'transaction'</span> <i>"SetBundleType"</i><span style=\"color: navy\">;</span>\r\n immz.patient<b> as </b><span style=\"color: maroon\">patient</span><b> then</b><span style=\"color: navy\"> {\r\n</span> immz.potentialContraindications<b> as </b><span style=\"color: maroon\">content</span><span style=\"color: navy\"><b> -> </b></span> <b>c</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'http://smart.who.int/immunizations/CodeSystem/IMMZ.D'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'DE161'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Potential contraindications'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">code</span><span style=\"color: navy\">, </span> <b>c</b><span style=\"color: navy\">(</span><span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/observation-category'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'survey'</span><span style=\"color: navy\">, </span><span style=\"color: blue\">'Survey'</span><span style=\"color: navy\">)</span><b> as </b><span style=\"color: maroon\">survey</span><b> then </b>MakeObservation<span style=\"color: navy\">(</span><span style=\"color: maroon\">patient</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">code</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">survey</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">content</span><span style=\"color: navy\">, </span><span style=\"color: maroon\">bundle</span><span style=\"color: navy\">)</span><span style=\"color: navy\">;</span>\r\n <span style=\"color: navy\">}</span> <i>"GetPatient"</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/IMMZ.D5.LMToBundle",
"version" : "0.2.0",
"name" : "IMMZ.D5.LMToBundle",
"status" : "draft",
"date" : "2025-09-10T05:58:29+00:00",
"publisher" : "WHO",
"contact" : [
{
"name" : "WHO",
"telecom" : [
{
"system" : "url",
"value" : "http://who.int"
}
]
}
],
"description" : "Immunization Administer Vaccine - Transform Logical Model to Immunization resources",
"structure" : [
{
"url" : "http://smart.who.int/immunizations/StructureDefinition/IMMZD5",
"mode" : "source",
"alias" : "IMMZD5"
},
{
"url" : "http://hl7.org/fhir/StructureDefinition/Bundle",
"mode" : "target",
"alias" : "Bundle"
}
],
"import" : [
🔗 "http://smart.who.int/immunizations/StructureMap/IMMZ.Helpers"
],
"group" : [
{
"name" : "IMMZD5ToBundle",
"typeMode" : "none",
"input" : [
{
"name" : "immz",
"type" : "IMMZD5",
"mode" : "source"
},
{
"name" : "bundle",
"type" : "Bundle",
"mode" : "target"
}
],
"rule" : [
{
"name" : "SetBundleType",
"source" : [
{
"context" : "immz"
}
],
"target" : [
{
"context" : "bundle",
"contextType" : "variable",
"element" : "type",
"transform" : "copy",
"parameter" : [
{
"valueString" : "transaction"
}
]
}
]
},
{
"name" : "GetPatient",
"source" : [
{
"context" : "immz",
"element" : "patient",
"variable" : "patient"
}
],
"rule" : [
{
"name" : "potentialContraindications",
"source" : [
{
"context" : "immz",
"element" : "potentialContraindications",
"variable" : "content"
}
],
"target" : [
{
"contextType" : "variable",
"variable" : "code",
"transform" : "c",
"parameter" : [
{
"valueString" : "http://smart.who.int/immunizations/CodeSystem/IMMZ.D"
},
{
"valueString" : "DE161"
},
{
"valueString" : "Potential contraindications"
}
]
},
{
"contextType" : "variable",
"variable" : "survey",
"transform" : "c",
"parameter" : [
{
"valueString" : "http://terminology.hl7.org/CodeSystem/observation-category"
},
{
"valueString" : "survey"
},
{
"valueString" : "Survey"
}
]
}
],
"dependent" : [
{
"name" : "MakeObservation",
"variable" : [
"patient",
"code",
"survey",
"content",
"bundle"
]
}
]
}
]
}
]
}
]
}