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

: Person Transforms: R2 to R3 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Person2to3"/>
  <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/Person2to3'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'Person2to3'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'Person Transforms: R2 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/1.0/Person<span style="color: navy">&quot; </span><b>alias </b>PersonR2 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/3.0/Person<span style="color: navy">&quot; </span><b>alias </b>Person <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*2to3<span style="color: navy">&quot;
</span>
<b>group </b>Person<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>PersonR2, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>Person<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 <i>&quot;Person-identifier&quot;</i><span style="color: navy">;</span>
  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name <i>&quot;Person-name&quot;</i><span style="color: navy">;</span>
  src.telecom<span style="color: navy"><b> -&gt; </b></span>tgt.telecom <i>&quot;Person-telecom&quot;</i><span style="color: navy">;</span>
  src.gender<span style="color: navy"><b> -&gt; </b></span>tgt.gender <i>&quot;Person-gender&quot;</i><span style="color: navy">;</span>
  src.birthDate<span style="color: navy"><b> -&gt; </b></span>tgt.birthDate <i>&quot;Person-birthDate&quot;</i><span style="color: navy">;</span>
  src.address<span style="color: navy"><b> -&gt; </b></span>tgt.address <i>&quot;Person-address&quot;</i><span style="color: navy">;</span>
  src.photo<span style="color: navy"><b> -&gt; </b></span>tgt.photo <i>&quot;Person-photo&quot;</i><span style="color: navy">;</span>
  src.managingOrganization<span style="color: navy"><b> -&gt; </b></span>tgt.managingOrganization <i>&quot;Person-managingOrganization&quot;</i><span style="color: navy">;</span>
  src.active<span style="color: navy"><b> -&gt; </b></span>tgt.active <i>&quot;Person-active&quot;</i><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>psnLink<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;Person-link&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>psnLink<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.target<span style="color: navy"><b> -&gt; </b></span>tgt.target <i>&quot;link-target&quot;</i><span style="color: navy">;</span>
  src.assurance<span style="color: navy"><b> -&gt; </b></span>tgt.assurance <i>&quot;link-assurance&quot;</i><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/Person2to3"/>
  <version value="0.1.0"/>
  <name value="Person2to3"/>
  <title value="Person Transforms: R2 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="PersonTransformsR2toR3"/>
  <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/1.0/Person"/>
    <mode value="source"/>
    <alias value="PersonR2"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/3.0/Person"/>
    <mode value="target"/>
    <alias value="Person"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*2to3"/>
  <group>
    <name value="Person"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="PersonR2"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="Person"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="Person-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="Person-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="Person-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="Person-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="Person-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="Person-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="Person-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="Person-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="Person-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="Person-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="psnLink"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="psnLink"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="link-target"/>
      <source>
        <context value="src"/>
        <element value="target"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="target"/>
        <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-assurance"/>
      <source>
        <context value="src"/>
        <element value="assurance"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="assurance"/>
        <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>