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 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="IMMZD1PolioLMToResources"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><pre class="fml">
<b>map</b><span style="color: navy"> "</span>http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1PolioLMToResources<span style="color: navy">" = "</span>IMMZD1PolioLMToResources<span style="color: navy">"
</span><b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-IMMZD1ClientHistoryPolio.html" title="IMMZ.D1 Capture Client History for Polio">http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD1ClientHistoryPolio</a><span style="color: navy">" </span><b>alias </b>IMMZD1 <b>as </b><b>source</b>
<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>
<b>imports</b><span style="color: navy"> "</span><a href="StructureMap-IMMZD1LMToResources.html" title="IMMZD1LMToResources">http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1LMToResources</a><span style="color: navy">"
</span>
<b>group </b>PolioIMMZD1ToBundle<span style="color: navy">(</span><b>source</b> <span style="color: maroon">immz</span><span style="color: navy"> : </span>IMMZD1, <b>target</b> <span style="color: maroon">bundle</span><span style="color: navy"> : </span>Bundle<span style="color: navy">)</span><b> extends </b>IMMZD1ToBundle<span style="color: navy"> {
</span> immz.patient<b> as </b><span style="color: maroon">patient</span><b> then</b><span style="color: navy"> {
</span> immz.birth<b> as </b><span style="color: maroon">content</span><span style="color: navy"><b> -> </b></span> bundle.entry<b> as </b><span style="color: maroon">entry</span><span style="color: navy">, </span> entry.resource = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Observation'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">obs</span><b> then</b><span style="color: navy"> {
</span> patient<span style="color: navy"><b> -> </b></span>obs.subject = <span style="color: maroon">patient</span> <i>"SetPatient"</i><span style="color: navy">;</span>
content<span style="color: navy"><b> -> </b></span>obs.code<b> as </b><span style="color: maroon">code</span><b> then</b><span style="color: navy"> {
</span> content<span style="color: navy"><b> -> </b></span>code.coding<b> as </b><span style="color: maroon">coding</span><b> then</b><span style="color: navy"> {
</span> content<span style="color: navy"><b> -> </b></span>coding.system = <span style="color: blue">'http://smart.who.int/ig/smart-immunizations/CodeSystem/IMMZ.D1'</span> <i>"SetObsSystem"</i><span style="color: navy">;</span>
content<span style="color: navy"><b> -> </b></span>coding.code = <span style="color: blue">'DE109'</span> <i>"SetObsCode"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"SetObsCoding"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"SetObsCode"</i><span style="color: navy">;</span>
content<span style="color: navy"><b> -> </b></span>obs.value = <span style="color: maroon">content</span> <i>"SetValue"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"SetBirthObservation"</i><span style="color: navy">;</span>
immz.poliotype<b> as </b><span style="color: maroon">content</span><span style="color: navy"><b> -> </b></span> bundle.entry<b> as </b><span style="color: maroon">entry</span><span style="color: navy">, </span> entry.resource = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Observation'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">obs</span><b> then</b><span style="color: navy"> {
</span> patient<span style="color: navy"><b> -> </b></span>obs.subject = <span style="color: maroon">patient</span> <i>"SetPatient"</i><span style="color: navy">;</span>
content<span style="color: navy"><b> -> </b></span>obs.code<b> as </b><span style="color: maroon">code</span><b> then</b><span style="color: navy"> {
</span> content<span style="color: navy"><b> -> </b></span>code.coding<b> as </b><span style="color: maroon">coding</span><b> then</b><span style="color: navy"> {
</span> content<span style="color: navy"><b> -> </b></span>coding.system = <span style="color: blue">'http://smart.who.int/ig/smart-immunizations/CodeSystem/IMMZ.D1'</span> <i>"SetObsSystem"</i><span style="color: navy">;</span>
content<span style="color: navy"><b> -> </b></span>coding.code = <span style="color: blue">'DE35'</span> <i>"SetObsCode"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"SetObsCoding"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"SetObsCode"</i><span style="color: navy">;</span>
content<span style="color: navy"><b> -> </b></span>obs.valueCodeableConcept<b> as </b><span style="color: maroon">code</span><b> then</b><span style="color: navy"> {
</span> content<span style="color: navy"><b> -> </b></span>code.coding = <span style="color: maroon">content</span> <i>"SetCoding"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"SetCodeableConcept"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"SetPolioTypeObservation"</i><span style="color: navy">;</span>
<span style="color: navy">}</span> <i>"GetPatient"</i><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<url
value="http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1PolioLMToResources"/>
<version value="0.1.0"/>
<name value="IMMZD1PolioLMToResources"/>
<status value="draft"/>
<date value="2024-05-30T21:26:16+00:00"/>
<publisher value="World Health Organization (WHO)"/>
<contact>
<name value="World Health Organization (WHO)"/>
<telecom>
<system value="url"/>
<value value="https://www.who.int"/>
</telecom>
</contact>
<jurisdiction>
<coding>
<system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
<code value="001"/>
</coding>
</jurisdiction>
<structure>
<url
value="http://smart.who.int/ig/smart-immunizations/StructureDefinition/IMMZD1ClientHistoryPolio"/>
<mode value="source"/>
<alias value="IMMZD1"/>
</structure>
<structure>
<url value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
<mode value="target"/>
<alias value="Bundle"/>
</structure>
<import
value="http://smart.who.int/ig/smart-immunizations/StructureMap/IMMZD1LMToResources"/>
<group>
<name value="PolioIMMZD1ToBundle"/>
<extends value="IMMZD1ToBundle"/>
<typeMode value="none"/>
<input>
<name value="immz"/>
<type value="IMMZD1"/>
<mode value="source"/>
</input>
<input>
<name value="bundle"/>
<type value="Bundle"/>
<mode value="target"/>
</input>
<rule>
<name value="GetPatient"/>
<source>
<context value="immz"/>
<element value="patient"/>
<variable value="patient"/>
</source>
<rule>
<name value="SetBirthObservation"/>
<source>
<context value="immz"/>
<element value="birth"/>
<variable value="content"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="entry"/>
<variable value="entry"/>
</target>
<target>
<context value="entry"/>
<contextType value="variable"/>
<element value="resource"/>
<variable value="obs"/>
<transform value="create"/>
<parameter>
<valueString value="Observation"/>
</parameter>
</target>
<rule>
<name value="SetPatient"/>
<source>
<context value="patient"/>
</source>
<target>
<context value="obs"/>
<contextType value="variable"/>
<element value="subject"/>
<transform value="copy"/>
<parameter>
<valueId value="patient"/>
</parameter>
</target>
</rule>
<rule>
<name value="SetObsCode"/>
<source>
<context value="content"/>
</source>
<target>
<context value="obs"/>
<contextType value="variable"/>
<element value="code"/>
<variable value="code"/>
</target>
<rule>
<name value="SetObsCoding"/>
<source>
<context value="content"/>
</source>
<target>
<context value="code"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="coding"/>
</target>
<rule>
<name value="SetObsSystem"/>
<source>
<context value="content"/>
</source>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="http://smart.who.int/ig/smart-immunizations/CodeSystem/IMMZ.D1"/>
</parameter>
</target>
</rule>
<rule>
<name value="SetObsCode"/>
<source>
<context value="content"/>
</source>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="DE109"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="SetValue"/>
<source>
<context value="content"/>
</source>
<target>
<context value="obs"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="content"/>
</parameter>
</target>
</rule>
</rule>
<rule>
<name value="SetPolioTypeObservation"/>
<source>
<context value="immz"/>
<element value="poliotype"/>
<variable value="content"/>
</source>
<target>
<context value="bundle"/>
<contextType value="variable"/>
<element value="entry"/>
<variable value="entry"/>
</target>
<target>
<context value="entry"/>
<contextType value="variable"/>
<element value="resource"/>
<variable value="obs"/>
<transform value="create"/>
<parameter>
<valueString value="Observation"/>
</parameter>
</target>
<rule>
<name value="SetPatient"/>
<source>
<context value="patient"/>
</source>
<target>
<context value="obs"/>
<contextType value="variable"/>
<element value="subject"/>
<transform value="copy"/>
<parameter>
<valueId value="patient"/>
</parameter>
</target>
</rule>
<rule>
<name value="SetObsCode"/>
<source>
<context value="content"/>
</source>
<target>
<context value="obs"/>
<contextType value="variable"/>
<element value="code"/>
<variable value="code"/>
</target>
<rule>
<name value="SetObsCoding"/>
<source>
<context value="content"/>
</source>
<target>
<context value="code"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="coding"/>
</target>
<rule>
<name value="SetObsSystem"/>
<source>
<context value="content"/>
</source>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString
value="http://smart.who.int/ig/smart-immunizations/CodeSystem/IMMZ.D1"/>
</parameter>
</target>
</rule>
<rule>
<name value="SetObsCode"/>
<source>
<context value="content"/>
</source>
<target>
<context value="coding"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueString value="DE35"/>
</parameter>
</target>
</rule>
</rule>
</rule>
<rule>
<name value="SetCodeableConcept"/>
<source>
<context value="content"/>
</source>
<target>
<context value="obs"/>
<contextType value="variable"/>
<element value="valueCodeableConcept"/>
<variable value="code"/>
</target>
<rule>
<name value="SetCoding"/>
<source>
<context value="content"/>
</source>
<target>
<context value="code"/>
<contextType value="variable"/>
<element value="coding"/>
<transform value="copy"/>
<parameter>
<valueId value="content"/>
</parameter>
</target>
</rule>
</rule>
</rule>
</rule>
</group>
</StructureMap>