SMART ICVP
0.1.0 - ci-build

This page is part of the ICVP (v0.1.0: Releases Draft) based on FHIR (HL7® FHIR® Standard) R4. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

: null - XML Representation

Draft as of 2024-10-07

Raw xml | Download


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

</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>QuestionnaireResponse <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-ModelDVC.html" title="DVC">http://smart.who.int/icvp/StructureDefinition/ModelDVC</a><span style="color: navy">&quot; </span><b>alias </b>DVCLogicalModel <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-ModelVaccineDetails.html" title="DVC - Vaccine Details">http://smart.who.int/icvp/StructureDefinition/ModelVaccineDetails</a><span style="color: navy">&quot; </span><b>alias </b>ModelVaccineDetails <b>as </b><b>target</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-DVCPayload.html" title="DVC HCERT Payload">http://smart.who.int/icvp/StructureDefinition/DVCPayload</a><span style="color: navy">&quot; </span><b>alias </b>DVCClaim <b>as </b><b>target</b>

<b>group </b>DVCQRtoDVCLM<span style="color: navy">(</span><b>source</b> <span style="color: maroon">qr</span><span style="color: navy"> : </span>QuestionnaireResponse, <b>target</b> <span style="color: maroon">lm</span><span style="color: navy"> : </span>DVCLogicalModel<span style="color: navy">)</span><span style="color: navy"> {
</span>  qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('name')<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">name</span><span style="color: navy"><b> -&gt; </b></span>lm.name = <span style="color: maroon">name</span> <i>&quot;rule1&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule1a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule1b&quot;</i><span style="color: navy">;</span>
  qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('dob')<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">dob</span><span style="color: navy"><b> -&gt; </b></span>lm.dob = <span style="color: maroon">dob</span> <i>&quot;rule2&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule2a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule2b&quot;</i><span style="color: navy">;</span>
  qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('sex')<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">sex</span><span style="color: navy"><b> -&gt; </b></span>lm.sex = <span style="color: maroon">sex</span> <i>&quot;rule3&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule3a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule3b&quot;</i><span style="color: navy">;</span>
  qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('nationality')<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">nationality</span><span style="color: navy"><b> -&gt; </b></span>lm.nationality = <span style="color: maroon">nationality</span> <i>&quot;rule4&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule4a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule4b&quot;</i><span style="color: navy">;</span>
  qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('nid')<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">nid</span><span style="color: navy"><b> -&gt; </b></span>lm.nid = <span style="color: maroon">nid</span> <i>&quot;rule5&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule5a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule5b&quot;</i><span style="color: navy">;</span>
  qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('guardian')<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">guardian</span><span style="color: navy"><b> -&gt; </b></span>lm.guardian = <span style="color: maroon">guardian</span> <i>&quot;rule6&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule6a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule6b&quot;</i><span style="color: navy">;</span>
  qr.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('vaccineDetails')<span style="color: navy"><b> -&gt; </b></span>lm.vaccineDetails<b> as </b><span style="color: maroon">v</span><b> then </b>mapVaccineDetails<span style="color: navy">(</span><span style="color: maroon">item</span><span style="color: navy">, </span><span style="color: maroon">v</span><span style="color: navy">)</span> <i>&quot;rule7&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>mapVaccineDetails<span style="color: navy">(</span><b>source</b> <span style="color: maroon">s</span><span style="color: navy"> : </span>BackboneElement, <b>target</b> <span style="color: maroon">v</span><span style="color: navy"> : </span>ModelVaccineDetails<span style="color: navy">)</span><span style="color: navy"> {
</span>  s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('doseNumber')<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">doseNumber</span><span style="color: navy"><b> -&gt; </b></span>v.doseNumber = <span style="color: maroon">doseNumber</span> <i>&quot;rule7&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule7a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule7b&quot;</i><span style="color: navy">;</span>
  s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('disease')<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">disease</span><span style="color: navy"><b> -&gt; </b></span>v.disease = <span style="color: maroon">disease</span> <i>&quot;rule8&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule8a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule8b&quot;</i><span style="color: navy">;</span>
  s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('vaccineClassification')<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">vaccine</span><span style="color: navy"><b> -&gt; </b></span>v.vaccineClassification = <span style="color: maroon">vaccine</span> <i>&quot;rule9&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule9a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule9b&quot;</i><span style="color: navy">;</span>
  s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('vaccineTradeItem')<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">vaccine</span><span style="color: navy"><b> -&gt; </b></span>v.vaccineTradeItem = <span style="color: maroon">vaccine</span> <i>&quot;rule10&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule10a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule10b&quot;</i><span style="color: navy">;</span>
  s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('date')<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">date</span><span style="color: navy"><b> -&gt; </b></span>v.date = <span style="color: maroon">date</span> <i>&quot;rule11&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule11a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule11b&quot;</i><span style="color: navy">;</span>
  s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('clinicianName')<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">clinicianName</span><span style="color: navy"><b> -&gt; </b></span>v.clinicianName = <span style="color: maroon">clinicianName</span> <i>&quot;rule12&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule12a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule12b&quot;</i><span style="color: navy">;</span>
  s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('manufacturerId')<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">mid</span><span style="color: navy"><b> -&gt; </b></span>v.manufacturerId = <span style="color: maroon">mid</span> <i>&quot;rule13&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule13a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule13b&quot;</i><span style="color: navy">;</span>
  s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('manufacturer')<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">manufacturer</span><span style="color: navy"><b> -&gt; </b></span>v.manufacturer = <span style="color: maroon">manufacturer</span> <i>&quot;rule14&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule14a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule14b&quot;</i><span style="color: navy">;</span>
  s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('batchNo')<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">batchNo</span><span style="color: navy"><b> -&gt; </b></span>v.batchNo = <span style="color: maroon">batchNo</span> <i>&quot;rule15&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule15a&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule15b&quot;</i><span style="color: navy">;</span>
  s.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('validityPeriod')<b> then</b><span style="color: navy"> {
</span>    item<span style="color: navy"><b> -&gt; </b></span>v.validityPeriod<b> as </b><span style="color: maroon">period</span><b> then</b><span style="color: navy"> {
</span>      item.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('startDate')<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.validityPeriod<b> as </b><span style="color: maroon">start</span><span style="color: navy"><b> -&gt; </b></span>period.start = <span style="color: maroon">start</span> <i>&quot;rule16&quot;</i><span style="color: navy">;</span>
        <span style="color: navy">}</span> <i>&quot;rule16a&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span> <i>&quot;rule16b&quot;</i><span style="color: navy">;</span>
      item.item<b> as </b><span style="color: maroon">item</span><b> where </b>linkId.value in ('endDate')<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.validityPeriod<b> as </b><span style="color: maroon">end</span><span style="color: navy"><b> -&gt; </b></span>period.end = <span style="color: maroon">end</span> <i>&quot;rule17&quot;</i><span style="color: navy">;</span>
        <span style="color: navy">}</span> <i>&quot;rule17a&quot;</i><span style="color: navy">;</span>
      <span style="color: navy">}</span> <i>&quot;rule17b&quot;</i><span style="color: navy">;</span>
    <span style="color: navy">}</span> <i>&quot;rule18&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;rule19&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url value="http://smart.who.int/icvp/StructureMap/DVCQRtoDVCLM"/>
  <version value="0.1.0"/>
  <name value="DVCQRtoDVCLM"/>
  <status value="draft"/>
  <date value="2024-10-07T07:28:50+00:00"/>
  <publisher value="WHO"/>
  <contact>
    <name value="WHO"/>
    <telecom>
      <system value="url"/>
      <value value="http://who.int"/>
    </telecom>
  </contact>
  <structure>
    <url
         value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"/>
    <mode value="source"/>
    <alias value="QuestionnaireResponse"/>
  </structure>
  <structure>
    <url value="http://smart.who.int/icvp/StructureDefinition/ModelDVC"/>
    <mode value="target"/>
    <alias value="DVCLogicalModel"/>
  </structure>
  <structure>
    <url
         value="http://smart.who.int/icvp/StructureDefinition/ModelVaccineDetails"/>
    <mode value="target"/>
    <alias value="ModelVaccineDetails"/>
  </structure>
  <structure>
    <url value="http://smart.who.int/icvp/StructureDefinition/DVCPayload"/>
    <mode value="target"/>
    <alias value="DVCClaim"/>
  </structure>
  <group>
    <name value="DVCQRtoDVCLM"/>
    <typeMode value="none"/>
    <input>
      <name value="qr"/>
      <type value="QuestionnaireResponse"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="lm"/>
      <type value="DVCLogicalModel"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="rule1b"/>
      <source>
        <context value="qr"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('name')"/>
      </source>
      <rule>
        <name value="rule1a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule1"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="name"/>
          </source>
          <target>
            <context value="lm"/>
            <contextType value="variable"/>
            <element value="name"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="name"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule2b"/>
      <source>
        <context value="qr"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('dob')"/>
      </source>
      <rule>
        <name value="rule2a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule2"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="dob"/>
          </source>
          <target>
            <context value="lm"/>
            <contextType value="variable"/>
            <element value="dob"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="dob"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule3b"/>
      <source>
        <context value="qr"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('sex')"/>
      </source>
      <rule>
        <name value="rule3a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule3"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="sex"/>
          </source>
          <target>
            <context value="lm"/>
            <contextType value="variable"/>
            <element value="sex"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="sex"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule4b"/>
      <source>
        <context value="qr"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('nationality')"/>
      </source>
      <rule>
        <name value="rule4a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule4"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="nationality"/>
          </source>
          <target>
            <context value="lm"/>
            <contextType value="variable"/>
            <element value="nationality"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="nationality"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule5b"/>
      <source>
        <context value="qr"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('nid')"/>
      </source>
      <rule>
        <name value="rule5a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule5"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="nid"/>
          </source>
          <target>
            <context value="lm"/>
            <contextType value="variable"/>
            <element value="nid"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="nid"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule6b"/>
      <source>
        <context value="qr"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('guardian')"/>
      </source>
      <rule>
        <name value="rule6a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule6"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="guardian"/>
          </source>
          <target>
            <context value="lm"/>
            <contextType value="variable"/>
            <element value="guardian"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="guardian"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule7"/>
      <source>
        <context value="qr"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('vaccineDetails')"/>
      </source>
      <target>
        <context value="lm"/>
        <contextType value="variable"/>
        <element value="vaccineDetails"/>
        <variable value="v"/>
      </target>
      <dependent>
        <name value="mapVaccineDetails"/>
        <variable value="item"/>
        <variable value="v"/>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="mapVaccineDetails"/>
    <typeMode value="none"/>
    <input>
      <name value="s"/>
      <type value="BackboneElement"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="v"/>
      <type value="ModelVaccineDetails"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="rule7b"/>
      <source>
        <context value="s"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('doseNumber')"/>
      </source>
      <rule>
        <name value="rule7a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule7"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="doseNumber"/>
          </source>
          <target>
            <context value="v"/>
            <contextType value="variable"/>
            <element value="doseNumber"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="doseNumber"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule8b"/>
      <source>
        <context value="s"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('disease')"/>
      </source>
      <rule>
        <name value="rule8a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule8"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="disease"/>
          </source>
          <target>
            <context value="v"/>
            <contextType value="variable"/>
            <element value="disease"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="disease"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule9b"/>
      <source>
        <context value="s"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('vaccineClassification')"/>
      </source>
      <rule>
        <name value="rule9a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule9"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="vaccine"/>
          </source>
          <target>
            <context value="v"/>
            <contextType value="variable"/>
            <element value="vaccineClassification"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="vaccine"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule10b"/>
      <source>
        <context value="s"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('vaccineTradeItem')"/>
      </source>
      <rule>
        <name value="rule10a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule10"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="vaccine"/>
          </source>
          <target>
            <context value="v"/>
            <contextType value="variable"/>
            <element value="vaccineTradeItem"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="vaccine"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule11b"/>
      <source>
        <context value="s"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('date')"/>
      </source>
      <rule>
        <name value="rule11a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule11"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="date"/>
          </source>
          <target>
            <context value="v"/>
            <contextType value="variable"/>
            <element value="date"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="date"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule12b"/>
      <source>
        <context value="s"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('clinicianName')"/>
      </source>
      <rule>
        <name value="rule12a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule12"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="clinicianName"/>
          </source>
          <target>
            <context value="v"/>
            <contextType value="variable"/>
            <element value="clinicianName"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="clinicianName"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule13b"/>
      <source>
        <context value="s"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('manufacturerId')"/>
      </source>
      <rule>
        <name value="rule13a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule13"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="mid"/>
          </source>
          <target>
            <context value="v"/>
            <contextType value="variable"/>
            <element value="manufacturerId"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="mid"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule14b"/>
      <source>
        <context value="s"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('manufacturer')"/>
      </source>
      <rule>
        <name value="rule14a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule14"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="manufacturer"/>
          </source>
          <target>
            <context value="v"/>
            <contextType value="variable"/>
            <element value="manufacturer"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="manufacturer"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule15b"/>
      <source>
        <context value="s"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('batchNo')"/>
      </source>
      <rule>
        <name value="rule15a"/>
        <source>
          <context value="item"/>
          <element value="answer"/>
          <variable value="answer"/>
        </source>
        <rule>
          <name value="rule15"/>
          <source>
            <context value="answer"/>
            <element value="value"/>
            <variable value="batchNo"/>
          </source>
          <target>
            <context value="v"/>
            <contextType value="variable"/>
            <element value="batchNo"/>
            <transform value="copy"/>
            <parameter>
              <valueId value="batchNo"/>
            </parameter>
          </target>
        </rule>
      </rule>
    </rule>
    <rule>
      <name value="rule19"/>
      <source>
        <context value="s"/>
        <element value="item"/>
        <variable value="item"/>
        <condition value="linkId.value in ('validityPeriod')"/>
      </source>
      <rule>
        <name value="rule18"/>
        <source>
          <context value="item"/>
        </source>
        <target>
          <context value="v"/>
          <contextType value="variable"/>
          <element value="validityPeriod"/>
          <variable value="period"/>
        </target>
        <rule>
          <name value="rule16b"/>
          <source>
            <context value="item"/>
            <element value="item"/>
            <variable value="item"/>
            <condition value="linkId.value in ('startDate')"/>
          </source>
          <rule>
            <name value="rule16a"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <variable value="answer"/>
            </source>
            <rule>
              <name value="rule16"/>
              <source>
                <context value="answer"/>
                <element value="validityPeriod"/>
                <variable value="start"/>
              </source>
              <target>
                <context value="period"/>
                <contextType value="variable"/>
                <element value="start"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="start"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
        <rule>
          <name value="rule17b"/>
          <source>
            <context value="item"/>
            <element value="item"/>
            <variable value="item"/>
            <condition value="linkId.value in ('endDate')"/>
          </source>
          <rule>
            <name value="rule17a"/>
            <source>
              <context value="item"/>
              <element value="answer"/>
              <variable value="answer"/>
            </source>
            <rule>
              <name value="rule17"/>
              <source>
                <context value="answer"/>
                <element value="validityPeriod"/>
                <variable value="end"/>
              </source>
              <target>
                <context value="period"/>
                <contextType value="variable"/>
                <element value="end"/>
                <transform value="copy"/>
                <parameter>
                  <valueId value="end"/>
                </parameter>
              </target>
            </rule>
          </rule>
        </rule>
      </rule>
    </rule>
  </group>
</StructureMap>