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

: Timing Transforms: R3 to R2 - XML Representation

Page standards status: Draft Maturity Level: 1

Raw xml | Download



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

<b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-primitives3to2.html" title="Primitive Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/primitives3to2</a><span style="color: navy">&quot;
</span><b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-Element3to2.html" title="Period Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Element3to2</a><span style="color: navy">&quot;
</span><b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-Period3to2.html" title="Period Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Period3to2</a><span style="color: navy">&quot;
</span><b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-Range3to2.html" title="Range Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/Range3to2</a><span style="color: navy">&quot;
</span><b>imports</b><span style="color: navy"> &quot;</span><a href="StructureMap-CodeableConcept3to2.html" title="CodeableConcept Transforms: R3 to R2">http://hl7.org/fhir/StructureMap/CodeableConcept3to2</a><span style="color: navy">&quot;
</span>
<b>group </b>Timing<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>Timing, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>TimingR2<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.event<span style="color: navy"><b> -&gt; </b></span>tgt.event <i>&quot;Timing-event&quot;</i><span style="color: navy">;</span>
  src.repeat<b> as </b><span style="color: maroon">vs0</span><span style="color: navy"><b> -&gt; </b></span>tgt.repeat<b> as </b><span style="color: maroon">vt0</span><b> then</b><span style="color: navy"> {
</span>    vs0.bounds<span style="color: navy"> : </span>Range<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>vt0.bounds = <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> <i>&quot;repeat-bounds-Range&quot;</i><span style="color: navy">;</span>
    vs0.bounds<span style="color: navy"> : </span>Period<b> as </b><span style="color: maroon">vs</span><span style="color: navy"><b> -&gt; </b></span>vt0.bounds = <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> <i>&quot;repeat-bounds-Period&quot;</i><span style="color: navy">;</span>
    vs0.count<span style="color: navy"><b> -&gt; </b></span>vt0.count <i>&quot;repeat-count&quot;</i><span style="color: navy">;</span>
    vs0.duration<span style="color: navy"><b> -&gt; </b></span>vt0.duration <i>&quot;repeat-duration&quot;</i><span style="color: navy">;</span>
    vs0.durationMax<span style="color: navy"><b> -&gt; </b></span>vt0.durationMax <i>&quot;repeat-durationMax&quot;</i><span style="color: navy">;</span>
    vs0.durationUnit<span style="color: navy"><b> -&gt; </b></span>vt0.durationUnits <i>&quot;repeat-durationUnits&quot;</i><span style="color: navy">;</span>
    vs0.frequency<span style="color: navy"><b> -&gt; </b></span>vt0.frequency <i>&quot;repeat-frequency&quot;</i><span style="color: navy">;</span>
    vs0.frequencyMax<span style="color: navy"><b> -&gt; </b></span>vt0.frequencyMax <i>&quot;repeat-frequencyMax&quot;</i><span style="color: navy">;</span>
    vs0.period<span style="color: navy"><b> -&gt; </b></span>vt0.period <i>&quot;repeat-period&quot;</i><span style="color: navy">;</span>
    vs0.periodMax<span style="color: navy"><b> -&gt; </b></span>vt0.periodMax <i>&quot;repeat-periodMax&quot;</i><span style="color: navy">;</span>
    vs0.periodUnit<span style="color: navy"><b> -&gt; </b></span>vt0.periodUnits <i>&quot;repeat-periodUnits&quot;</i><span style="color: navy">;</span>
    vs0.when<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>vt0.when = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#EventTiming'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span> <i>&quot;repeat-when&quot;</i><span style="color: navy">;</span>
  <span style="color: navy">}</span> <i>&quot;Timing-repeat&quot;</i><span style="color: navy">;</span>
  src.code<span style="color: navy"><b> -&gt; </b></span>tgt.code <i>&quot;Timing-code&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/Timing3to2"/>
  <version value="0.1.0"/>
  <name value="Timing3to2"/>
  <title value="Timing 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="TimingTransformsR3toR2"/>
  <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/Timing"/>
    <mode value="source"/>
    <alias value="Timing"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/1.0/Timing"/>
    <mode value="target"/>
    <alias value="TimingR2"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/primitives3to2"/>
  <import value="http://hl7.org/fhir/StructureMap/Element3to2"/>
  <import value="http://hl7.org/fhir/StructureMap/Period3to2"/>
  <import value="http://hl7.org/fhir/StructureMap/Range3to2"/>
  <import value="http://hl7.org/fhir/StructureMap/CodeableConcept3to2"/>
  <group>
    <name value="Timing"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="Timing"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="TimingR2"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="Timing-event"/>
      <source>
        <context value="src"/>
        <element value="event"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="event"/>
        <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="Timing-repeat"/>
      <source>
        <context value="src"/>
        <element value="repeat"/>
        <variable value="vs0"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="repeat"/>
        <variable value="vt0"/>
      </target>
      <rule>
        <name value="repeat-bounds-Range"/>
        <source>
          <context value="vs0"/>
          <type value="Range"/>
          <element value="bounds"/>
          <variable value="vs"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="bounds"/>
          <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="repeat-bounds-Period"/>
        <source>
          <context value="vs0"/>
          <type value="Period"/>
          <element value="bounds"/>
          <variable value="vs"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="bounds"/>
          <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="repeat-count"/>
        <source>
          <context value="vs0"/>
          <element value="count"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="count"/>
          <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="repeat-duration"/>
        <source>
          <context value="vs0"/>
          <element value="duration"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="duration"/>
          <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="repeat-durationMax"/>
        <source>
          <context value="vs0"/>
          <element value="durationMax"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="durationMax"/>
          <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="repeat-durationUnits"/>
        <source>
          <context value="vs0"/>
          <element value="durationUnit"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="durationUnits"/>
          <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="repeat-frequency"/>
        <source>
          <context value="vs0"/>
          <element value="frequency"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="frequency"/>
          <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="repeat-frequencyMax"/>
        <source>
          <context value="vs0"/>
          <element value="frequencyMax"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="frequencyMax"/>
          <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="repeat-period"/>
        <source>
          <context value="vs0"/>
          <element value="period"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="vt0"/>
          <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>
      <rule>
        <name value="repeat-periodMax"/>
        <source>
          <context value="vs0"/>
          <element value="periodMax"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="periodMax"/>
          <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="repeat-periodUnits"/>
        <source>
          <context value="vs0"/>
          <element value="periodUnit"/>
          <variable value="vvv"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="periodUnits"/>
          <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="repeat-when"/>
        <source>
          <context value="vs0"/>
          <element value="when"/>
          <variable value="v"/>
        </source>
        <target>
          <context value="vt0"/>
          <element value="when"/>
          <transform value="translate"/>
          <parameter>
            <valueId value="v"/>
          </parameter>
          <parameter>
            <valueString value="#EventTiming"/>
          </parameter>
          <parameter>
            <valueString value="code"/>
          </parameter>
        </target>
      </rule>
    </rule>
    <rule>
      <name value="Timing-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>
  </group>
</StructureMap>