FHIR Extensions Pack
5.1.0-ballot1 - Ballot for Release 5.1.0 International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0-ballot: Releases Ballot 4) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions

: FML Conversion for Immunization: R5 to R4B - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Immunization5to4B"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><pre class="fml">
<span style="color: #cc00cc">/// <b>url</b> = </span><span style="color: blue">'http://hl7.org/fhir/StructureMap/Immunization5to4B'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Immunization5to4B'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for Immunization: R5 to R4B'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/immunization.html" title="Immunization">http://hl7.org/fhir/StructureDefinition/Immunization</a><span style="color: navy">&quot; </span><b>alias </b>ImmunizationR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4B/immunization.html" title="Immunization">http://hl7.org/fhir/4.3/StructureDefinition/Immunization</a><span style="color: navy">&quot; </span><b>alias </b>ImmunizationR4B <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*5to4B<span style="color: navy">&quot;
</span>
<b>group </b>Immunization<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>ImmunizationR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ImmunizationR4B<span style="color: navy">)</span><b> extends </b>DomainResource<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.identifier<span style="color: navy"><b> -&gt; </b></span>tgt.identifier<span style="color: navy">;</span>
  src.status<span style="color: navy"><b> -&gt; </b></span>tgt.status<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.basedOn -&gt; tgt.basedOn;</span>
  src.statusReason<span style="color: navy"><b> -&gt; </b></span>tgt.statusReason<span style="color: navy">;</span>
  src.vaccineCode<span style="color: navy"><b> -&gt; </b></span>tgt.vaccineCode<span style="color: navy">;</span>
  src.manufacturer<span style="color: navy"><b> -&gt; </b></span>tgt.manufacturer<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.administeredProduct -&gt; tgt.administeredProduct;</span>
  src.lotNumber<span style="color: navy"><b> -&gt; </b></span>tgt.lotNumber<span style="color: navy">;</span>
  src.expirationDate<span style="color: navy"><b> -&gt; </b></span>tgt.expirationDate<span style="color: navy">;</span>
  src.patient<span style="color: navy"><b> -&gt; </b></span>tgt.patient<span style="color: navy">;</span>
  src.encounter<span style="color: navy"><b> -&gt; </b></span>tgt.encounter<span style="color: navy">;</span>
  src.occurrence<span style="color: navy"> : </span>dateTime<span style="color: navy"><b> -&gt; </b></span>tgt.occurrence<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.supportingInformation -&gt; tgt.supportingInformation;</span>
  src.occurrence<span style="color: navy"> : </span>string<span style="color: navy"><b> -&gt; </b></span>tgt.occurrence<span style="color: navy">;</span>
  src.primarySource<span style="color: navy"><b> -&gt; </b></span>tgt.primarySource<span style="color: navy">;</span>
  src.location<span style="color: navy"><b> -&gt; </b></span>tgt.location<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.informationSource -&gt; tgt.informationSource;</span>
  src.site<span style="color: navy"><b> -&gt; </b></span>tgt.site<span style="color: navy">;</span>
  src.route<span style="color: navy"><b> -&gt; </b></span>tgt.route<span style="color: navy">;</span>
  src.doseQuantity<span style="color: navy"><b> -&gt; </b></span>tgt.doseQuantity<span style="color: navy">;</span>
  src.performer<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.performer<b> as </b><span style="color: maroon">t</span><b> then </b>ImmunizationPerformer<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.note<span style="color: navy"><b> -&gt; </b></span>tgt.note<span style="color: navy">;</span>
  src.reason<span style="color: navy"><b> -&gt; </b></span>tgt.reasonCode<span style="color: navy">;</span>
  src.reason<span style="color: navy"><b> -&gt; </b></span>tgt.reasonReference<span style="color: navy">;</span>
  src.isSubpotent<span style="color: navy"><b> -&gt; </b></span>tgt.isSubpotent<span style="color: navy">;</span>
  src.subpotentReason<span style="color: navy"><b> -&gt; </b></span>tgt.subpotentReason<span style="color: navy">;</span>
  src.programEligibility<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span><span style="color: maroon">tgt</span><b> then</b><span style="color: navy"> {
</span>    s.program<span style="color: navy"><b> -&gt; </b></span>tgt.programEligibility<span style="color: navy">;</span>
  <span style="color: navy">}</span><span style="color: navy">;</span>
  src.fundingSource<span style="color: navy"><b> -&gt; </b></span>tgt.fundingSource<span style="color: navy">;</span>
  src.reaction<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.reaction<b> as </b><span style="color: maroon">t</span><b> then </b>ImmunizationReaction<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.protocolApplied<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.protocolApplied<b> as </b><span style="color: maroon">t</span><b> then </b>ImmunizationProtocolApplied<span style="color: navy">(</span><span style="color: maroon">s</span><span style="color: navy">, </span><span style="color: maroon">t</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>ImmunizationPerformer<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.function<span style="color: navy"><b> -&gt; </b></span>tgt.function<span style="color: navy">;</span>
  src.actor<span style="color: navy"><b> -&gt; </b></span>tgt.actor<span style="color: navy">;</span>
<span style="color: navy">}

</span><span style="color: navy">// </span><span style="color: green">group ImmunizationProgramEligibility(source src, target tgt) extends BackboneElement {</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.program -&gt; tgt.program;</span>
<span style="color: #b36b00" title="This element was not defined prior to R5">// src.programStatus -&gt; tgt.programStatus;</span>
<span style="color: navy">// </span><span style="color: green">}</span>
<b>group </b>ImmunizationReaction<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.date<span style="color: navy"><b> -&gt; </b></span>tgt.date<span style="color: navy">;</span>
  src.manifestation<span style="color: navy"><b> -&gt; </b></span>tgt.detail<span style="color: navy">;</span>
  src.reported<span style="color: navy"><b> -&gt; </b></span>tgt.reported<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>ImmunizationProtocolApplied<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span>, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy">)</span><b> extends </b>BackboneElement<span style="color: navy"> {
</span>  src.series<span style="color: navy"><b> -&gt; </b></span>tgt.series<span style="color: navy">;</span>
  src.authority<span style="color: navy"><b> -&gt; </b></span>tgt.authority<span style="color: navy">;</span>
  src.targetDisease<span style="color: navy"><b> -&gt; </b></span>tgt.targetDisease<span style="color: navy">;</span>
  src.doseNumber<span style="color: navy"><b> -&gt; </b></span>tgt.doseNumber<span style="color: navy">;</span>
  src.seriesDoses<span style="color: navy"><b> -&gt; </b></span>tgt.seriesDoses<span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
      </extension>
    </valueInteger>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
      </extension>
    </valueCode>
  </extension>
  <url value="http://hl7.org/fhir/StructureMap/Immunization5to4B"/>
  <version value="5.1.0-ballot1"/>
  <name value="Immunization5to4B"/>
  <title value="FML Conversion for Immunization: R5 to R4B"/>
  <status value="active"/>
  <date value="2023-12-19T08:40:03+11:00"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg"/>
    </telecom>
  </contact>
  <description value="FMLConversionforImmunizationR5toR4B"/>
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm"/>
      <code value="001"/>
    </coding>
  </jurisdiction>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/Immunization"/>
    <mode value="source"/>
    <alias value="ImmunizationR5"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/4.3/StructureDefinition/Immunization"/>
    <mode value="target"/>
    <alias value="ImmunizationR4B"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*5to4B"/>
  <group>
    <name value="Immunization"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="ImmunizationR5"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="ImmunizationR4B"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="identifier"/>
      <source>
        <context value="src"/>
        <element value="identifier"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="identifier"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="src"/>
        <element value="status"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="status"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation value="src.basedOn -&gt; tgt.basedOn;"/>
    </rule>
    <rule>
      <name value="statusReason"/>
      <source>
        <context value="src"/>
        <element value="statusReason"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="statusReason"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="vaccineCode"/>
      <source>
        <context value="src"/>
        <element value="vaccineCode"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="vaccineCode"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="manufacturer"/>
      <source>
        <context value="src"/>
        <element value="manufacturer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="manufacturer"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.administeredProduct -&gt; tgt.administeredProduct;"/>
    </rule>
    <rule>
      <name value="lotNumber"/>
      <source>
        <context value="src"/>
        <element value="lotNumber"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="lotNumber"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="expirationDate"/>
      <source>
        <context value="src"/>
        <element value="expirationDate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="expirationDate"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="patient"/>
      <source>
        <context value="src"/>
        <element value="patient"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="patient"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="encounter"/>
      <source>
        <context value="src"/>
        <element value="encounter"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="encounter"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="occurrenceDateTime"/>
      <source>
        <context value="src"/>
        <type value="dateTime"/>
        <element value="occurrence"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="occurrence"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.supportingInformation -&gt; tgt.supportingInformation;"/>
    </rule>
    <rule>
      <name value="occurrenceString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="occurrence"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="occurrence"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="primarySource"/>
      <source>
        <context value="src"/>
        <element value="primarySource"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="primarySource"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="location"/>
      <source>
        <context value="src"/>
        <element value="location"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="location"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation
                     value="src.informationSource -&gt; tgt.informationSource;"/>
    </rule>
    <rule>
      <name value="site"/>
      <source>
        <context value="src"/>
        <element value="site"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="site"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="route"/>
      <source>
        <context value="src"/>
        <element value="route"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="route"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="doseQuantity"/>
      <source>
        <context value="src"/>
        <element value="doseQuantity"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="doseQuantity"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="performer"/>
      <source>
        <context value="src"/>
        <element value="performer"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="performer"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="ImmunizationPerformer"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="note"/>
      <source>
        <context value="src"/>
        <element value="note"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="note"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="reason"/>
      <source>
        <context value="src"/>
        <element value="reason"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="reasonCode"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="reason"/>
      <source>
        <context value="src"/>
        <element value="reason"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="reasonReference"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="isSubpotent"/>
      <source>
        <context value="src"/>
        <element value="isSubpotent"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="isSubpotent"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="subpotentReason"/>
      <source>
        <context value="src"/>
        <element value="subpotentReason"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="subpotentReason"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="programEligibility"/>
      <source>
        <context value="src"/>
        <element value="programEligibility"/>
        <variable value="s"/>
      </source>
      <target>
        <transform value="copy"/>
        <parameter>
          <valueId value="tgt"/>
        </parameter>
      </target>
      <rule>
        <name value="program"/>
        <source>
          <context value="s"/>
          <element value="program"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="programEligibility"/>
          <variable value="vvv"/>
          <transform value="create"/>
        </target>
        <dependent>
          <name value="DefaultMappingGroupAnonymousAlias"/>
          <parameter>
            <valueId value="vvv"/>
          </parameter>
          <parameter>
            <valueId value="vvv"/>
          </parameter>
        </dependent>
      </rule>
    </rule>
    <rule>
      <name value="fundingSource"/>
      <source>
        <context value="src"/>
        <element value="fundingSource"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="fundingSource"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="reaction"/>
      <source>
        <context value="src"/>
        <element value="reaction"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="reaction"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="ImmunizationReaction"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="protocolApplied"/>
      <source>
        <context value="src"/>
        <element value="protocolApplied"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="protocolApplied"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="ImmunizationProtocolApplied"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="ImmunizationPerformer"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="function"/>
      <source>
        <context value="src"/>
        <element value="function"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="function"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="actor"/>
      <source>
        <context value="src"/>
        <element value="actor"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="actor"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="ImmunizationReaction"/>
    <extends value="BackboneElement"/>
    <documentation
                   value="group ImmunizationProgramEligibility(source src, target tgt) extends BackboneElement {
src.program -&gt; tgt.program;
src.programStatus -&gt; tgt.programStatus;
}"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="date"/>
      <source>
        <context value="src"/>
        <element value="date"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="date"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="manifestation"/>
      <source>
        <context value="src"/>
        <element value="manifestation"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="detail"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="reported"/>
      <source>
        <context value="src"/>
        <element value="reported"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="reported"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="ImmunizationProtocolApplied"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="series"/>
      <source>
        <context value="src"/>
        <element value="series"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="series"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="authority"/>
      <source>
        <context value="src"/>
        <element value="authority"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="authority"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="targetDisease"/>
      <source>
        <context value="src"/>
        <element value="targetDisease"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="targetDisease"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="doseNumber"/>
      <source>
        <context value="src"/>
        <element value="doseNumber"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="doseNumber"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="seriesDoses"/>
      <source>
        <context value="src"/>
        <element value="seriesDoses"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="seriesDoses"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
    </rule>
  </group>
</StructureMap>