FHIR Extensions Pack
5.1.0-ballot1 - Ballot for Release 5.1.0 International flag

This page is part of the FHIR Core Extensions Registry (v5.1.0-ballot: Releases Ballot 4) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, see the Directory of published versions

: FML Conversion for EnrollmentResponse: R5 to R4 - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



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

<b>conceptmap</b><span style="color: navy"> &quot;</span>EnrollmentOutcome<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-enrollment-outcome.html" title="Claim Processing Codes">http://hl7.org/fhir/enrollment-outcome</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-remittance-outcome.html" title="Claim Processing Codes">http://hl7.org/fhir/4.0/remittance-outcome</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>queued <b>-</b> t<span style="color: navy">:</span>queued
  s<span style="color: navy">:</span>complete <b>-</b> t<span style="color: navy">:</span>complete
  s<span style="color: navy">:</span>error <b>-</b> t<span style="color: navy">:</span>error
  s<span style="color: navy">:</span>partial <b>-</b> t<span style="color: navy">:</span>partial
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>EnrollmentResponseStatus<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R5/codesystem-fm-status.html" title="Financial Resource Status Codes">http://hl7.org/fhir/fm-status</a><span style="color: navy">&quot;
</span><b>  prefix </b>t<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-fm-status.html" title="Financial Resource Status Codes">http://hl7.org/fhir/4.0/fm-status</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
  s<span style="color: navy">:</span>cancelled <b>-</b> t<span style="color: navy">:</span>cancelled
  s<span style="color: navy">:</span>draft <b>-</b> t<span style="color: navy">:</span>draft
  s<span style="color: navy">:</span>&quot;entered-in-error&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>entered-in-error<span style="color: navy">&quot;</span>
<span style="color: navy">}

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R5/enrollmentresponse.html" title="EnrollmentResponse">http://hl7.org/fhir/StructureDefinition/EnrollmentResponse</a><span style="color: navy">&quot; </span><b>alias </b>EnrollmentResponseR5 <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="http://hl7.org/fhir/R4/enrollmentresponse.html" title="EnrollmentResponse">http://hl7.org/fhir/4.0/StructureDefinition/EnrollmentResponse</a><span style="color: navy">&quot; </span><b>alias </b>EnrollmentResponseR4 <b>as </b><b>target</b>

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*5to4<span style="color: navy">&quot;
</span>
<b>group </b>EnrollmentResponse<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>EnrollmentResponseR5, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>EnrollmentResponseR4<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.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#EnrollmentResponseStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.request<span style="color: navy"><b> -&gt; </b></span>tgt.request<span style="color: navy">;</span>
  src.outcome<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.outcome = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#EnrollmentOutcome'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.disposition<span style="color: navy"><b> -&gt; </b></span>tgt.disposition<span style="color: navy">;</span>
  src.created<span style="color: navy"><b> -&gt; </b></span>tgt.created<span style="color: navy">;</span>
  src.organization<span style="color: navy"><b> -&gt; </b></span>tgt.organization<span style="color: navy">;</span>
  src.requestProvider<span style="color: navy"><b> -&gt; </b></span>tgt.requestProvider<span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <contained>
    <ConceptMap>
      <id value="EnrollmentOutcome"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/enrollment-outcome"/>
        <target value="http://hl7.org/fhir/4.0/remittance-outcome"/>
        <element>
          <code value="queued"/>
          <target>
            <code value="queued"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="complete"/>
          <target>
            <code value="complete"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="error"/>
          <target>
            <code value="error"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="partial"/>
          <target>
            <code value="partial"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="EnrollmentResponseStatus"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/fm-status"/>
        <target value="http://hl7.org/fhir/4.0/fm-status"/>
        <element>
          <code value="active"/>
          <target>
            <code value="active"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="cancelled"/>
          <target>
            <code value="cancelled"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="draft"/>
          <target>
            <code value="draft"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="entered-in-error"/>
          <target>
            <code value="entered-in-error"/>
            <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/EnrollmentResponse5to4"/>
  <version value="5.1.0-ballot1"/>
  <name value="EnrollmentResponse5to4"/>
  <title value="FML Conversion for EnrollmentResponse: R5 to R4"/>
  <status value="active"/>
  <date value="2023-12-19T08:40:03+11: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="FMLConversionforEnrollmentResponseR5toR4"/>
  <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/StructureDefinition/EnrollmentResponse"/>
    <mode value="source"/>
    <alias value="EnrollmentResponseR5"/>
  </structure>
  <structure>
    <url
         value="http://hl7.org/fhir/4.0/StructureDefinition/EnrollmentResponse"/>
    <mode value="target"/>
    <alias value="EnrollmentResponseR4"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*5to4"/>
  <group>
    <name value="EnrollmentResponse"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="EnrollmentResponseR5"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="EnrollmentResponseR4"/>
      <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="status"/>
      <source>
        <context value="src"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="status"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#EnrollmentResponseStatus"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="request"/>
      <source>
        <context value="src"/>
        <element value="request"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="request"/>
        <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="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="outcome"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#EnrollmentOutcome"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="disposition"/>
      <source>
        <context value="src"/>
        <element value="disposition"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="disposition"/>
        <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="created"/>
      <source>
        <context value="src"/>
        <element value="created"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="created"/>
        <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="organization"/>
      <source>
        <context value="src"/>
        <element value="organization"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="organization"/>
        <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="requestProvider"/>
      <source>
        <context value="src"/>
        <element value="requestProvider"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="requestProvider"/>
        <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>