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

: FamilyMemberHistory Transforms: R4 to R3 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="History4to3"/>
  <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/FamilyMemberHistory4to3'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'History4to3'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FamilyMemberHistory 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/FamilyMemberHistory<span style="color: navy">&quot; </span><b>alias </b>FamilyMemberHistory <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/FamilyMemberHistory<span style="color: navy">&quot; </span><b>alias </b>FamilyMemberHistoryR3 <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>FamilyMemberHistory<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>FamilyMemberHistory, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>FamilyMemberHistoryR3<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.instantiatesCanonical<span style="color: navy"><b> -&gt; </b></span>tgt.definition<span style="color: navy">;</span>
  src.status<span style="color: navy"><b> -&gt; </b></span>tgt.status<span style="color: navy">;</span>
  src.extension<b> as </b><span style="color: maroon">e</span><b> where </b>url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-FamilyMemberHistory.notDone'<b> then</b><span style="color: navy"> {
</span>    e.value<span style="color: navy"><b> -&gt; </b></span>tgt.notDone<span style="color: navy">;</span>
  <span style="color: navy">}</span><span style="color: navy">;</span>
  src.dataAbsentReason<span style="color: navy"><b> -&gt; </b></span>tgt.notDoneReason<span style="color: navy">;</span>
  src.dataAbsentReason<b> where </b>src.extension.where(url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-FamilyMemberHistory.notDone').empty()<span style="color: navy"><b> -&gt; </b></span>tgt.notDone = <span style="color: blue">'true'</span><span style="color: navy">;</span>
  src.patient<span style="color: navy"><b> -&gt; </b></span>tgt.patient<span style="color: navy">;</span>
  src.date<span style="color: navy"><b> -&gt; </b></span>tgt.date<span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.relationship<span style="color: navy"><b> -&gt; </b></span>tgt.relationship<span style="color: navy">;</span>
  src.sex<b> as </b><span style="color: maroon">cc</span><b> then</b><span style="color: navy"> {
</span>    cc.coding<b> as </b><span style="color: maroon">c</span><b> where </b>system = 'http://hl7.org/fhir/administrative-gender'<b> then</b><span style="color: navy"> {
</span>      c.code<span style="color: navy"><b> -&gt; </b></span>tgt.gender<span style="color: navy">;</span>
    <span style="color: navy">}</span><span style="color: navy">;</span>
  <span style="color: navy">}</span><span style="color: navy">;</span>
  src.born<span style="color: navy"> : </span>Period<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.born = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Period'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Period<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.born<span style="color: navy"> : </span>Date<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.born = <b>create</b><span style="color: navy">(</span><span style="color: blue">'date'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Date<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.born<span style="color: navy"> : </span>string<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.born = <b>create</b><span style="color: navy">(</span><span style="color: blue">'string'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>string<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.age<span style="color: navy"> : </span>Age<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.age = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Age'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Age<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.age<span style="color: navy"> : </span>Range<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.age = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Range'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Range<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.age<span style="color: navy"> : </span>string<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.age = <b>create</b><span style="color: navy">(</span><span style="color: blue">'string'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>string<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.estimatedAge<span style="color: navy"><b> -&gt; </b></span>tgt.estimatedAge<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>Age<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">'Age'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Age<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>Range<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">'Range'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Range<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>Date<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">'date'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Date<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>string<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">'string'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>string<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.reasonCode<span style="color: navy"><b> -&gt; </b></span>tgt.reasonCode<span style="color: navy">;</span>
  src.reasonReference<span style="color: navy"><b> -&gt; </b></span>tgt.reasonReference<span style="color: navy">;</span>
  src.note<span style="color: navy"><b> -&gt; </b></span>tgt.note<span style="color: navy">;</span>
  src.condition<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span>tgt.condition<b> as </b><span style="color: maroon">t</span><b> then </b>condition<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>condition<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.code<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span>
  src.outcome<span style="color: navy"><b> -&gt; </b></span>tgt.outcome<span style="color: navy">;</span>
  src.onset<span style="color: navy"> : </span>string<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.onset = <b>create</b><span style="color: navy">(</span><span style="color: blue">'string'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>string<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.onset<span style="color: navy"> : </span>Age<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.onset = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Age'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Age<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.onset<span style="color: navy"> : </span>Range<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.onset = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Range'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Range<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.onset<span style="color: navy"> : </span>Period<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>tgt.onset = <b>create</b><span style="color: navy">(</span><span style="color: blue">'Period'</span><span style="color: navy">)</span><b> as </b><span style="color: maroon">vt</span><b> then </b>Period<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.note<span style="color: navy"><b> -&gt; </b></span>tgt.note<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/FamilyMemberHistory4to3"/>
  <version value="0.1.0"/>
  <name value="History4to3"/>
  <title value="FamilyMemberHistory 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="FamilyMemberHistoryTransformsR4toR3"/>
  <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/FamilyMemberHistory"/>
    <mode value="source"/>
    <alias value="FamilyMemberHistory"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/FamilyMemberHistory"/>
    <mode value="target"/>
    <alias value="FamilyMemberHistoryR3"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4to3"/>
  <group>
    <name value="FamilyMemberHistory"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="FamilyMemberHistory"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="FamilyMemberHistoryR3"/>
      <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="instantiatesCanonical"/>
      <source>
        <context value="src"/>
        <element value="instantiatesCanonical"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="definition"/>
        <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>
    </rule>
    <rule>
      <name value="extension"/>
      <source>
        <context value="src"/>
        <element value="extension"/>
        <variable value="e"/>
        <condition
                   value="url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-FamilyMemberHistory.notDone'"/>
      </source>
      <rule>
        <name value="value"/>
        <source>
          <context value="e"/>
          <element value="value"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="tgt"/>
          <element value="notDone"/>
          <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="dataAbsentReason"/>
      <source>
        <context value="src"/>
        <element value="dataAbsentReason"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="notDoneReason"/>
        <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="dataAbsentReason"/>
      <source>
        <context value="src"/>
        <element value="dataAbsentReason"/>
        <condition
                   value="src.extension.where(url = 'http://hl7.org/fhir/3.0/StructureDefinition/extension-FamilyMemberHistory.notDone').empty()"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="notDone"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="true"/>
        </parameter>
      </target>
    </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="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="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="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="sex"/>
      <source>
        <context value="src"/>
        <element value="sex"/>
        <variable value="cc"/>
      </source>
      <rule>
        <name value="coding"/>
        <source>
          <context value="cc"/>
          <element value="coding"/>
          <variable value="c"/>
          <condition
                     value="system = 'http://hl7.org/fhir/administrative-gender'"/>
        </source>
        <rule>
          <name value="code"/>
          <source>
            <context value="c"/>
            <element value="code"/>
            <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>
    </rule>
    <rule>
      <name value="bornPeriod"/>
      <source>
        <context value="src"/>
        <type value="Period"/>
        <element value="born"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="born"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Period"/>
        </parameter>
      </target>
      <dependent>
        <name value="Period"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="bornDate"/>
      <source>
        <context value="src"/>
        <type value="Date"/>
        <element value="born"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="born"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="date"/>
        </parameter>
      </target>
      <dependent>
        <name value="Date"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="bornString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="born"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="born"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
      <dependent>
        <name value="string"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="ageAge"/>
      <source>
        <context value="src"/>
        <type value="Age"/>
        <element value="age"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="age"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Age"/>
        </parameter>
      </target>
      <dependent>
        <name value="Age"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="ageRange"/>
      <source>
        <context value="src"/>
        <type value="Range"/>
        <element value="age"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="age"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Range"/>
        </parameter>
      </target>
      <dependent>
        <name value="Range"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="ageString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="age"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="age"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
      <dependent>
        <name value="string"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="estimatedAge"/>
      <source>
        <context value="src"/>
        <element value="estimatedAge"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="estimatedAge"/>
        <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="deceasedAge"/>
      <source>
        <context value="src"/>
        <type value="Age"/>
        <element value="deceased"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="deceased"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Age"/>
        </parameter>
      </target>
      <dependent>
        <name value="Age"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="deceasedRange"/>
      <source>
        <context value="src"/>
        <type value="Range"/>
        <element value="deceased"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="deceased"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Range"/>
        </parameter>
      </target>
      <dependent>
        <name value="Range"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="deceasedDate"/>
      <source>
        <context value="src"/>
        <type value="Date"/>
        <element value="deceased"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="deceased"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="date"/>
        </parameter>
      </target>
      <dependent>
        <name value="Date"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="deceasedString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="deceased"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="deceased"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
      <dependent>
        <name value="string"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="reasonCode"/>
      <source>
        <context value="src"/>
        <element value="reasonCode"/>
        <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="reasonReference"/>
      <source>
        <context value="src"/>
        <element value="reasonReference"/>
        <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="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="condition"/>
      <source>
        <context value="src"/>
        <element value="condition"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="condition"/>
        <variable value="t"/>
      </target>
      <dependent>
        <name value="condition"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
        <parameter>
          <valueId value="t"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="condition"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="code"/>
      <source>
        <context value="src"/>
        <element value="code"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="code"/>
        <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="outcome"/>
      <source>
        <context value="src"/>
        <element value="outcome"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="outcome"/>
        <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="onsetString"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="onset"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="onset"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="string"/>
        </parameter>
      </target>
      <dependent>
        <name value="string"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="onsetAge"/>
      <source>
        <context value="src"/>
        <type value="Age"/>
        <element value="onset"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="onset"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Age"/>
        </parameter>
      </target>
      <dependent>
        <name value="Age"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="onsetRange"/>
      <source>
        <context value="src"/>
        <type value="Range"/>
        <element value="onset"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="onset"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Range"/>
        </parameter>
      </target>
      <dependent>
        <name value="Range"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </parameter>
      </dependent>
    </rule>
    <rule>
      <name value="onsetPeriod"/>
      <source>
        <context value="src"/>
        <type value="Period"/>
        <element value="onset"/>
        <variable value="vs"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="onset"/>
        <variable value="vt"/>
        <transform value="create"/>
        <parameter>
          <valueString value="Period"/>
        </parameter>
      </target>
      <dependent>
        <name value="Period"/>
        <parameter>
          <valueId value="vs"/>
        </parameter>
        <parameter>
          <valueId value="vt"/>
        </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>
  </group>
</StructureMap>