WHO SMART Guidelines - Measles Immunization
0.1.0 - ci-build

WHO SMART Guidelines - Measles Immunization, published by 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-example-immz/ and changes regularly. See the Directory of published versions

: null - XML Representation

Draft as of 2024-09-21

Raw xml | Download



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

</span><span style="color: navy">// </span><span style="color: green">Immunization - Administer Vaccine - Extract 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-IMMZD4CheckContraindicationsMeasles.html" title="IMMZ.D4 Check Contraindications for Measles">http://smart.who.int/immunizations-measles/StructureDefinition/IMMZD4CheckContraindicationsMeasles</a><span style="color: navy">&quot; </span><b>alias </b>IMMZD4 <b>as </b><b>target</b>

<b>group </b>QRespToIMMZD4<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>IMMZD4<span style="color: navy">)</span><span style="color: navy"> {
</span>  qr.subject<b> as </b><span style="color: maroon">patient</span><span style="color: navy"><b> -&gt; </b></span>immz.patient = <span style="color: maroon">patient</span> <i>&quot;SetPatient&quot;</i><span style="color: navy">;</span>
  qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId = 'contraindications'<b> then</b><span style="color: navy"> {
</span>    item.answer<b> as </b><span style="color: maroon">answer</span><b> then</b><span style="color: navy"> {
</span>      answer.value<b> as </b><span style="color: maroon">val</span><span style="color: navy"><b> -&gt; </b></span>immz.contraindications = <span style="color: maroon">val</span> <i>&quot;SetContraindication&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;SetContraindicationAnswer&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;processItems&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url
       value="http://smart.who.int/immunizations-measles/StructureMap/IMMZD4QRToLM"/>
  <version value="0.1.0"/>
  <name value="IMMZD4QRToLM"/>
  <status value="draft"/>
  <date value="2024-09-21T14:59:40+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 - Extract 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-measles/StructureDefinition/IMMZD4CheckContraindicationsMeasles"/>
    <mode value="target"/>
    <alias value="IMMZD4"/>
  </structure>
  <group>
    <name value="QRespToIMMZD4"/>
    <typeMode value="none"/>
    <input>
      <name value="qr"/>
      <type value="QResp"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="immz"/>
      <type value="IMMZD4"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="SetPatient"/>
      <source>
        <context value="qr"/>
        <element value="subject"/>
        <variable value="patient"/>
      </source>
      <target>
        <context value="immz"/>
        <contextType value="variable"/>
        <element value="patient"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="patient"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="processItems"/>
      <source>
        <context value="qr"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId = 'contraindications'"/>
      </source>
      <rule>
        <name value="SetContraindicationAnswer"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="SetContraindication"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="val"/>
          </source>
          <target>
            <context value="immz"/>
            <contextType value="variable"/>
            <element value="contraindications"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="val"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
  </group>
</StructureMap>