FHIR Cross-Version Mapping Pack
0.1.0 - Ballot for Release 5.1.0 International flag

FHIR Cross-Version Mapping Pack, published by HL7 International / FHIR Infrastructure. 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/HL7/fhir-cross-version/ and changes regularly. See the Directory of published versions

: Patient Transforms: R4 to R3 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Patient4to3"/>
  <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/Patient4to3'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Patient4to3'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Patient Transforms: R4 to R3'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/4.0/Patient<span style="color: navy">&quot; </span><b>alias </b>Patient <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/Patient<span style="color: navy">&quot; </span><b>alias </b>PatientR3 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*4to3<span style="color: navy">&quot;
</span>
<b>group </b>Patient<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Patient, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>PatientR3<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.active<span style="color: navy"><b> -&gt; </b></span>tgt.active<span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.telecom<span style="color: navy"><b> -&gt; </b></span>tgt.telecom<span style="color: navy">;</span>
  src.gender<span style="color: navy"><b> -&gt; </b></span>tgt.gender<span style="color: navy">;</span>
  src.birthDate<span style="color: navy"><b> -&gt; </b></span>tgt.birthDate<span style="color: navy">;</span>
  src.deceased<span style="color: navy"> : </span>boolean<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.deceased = <b>create</b><span style="color: navy">(</span><span style="color: blue">'boolean'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>boolean<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.deceased<span style="color: navy"> : </span>dateTime<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.deceased = <b>create</b><span style="color: navy">(</span><span style="color: blue">'dateTime'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>dateTime<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.address<span style="color: navy"><b> -&gt; </b></span>tgt.address<span style="color: navy">;</span>
  src.maritalStatus<span style="color: navy"><b> -&gt; </b></span>tgt.maritalStatus<span style="color: navy">;</span>
  src.multipleBirth<span style="color: navy"> : </span>boolean<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.multipleBirth = <b>create</b><span style="color: navy">(</span><span style="color: blue">'boolean'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>boolean<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.multipleBirth<span style="color: navy"> : </span>integer<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.multipleBirth = <b>create</b><span style="color: navy">(</span><span style="color: blue">'integer'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>integer<span style="color: navy">(</span><span style="color: maroon">vs</span><span style="color: navy">, </span><span style="color: maroon">vt</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.photo<span style="color: navy"><b> -&gt; </b></span>tgt.photo<span style="color: navy">;</span>
  src.contact<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.contact<b> as </b><span style="color: maroon">vt0</span><b> then </b>contact<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">vs0</span><b> where </b>url = 'http://hl7.org/fhir/StructureDefinition/patient-animal'<span style="color: navy"><b> -&gt; </b></span>tgt.animal<b> as </b><span style="color: maroon">vt0</span><b> then </b>animal<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span> <i>&quot;animal&quot;</i><span style="color: navy">;</span>
  src.communication<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.communication<b> as </b><span style="color: maroon">vt0</span><b> then </b>communication<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.generalPractitioner<span style="color: navy"><b> -&gt; </b></span>tgt.generalPractitioner<span style="color: navy">;</span>
  src.managingOrganization<span style="color: navy"><b> -&gt; </b></span>tgt.managingOrganization<span style="color: navy">;</span>
  src.link<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.link<b> as </b><span style="color: maroon">vt0</span><b> then </b>link<span style="color: navy">(</span><span style="color: maroon">vs0</span><span style="color: navy">, </span><span style="color: maroon">vt0</span><span style="color: navy">)</span><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>contact<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.relationship<span style="color: navy"><b> -&gt; </b></span>tgt.relationship<span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.telecom<span style="color: navy"><b> -&gt; </b></span>tgt.telecom<span style="color: navy">;</span>
  src.address<span style="color: navy"><b> -&gt; </b></span>tgt.address<span style="color: navy">;</span>
  src.gender<span style="color: navy"><b> -&gt; </b></span>tgt.gender<span style="color: navy">;</span>
  src.organization<span style="color: navy"><b> -&gt; </b></span>tgt.organization<span style="color: navy">;</span>
  src.period<span style="color: navy"><b> -&gt; </b></span>tgt.period<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>animal<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><span style="color: navy"> {
</span>  src.extension<b> as </b><span style="color: maroon">ext</span><b> where </b>url = 'species'<b> then</b><span style="color: navy"> {
</span>    ext.value<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.species = <span style="color: maroon">vs0</span> <i>&quot;species2&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;species&quot;</i><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">ext</span><b> where </b>url = 'breed'<b> then</b><span style="color: navy"> {
</span>    ext.value<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.breed = <span style="color: maroon">vs0</span> <i>&quot;breed&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;breed&quot;</i><span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">ext</span><b> where </b>url = 'genderStatus'<b> then</b><span style="color: navy"> {
</span>    ext.value<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.genderStatus = <span style="color: maroon">vs0</span> <i>&quot;genderStatus&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;genderStatus&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>communication<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.language<span style="color: navy"><b> -&gt; </b></span>tgt.language<span style="color: navy">;</span>
  src.preferred<span style="color: navy"><b> -&gt; </b></span>tgt.preferred<span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>link<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.other<span style="color: navy"><b> -&gt; </b></span>tgt.other<span style="color: navy">;</span>
  src.type<span style="color: navy"><b> -&gt; </b></span>tgt.type<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.xver"/>
      </extension>
    </valueInteger>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="draft">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver"/>
      </extension>
    </valueCode>
  </extension>
  <url value="http://hl7.org/fhir/StructureMap/Patient4to3"/>
  <version value="0.1.0"/>
  <name value="Patient4to3"/>
  <title value="Patient Transforms: R4 to R3"/>
  <status value="active"/>
  <date value="2024-02-22T03:16:50+00: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="PatientTransformsR4toR3"/>
  <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/4.0/Patient"/>
    <mode value="source"/>
    <alias value="Patient"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/Patient"/>
    <mode value="target"/>
    <alias value="PatientR3"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4to3"/>
  <group>
    <name value="Patient"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="Patient"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="PatientR3"/>
      <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="active"/>
      <source>
        <context value="src"/>
        <element value="active"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="active"/>
        <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="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <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="telecom"/>
      <source>
        <context value="src"/>
        <element value="telecom"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="telecom"/>
        <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="gender"/>
      <source>
        <context value="src"/>
        <element value="gender"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="gender"/>
        <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="birthDate"/>
      <source>
        <context value="src"/>
        <element value="birthDate"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="birthDate"/>
        <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="deceasedBoolean"/>
      <source>
        <context value="src"/>
        <type value="boolean"/>
        <element value="deceased"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="deceased"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="boolean"/>
        </parameter>
      </target>
      <dependent>
        <name value="boolean"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="deceasedDateTime"/>
      <source>
        <context value="src"/>
        <type value="dateTime"/>
        <element value="deceased"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="deceased"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="dateTime"/>
        </parameter>
      </target>
      <dependent>
        <name value="dateTime"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="address"/>
      <source>
        <context value="src"/>
        <element value="address"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="address"/>
        <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="maritalStatus"/>
      <source>
        <context value="src"/>
        <element value="maritalStatus"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="maritalStatus"/>
        <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="multipleBirthBoolean"/>
      <source>
        <context value="src"/>
        <type value="boolean"/>
        <element value="multipleBirth"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="multipleBirth"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="boolean"/>
        </parameter>
      </target>
      <dependent>
        <name value="boolean"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="multipleBirthInteger"/>
      <source>
        <context value="src"/>
        <type value="integer"/>
        <element value="multipleBirth"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="multipleBirth"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="integer"/>
        </parameter>
      </target>
      <dependent>
        <name value="integer"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="photo"/>
      <source>
        <context value="src"/>
        <element value="photo"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="photo"/>
        <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="contact"/>
      <source>
        <context value="src"/>
        <element value="contact"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="contact"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="contact"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="animal"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="vs0"/>
        <condition
                   value="url = 'http://hl7.org/fhir/StructureDefinition/patient-animal'"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="animal"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="animal"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="communication"/>
      <source>
        <context value="src"/>
        <element value="communication"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="communication"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="communication"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="generalPractitioner"/>
      <source>
        <context value="src"/>
        <element value="generalPractitioner"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="generalPractitioner"/>
        <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="managingOrganization"/>
      <source>
        <context value="src"/>
        <element value="managingOrganization"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="managingOrganization"/>
        <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="link"/>
      <source>
        <context value="src"/>
        <element value="link"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="link"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="link"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="contact"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="relationship"/>
      <source>
        <context value="src"/>
        <element value="relationship"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="relationship"/>
        <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="name"/>
      <source>
        <context value="src"/>
        <element value="name"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="name"/>
        <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="telecom"/>
      <source>
        <context value="src"/>
        <element value="telecom"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="telecom"/>
        <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="address"/>
      <source>
        <context value="src"/>
        <element value="address"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="address"/>
        <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="gender"/>
      <source>
        <context value="src"/>
        <element value="gender"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="gender"/>
        <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="organization"/>
      <source>
        <context value="src"/>
        <element value="organization"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="organization"/>
        <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="period"/>
      <source>
        <context value="src"/>
        <element value="period"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="period"/>
        <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="animal"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="species"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="ext"/>
        <condition value="url = 'species'"/>
      </source>
      <rule>
        <name value="species2"/>
        <source>
          <context value="ext"/>
          <element value="value"/>
          <variable value="vs0"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="species"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vs0"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="breed"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="ext"/>
        <condition value="url = 'breed'"/>
      </source>
      <rule>
        <name value="breed"/>
        <source>
          <context value="ext"/>
          <element value="value"/>
          <variable value="vs0"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="breed"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vs0"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="genderStatus"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="ext"/>
        <condition value="url = 'genderStatus'"/>
      </source>
      <rule>
        <name value="genderStatus"/>
        <source>
          <context value="ext"/>
          <element value="value"/>
          <variable value="vs0"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="genderStatus"/>
          <transform value="copy"/>
          <parameter>
            <valueId value="vs0"/>
          </parameter>
        </target>
      </rule>
    </rule>
  </group>
  <group>
    <name value="communication"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="language"/>
      <source>
        <context value="src"/>
        <element value="language"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="language"/>
        <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="preferred"/>
      <source>
        <context value="src"/>
        <element value="preferred"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="preferred"/>
        <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="link"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="other"/>
      <source>
        <context value="src"/>
        <element value="other"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="other"/>
        <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="type"/>
      <source>
        <context value="src"/>
        <element value="type"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <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>