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

</span><span style="color: navy">// </span><span style="color: green">Immunization - Administer Vaccine - Transform logical model to resources</span>

<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>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/bundle.html" title="Bundle">http://hl7.org/fhir/StructureDefinition/Bundle</a><span style="color: navy">&quot; </span><b>alias </b>Bundle <b>as </b><b>target</b>

<b>group </b>IMMZD4ToBundle<span style="color: navy">(</span><b>source</b> <span style="color: maroon">immz</span><span style="color: navy"> : </span>IMMZD4, <b>target</b> <span style="color: maroon">bundle</span><span style="color: navy"> : </span>Bundle<span style="color: navy">)</span><span style="color: navy"> {
</span>  immz<span style="color: navy"><b> -&gt; </b></span>bundle.type = <span style="color: blue">'collection'</span> <i>&quot;SetCollection&quot;</i><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.contraindications<b> as </b><span style="color: maroon">ci</span><span style="color: navy"><b> -&gt; </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">'Condition'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">condition</span><b> then</b><span style="color: navy"> {
</span>      patient<span style="color: navy"><b> -&gt; </b></span>condition.subject = <span style="color: maroon">patient</span> <i>&quot;SetPatient&quot;</i><span style="color: navy">;</span>
      ci<span style="color: navy"><b> -&gt; </b></span> condition.clinicalStatus = <b>create</b><span style="color: navy">(</span><span style="color: blue">'CodeableConcept'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">cc</span><span style="color: navy">, </span> cc.coding = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Coding'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">c</span><span style="color: navy">, </span> c.system = <span style="color: blue">'http://hl7.org/fhir/ValueSet/condition-clinical'</span><span style="color: navy">, </span> c.code = <span style="color: blue">'active'</span> <i>&quot;SetClinicalStatus&quot;</i><span style="color: navy">;</span>
      ci<span style="color: navy"><b> -&gt; </b></span> condition.code = <b>create</b><span style="color: navy">(</span><span style="color: blue">'CodeableConcept'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">cc</span><span style="color: navy">, </span> cc.coding = <span style="color: maroon">ci</span> <i>&quot;SetCode&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;SetCondition&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;GetPatient&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url
       value="http://smart.who.int/immunizations-measles/StructureMap/IMMZD4LMToResources"/>
  <version value="0.1.0"/>
  <name value="IMMZD4LMToResources"/>
  <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 - Transform logical model to resources"/>
  <structure>
    <url
         value="http://smart.who.int/immunizations-measles/StructureDefinition/IMMZD4CheckContraindicationsMeasles"/>
    <mode value="source"/>
    <alias value="IMMZD4"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Bundle"/>
    <mode value="target"/>
    <alias value="Bundle"/>
  </structure>
  <group>
    <name value="IMMZD4ToBundle"/>
    <typeMode value="none"/>
    <input>
      <name value="immz"/>
      <type value="IMMZD4"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="bundle"/>
      <type value="Bundle"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="SetCollection"/>
      <source>
        <context value="immz"/>
      </source>
      <target>
        <context value="bundle"/>
        <contextType value="variable"/>
        <element value="type"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="collection"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="GetPatient"/>
      <source>
        <context value="immz"/>
        <element value="patient"/>
        <variable value="patient"/>
      </source>
      <rule>
        <name value="SetCondition"/>
        <source>
          <context value="immz"/>
          <element value="contraindications"/>
          <variable value="ci"/>
        </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="condition"/>
          <transform value="create"/>
          <parameter>
            <valueString value="Condition"/>
          </parameter>
        </target>
        <rule>
          <name value="SetPatient"/>
          <source>
            <context value="patient"/>
          </source>
          <target>
            <context value="condition"/>
            <contextType value="variable"/>
            <element value="subject"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="patient"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="SetClinicalStatus"/>
          <source>
            <context value="ci"/>
          </source>
          <target>
            <context value="condition"/>
            <contextType value="variable"/>
            <element value="clinicalStatus"/>
            <variable value="cc"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="cc"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <variable value="c"/>
            <transform value="create"/>
            <parameter>
              <valueString value="Coding"/>
            </parameter>
          </target>
          <target>
            <context value="c"/>
            <contextType value="variable"/>
            <element value="system"/>
            <transform value="copy"/>
            <parameter>
              <valueString
                           value="http://hl7.org/fhir/ValueSet/condition-clinical"/>
            </parameter>
          </target>
          <target>
            <context value="c"/>
            <contextType value="variable"/>
            <element value="code"/>
            <transform value="copy"/>
            <parameter>
              <valueString value="active"/>
            </parameter>
          </target>
        </rule>
        <rule>
          <name value="SetCode"/>
          <source>
            <context value="ci"/>
          </source>
          <target>
            <context value="condition"/>
            <contextType value="variable"/>
            <element value="code"/>
            <variable value="cc"/>
            <transform value="create"/>
            <parameter>
              <valueString value="CodeableConcept"/>
            </parameter>
          </target>
          <target>
            <context value="cc"/>
            <contextType value="variable"/>
            <element value="coding"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="ci"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
  </group>
</StructureMap>