FHIR Extensions Pack
5.1.0 - 5.1.0 (April 2024) International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

: FML Conversion for ParameterDefinition: R4B to R5 - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="ParameterDefinition4Bto5"/>
  <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/ParameterDefinition4Bto5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'ParameterDefinition4Bto5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for ParameterDefinition: R4B to R5'</span>
<span style="color: #cc00cc">/// <b>status</b> = </span><span style="color: blue">'active'</span>

<b>conceptmap</b><span style="color: navy"> &quot;</span>ParameterUse<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4B/codesystem-operation-parameter-use.html" title="OperationParameterUse">http://hl7.org/fhir/4.3/operation-parameter-use</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-operation-parameter-use.html" title="Operation Parameter Use">http://hl7.org/fhir/operation-parameter-use</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>in <b>-</b> t<span style="color: navy">:</span>in
  s<span style="color: navy">:</span>out <b>-</b> t<span style="color: navy">:</span>out
<span style="color: navy">}

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4B/metadatatypes.html#ParameterDefinition" title="ParameterDefinition">http://hl7.org/fhir/4.3/StructureDefinition/ParameterDefinition</a><span style="color: navy">&quot; </span><b>alias </b>ParameterDefinitionR4B <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/metadatatypes.html#ParameterDefinition" title="ParameterDefinition">http://hl7.org/fhir/StructureDefinition/ParameterDefinition</a><span style="color: navy">&quot; </span><b>alias </b>ParameterDefinitionR5 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*4Bto5<span style="color: navy">&quot;
</span>
<b>group </b>ParameterDefinition<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>ParameterDefinitionR4B, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ParameterDefinitionR5<span style="color: navy">)</span><b> extends </b>Element<b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  src.name<span style="color: navy"><b> -&gt; </b></span>tgt.name<span style="color: navy">;</span>
  src.use<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.use = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#ParameterUse'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.min<span style="color: navy"><b> -&gt; </b></span>tgt.min<span style="color: navy">;</span>
  src.max<span style="color: navy"><b> -&gt; </b></span>tgt.max<span style="color: navy">;</span>
  src.documentation<span style="color: navy"><b> -&gt; </b></span>tgt.documentation<span style="color: navy">;</span>
  src.type<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.type = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'http://hl7.org/fhir/interversion/types4Bto5'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.profile<span style="color: navy"><b> -&gt; </b></span>tgt.profile<span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <contained>
    <ConceptMap>
      <id value="ParameterUse"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.3/operation-parameter-use"/>
        <target value="http://hl7.org/fhir/operation-parameter-use"/>
        <element>
          <code value="in"/>
          <target>
            <code value="in"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="out"/>
          <target>
            <code value="out"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <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.extensions"/>
      </extension>
    </valueInteger>
  </extension>
  <extension
             url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
    <valueCode value="trial-use">
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
        <valueCanonical
                        value="http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.extensions"/>
      </extension>
    </valueCode>
  </extension>
  <url value="http://hl7.org/fhir/StructureMap/ParameterDefinition4Bto5"/>
  <version value="5.1.0"/>
  <name value="ParameterDefinition4Bto5"/>
  <title value="FML Conversion for ParameterDefinition: R4B to R5"/>
  <status value="active"/>
  <date value="2024-04-27T18:40:24+10: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="FMLConversionforParameterDefinitionR4BtoR5"/>
  <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.3/StructureDefinition/ParameterDefinition"/>
    <mode value="source"/>
    <alias value="ParameterDefinitionR4B"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/ParameterDefinition"/>
    <mode value="target"/>
    <alias value="ParameterDefinitionR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4Bto5"/>
  <group>
    <name value="ParameterDefinition"/>
    <extends value="Element"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="ParameterDefinitionR4B"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="ParameterDefinitionR5"/>
      <mode value="target"/>
    </input>
    <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="use"/>
      <source>
        <context value="src"/>
        <element value="use"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="use"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#ParameterUse"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="min"/>
      <source>
        <context value="src"/>
        <element value="min"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="min"/>
        <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="max"/>
      <source>
        <context value="src"/>
        <element value="max"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="max"/>
        <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="documentation"/>
      <source>
        <context value="src"/>
        <element value="documentation"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="documentation"/>
        <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="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="type"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="http://hl7.org/fhir/interversion/types4Bto5"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="profile"/>
      <source>
        <context value="src"/>
        <element value="profile"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="profile"/>
        <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>