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

: Appointment Transforms: R3 to R2 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



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

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*3to2<span style="color: navy">&quot;
</span>
<b>group </b>Appointment<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Appointment, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>AppointmentR2<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;Appointment-identifier&quot;</i><span style="color: navy">;</span>
  src.status<span style="color: navy"><b> -&gt; </b></span>tgt.status <i>&quot;Appointment-status&quot;</i><span style="color: navy">;</span>
  src.serviceType<span style="color: navy"><b> -&gt; </b></span>tgt.type <i>&quot;Appointment-type&quot;</i><span style="color: navy">;</span>
  src.reason<span style="color: navy"><b> -&gt; </b></span>tgt.reason <i>&quot;Appointment-reason&quot;</i><span style="color: navy">;</span>
  src.priority<span style="color: navy"><b> -&gt; </b></span>tgt.priority <i>&quot;Appointment-priority&quot;</i><span style="color: navy">;</span>
  src.description<span style="color: navy"><b> -&gt; </b></span>tgt.description <i>&quot;Appointment-description&quot;</i><span style="color: navy">;</span>
  src.start<span style="color: navy"><b> -&gt; </b></span>tgt.start <i>&quot;Appointment-start&quot;</i><span style="color: navy">;</span>
  src.end<span style="color: navy"><b> -&gt; </b></span>tgt.end <i>&quot;Appointment-end&quot;</i><span style="color: navy">;</span>
  src.minutesDuration<span style="color: navy"><b> -&gt; </b></span>tgt.minutesDuration <i>&quot;Appointment-minutesDuration&quot;</i><span style="color: navy">;</span>
  src.slot<span style="color: navy"><b> -&gt; </b></span>tgt.slot <i>&quot;Appointment-slot&quot;</i><span style="color: navy">;</span>
  src.comment<span style="color: navy"><b> -&gt; </b></span>tgt.comment <i>&quot;Appointment-comment&quot;</i><span style="color: navy">;</span>
  src.participant<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.participant<b> as </b><span style="color: maroon">vt0</span><b> then </b>appParticipant<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;Appointment-participant&quot;</i><span style="color: navy">;</span>
<span style="color: navy">}

</span><b>group </b>appParticipant<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.type<span style="color: navy"><b> -&gt; </b></span>tgt.type <i>&quot;participant-type&quot;</i><span style="color: navy">;</span>
  src.actor<span style="color: navy"><b> -&gt; </b></span>tgt.actor <i>&quot;participant-actor&quot;</i><span style="color: navy">;</span>
  src.required<span style="color: navy"><b> -&gt; </b></span>tgt.required <i>&quot;participant-required&quot;</i><span style="color: navy">;</span>
  src.status<span style="color: navy"><b> -&gt; </b></span>tgt.status <i>&quot;participant-status&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/Appointment3to2"/>
  <version value="0.1.0"/>
  <name value="Appointment3to2"/>
  <title value="Appointment Transforms: R3 to R2"/>
  <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="AppointmentTransformsR3toR2"/>
  <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/3.0/Appointment"/>
    <mode value="source"/>
    <alias value="Appointment"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/Appointment"/>
    <mode value="target"/>
    <alias value="AppointmentR2"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*3to2"/>
  <group>
    <name value="Appointment"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="Appointment"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="AppointmentR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="Appointment-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="Appointment-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="Appointment-type"/>
      <source>
        <context value="src"/>
        <element value="serviceType"/>
        <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>
    <rule>
      <name value="Appointment-reason"/>
      <source>
        <context value="src"/>
        <element value="reason"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="reason"/>
        <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="Appointment-priority"/>
      <source>
        <context value="src"/>
        <element value="priority"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="priority"/>
        <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="Appointment-description"/>
      <source>
        <context value="src"/>
        <element value="description"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="description"/>
        <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="Appointment-start"/>
      <source>
        <context value="src"/>
        <element value="start"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="start"/>
        <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="Appointment-end"/>
      <source>
        <context value="src"/>
        <element value="end"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="end"/>
        <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="Appointment-minutesDuration"/>
      <source>
        <context value="src"/>
        <element value="minutesDuration"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="minutesDuration"/>
        <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="Appointment-slot"/>
      <source>
        <context value="src"/>
        <element value="slot"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="slot"/>
        <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="Appointment-comment"/>
      <source>
        <context value="src"/>
        <element value="comment"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="comment"/>
        <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="Appointment-participant"/>
      <source>
        <context value="src"/>
        <element value="participant"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="participant"/>
        <variable value="vt0"/>
      </target>
      <dependent>
        <name value="appParticipant"/>
        <parameter>
          <valueId value="vs0"/>
        </parameter>
        <parameter>
          <valueId value="vt0"/>
        </parameter>
      </dependent>
    </rule>
  </group>
  <group>
    <name value="appParticipant"/>
    <extends value="BackboneElement"/>
    <input>
      <name value="src"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="participant-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>
    <rule>
      <name value="participant-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>
    <rule>
      <name value="participant-required"/>
      <source>
        <context value="src"/>
        <element value="required"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="required"/>
        <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="participant-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>
  </group>
</StructureMap>