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

: IMMZ.D13.QRToLM - XML Representation

Draft as of 2025-09-10

Raw xml | Download


<StructureMap xmlns="http://hl7.org/fhir">
  <id value="IMMZ.D13.QRToLM"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap IMMZ.D13.QRToLM</b></p><a name="IMMZ.D13.QRToLM"> </a><a name="hcIMMZ.D13.QRToLM"> </a><pre class="fml">
<b>map</b><span style="color: navy"> &quot;</span>http://smart.who.int/immunizations/StructureMap/IMMZ.D13.QRToLM<span style="color: navy">&quot; = &quot;</span>IMMZ.D13.QRToLM<span style="color: navy">&quot;

</span><span style="color: navy">// </span><span style="color: green">Immunization Administer Vaccine - Transform QuestionnaireResponse to Logical Model</span>

<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/questionnaireresponse.html" title="QuestionnaireResponse">http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse</a><span style="color: navy">&quot; </span><b>alias </b>QResp <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-IMMZD13.html" title="IMMZ.D13.Update client record">http://smart.who.int/immunizations/StructureDefinition/IMMZD13</a><span style="color: navy">&quot; </span><b>alias </b>IMMZD13 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-IMMZ.Helpers.html" title="IMMZ.Helpers">http://smart.who.int/immunizations/StructureMap/IMMZ.Helpers</a><span style="color: navy">&quot;
</span>
<b>group </b>QRespToIMMZD13<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>IMMZD13<span style="color: navy">)</span><span style="color: navy"> {
</span>  qr.subject<b> as </b><span style="color: maroon">subject</span><span style="color: navy"><b> -&gt; </b></span>immz.patient = <span style="color: maroon">subject</span> <i>&quot;setPatient&quot;</i><span style="color: navy">;</span>
  qr<b> then </b>D1andD13Questions<span style="color: navy">(</span><span style="color: maroon">qr</span><span style="color: navy">, </span><span style="color: maroon">immz</span><span style="color: navy">)</span> <i>&quot;D1andD13Questions&quot;</i><span style="color: navy">;</span>
  qr<b> then </b>D13Questions<span style="color: navy">(</span><span style="color: maroon">qr</span><span style="color: navy">, </span><span style="color: maroon">immz</span><span style="color: navy">)</span> <i>&quot;D13Questions&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url
       value="http://smart.who.int/immunizations/StructureMap/IMMZ.D13.QRToLM"/>
  <version value="0.2.0"/>
  <name value="IMMZ.D13.QRToLM"/>
  <status value="draft"/>
  <date value="2025-09-10T05:58:29+00:00"/>
  <publisher value="WHO"/>
  <contact>
    <name value="WHO"/>
    <telecom>
      <system value="url"/>
      <value value="http://who.int"/>
    </telecom>
  </contact>
  <description
               value="Immunization Administer Vaccine - Transform QuestionnaireResponse to Logical Model"/>
  <structure>
    <url
         value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"/>
    <mode value="source"/>
    <alias value="QResp"/>
  </structure>
  <structure>
    <url
         value="http://smart.who.int/immunizations/StructureDefinition/IMMZD13"/>
    <mode value="target"/>
    <alias value="IMMZD13"/>
  </structure>
  <import
          value="http://smart.who.int/immunizations/StructureMap/IMMZ.Helpers"/>
  <group>
    <name value="QRespToIMMZD13"/>
    <typeMode value="none"/>
    <input>
      <name value="qr"/>
      <type value="QResp"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="immz"/>
      <type value="IMMZD13"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="setPatient"/>
      <source>
        <context value="qr"/>
        <element value="subject"/>
        <variable value="subject"/>
      </source>
      <target>
        <context value="immz"/>
        <contextType value="variable"/>
        <element value="patient"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="subject"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="D1andD13Questions"/>
      <source>
        <context value="qr"/>
      </source>
      <dependent>
        <name value="D1andD13Questions"/>
        <variable value="qr"/>
        <variable value="immz"/>
      </dependent>
    </rule>
    <rule>
      <name value="D13Questions"/>
      <source>
        <context value="qr"/>
      </source>
      <dependent>
        <name value="D13Questions"/>
        <variable value="qr"/>
        <variable value="immz"/>
      </dependent>
    </rule>
  </group>
</StructureMap>