FHIR Extensions Pack
1.0.0 - Working Copy International flag

This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR 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 ServiceRequest: R4 to R5 - XML Representation

Page standards status: Trial-use Maturity Level: 1

Raw xml | Download



<StructureMap xmlns="http://hl7.org/fhir">
  <id value="ServiceRequest4to5"/>
  <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/ServiceRequest4to5'</span>
<span style="color: #cc00cc">/// <b>name</b> = </span><span style="color: blue">'ServiceRequest4to5'</span>
<span style="color: #cc00cc">/// <b>title</b> = </span><span style="color: blue">'FML Conversion for ServiceRequest: R4 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>ServiceRequestIntent<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-request-intent.html" title="RequestIntent">http://hl7.org/fhir/4.0/request-intent</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-request-intent.html" title="RequestIntent">http://hl7.org/fhir/request-intent</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>proposal <b>-</b> t<span style="color: navy">:</span>proposal
  s<span style="color: navy">:</span>plan <b>-</b> t<span style="color: navy">:</span>plan
  s<span style="color: navy">:</span>directive <b>-</b> t<span style="color: navy">:</span>directive
  s<span style="color: navy">:</span>order <b>-</b> t<span style="color: navy">:</span>order
  s<span style="color: navy">:</span>&quot;original-order&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>original-order<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;reflex-order&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>reflex-order<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;filler-order&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>filler-order<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>&quot;instance-order&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>instance-order<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>option <b>-</b> t<span style="color: navy">:</span>option
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>ServiceRequestPriority<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-request-priority.html" title="RequestPriority">http://hl7.org/fhir/4.0/request-priority</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-request-priority.html" title="RequestPriority">http://hl7.org/fhir/request-priority</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>routine <b>-</b> t<span style="color: navy">:</span>routine
  s<span style="color: navy">:</span>urgent <b>-</b> t<span style="color: navy">:</span>urgent
  s<span style="color: navy">:</span>asap <b>-</b> t<span style="color: navy">:</span>asap
  s<span style="color: navy">:</span>stat <b>-</b> t<span style="color: navy">:</span>stat
<span style="color: navy">}

</span><b>conceptmap</b><span style="color: navy"> &quot;</span>ServiceRequestStatus<span style="color: navy">&quot; {
</span><b>  prefix </b>s<span style="color: navy"> = &quot;</span><a href="http://hl7.org/fhir/R4/codesystem-request-status.html" title="RequestStatus">http://hl7.org/fhir/4.0/request-status</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-request-status.html" title="RequestStatus">http://hl7.org/fhir/request-status</a><span style="color: navy">&quot;
</span>
  s<span style="color: navy">:</span>draft <b>-</b> t<span style="color: navy">:</span>draft
  s<span style="color: navy">:</span>active <b>-</b> t<span style="color: navy">:</span>active
  s<span style="color: navy">:</span>&quot;on-hold&quot; <b>-</b> t<span style="color: navy">:</span><span style="color: navy">&quot;</span>on-hold<span style="color: navy">&quot;</span>
  s<span style="color: navy">:</span>revoked <b>-</b> t<span style="color: navy">:</span>revoked
  s<span style="color: navy">:</span>completed <b>-</b> t<span style="color: navy">:</span>completed
  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>
  s<span style="color: navy">:</span>unknown <b>-</b> t<span style="color: navy">:</span>unknown
<span style="color: navy">}

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

<b>imports</b><span style="color: navy"> &quot;</span>http://hl7.org/fhir/StructureMap/*4to5<span style="color: navy">&quot;
</span>
<b>group </b>ServiceRequest<span style="color: navy">(</span><b>source</b> <span style="color: maroon">src</span><span style="color: navy"> : </span>ServiceRequestR4, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ServiceRequestR5<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.instantiatesCanonical<span style="color: navy"><b> -&gt; </b></span>tgt.instantiatesCanonical<span style="color: navy">;</span>
  src.instantiatesUri<span style="color: navy"><b> -&gt; </b></span>tgt.instantiatesUri<span style="color: navy">;</span>
  src.basedOn<span style="color: navy"><b> -&gt; </b></span>tgt.basedOn<span style="color: navy">;</span>
  src.replaces<span style="color: navy"><b> -&gt; </b></span>tgt.replaces<span style="color: navy">;</span>
  src.requisition<span style="color: navy"><b> -&gt; </b></span>tgt.requisition<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">'#ServiceRequestStatus'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.intent<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.intent = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#ServiceRequestIntent'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.category<span style="color: navy"><b> -&gt; </b></span>tgt.category<span style="color: navy">;</span>
  src.priority<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.priority = <b>translate</b><span style="color: navy">(</span><span style="color: maroon">v</span><span style="color: navy">, </span><span style="color: blue">'#ServiceRequestPriority'</span><span style="color: navy">, </span><span style="color: blue">'code'</span><span style="color: navy">)</span><span style="color: navy">;</span>
  src.doNotPerform<span style="color: navy"><b> -&gt; </b></span>tgt.doNotPerform<span style="color: navy">;</span>
  src.code<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -&gt; </b></span>tgt.code<span style="color: navy">;</span>
  src.orderDetail<span style="color: navy"> : </span>CodeableConcept<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.orderDetail<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.parameterFocus = <span style="color: maroon">s</span><span style="color: navy">;</span>
  src.quantity<span style="color: navy"> : </span>Quantity<span style="color: navy"><b> -&gt; </b></span>tgt.quantity<span style="color: navy">;</span>
  src.quantity<span style="color: navy"> : </span>Ratio<span style="color: navy"><b> -&gt; </b></span>tgt.quantity<span style="color: navy">;</span>
  src.quantity<span style="color: navy"> : </span>Range<span style="color: navy"><b> -&gt; </b></span>tgt.quantity<span style="color: navy">;</span>
  src.subject<span style="color: navy"><b> -&gt; </b></span>tgt.subject<span style="color: navy">;</span>
  src.encounter<span style="color: navy"><b> -&gt; </b></span>tgt.encounter<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.focus -&gt; tgt.focus;</span>
  src.occurrence<span style="color: navy"> : </span>dateTime<span style="color: navy"><b> -&gt; </b></span>tgt.occurrence<span style="color: navy">;</span>
  src.occurrence<span style="color: navy"> : </span>Period<span style="color: navy"><b> -&gt; </b></span>tgt.occurrence<span style="color: navy">;</span>
  src.occurrence<span style="color: navy"> : </span>Timing<span style="color: navy"><b> -&gt; </b></span>tgt.occurrence<span style="color: navy">;</span>
  src.asNeeded<span style="color: navy"> : </span>boolean<span style="color: navy"><b> -&gt; </b></span>tgt.asNeeded<span style="color: navy">;</span>
  src.asNeeded<span style="color: navy"> : </span>CodeableConcept<span style="color: navy"><b> -&gt; </b></span>tgt.asNeeded<span style="color: navy">;</span>
  src.authoredOn<span style="color: navy"><b> -&gt; </b></span>tgt.authoredOn<span style="color: navy">;</span>
  src.requester<span style="color: navy"><b> -&gt; </b></span>tgt.requester<span style="color: navy">;</span>
  src.performerType<span style="color: navy"><b> -&gt; </b></span>tgt.performerType<span style="color: navy">;</span>
  src.performer<span style="color: navy"><b> -&gt; </b></span>tgt.performer<span style="color: navy">;</span>
  src.locationCode<span style="color: navy"><b> -&gt; </b></span>tgt.location<span style="color: navy">;</span>
  src.locationReference<span style="color: navy"><b> -&gt; </b></span>tgt.location<span style="color: navy">;</span>
  src.reasonCode<span style="color: navy"><b> -&gt; </b></span>tgt.reason<span style="color: navy">;</span>
  src.reasonReference<span style="color: navy"><b> -&gt; </b></span>tgt.reason<span style="color: navy">;</span>
  src.insurance<span style="color: navy"><b> -&gt; </b></span>tgt.insurance<span style="color: navy">;</span>
  src.supportingInfo<span style="color: navy"><b> -&gt; </b></span>tgt.supportingInfo<span style="color: navy">;</span>
  src.specimen<span style="color: navy"><b> -&gt; </b></span>tgt.specimen<span style="color: navy">;</span>
  src.bodySite<span style="color: navy"><b> -&gt; </b></span>tgt.bodySite<span style="color: navy">;</span>
  src.note<span style="color: navy"><b> -&gt; </b></span>tgt.note<span style="color: navy">;</span> <span style="color: navy">// </span><span style="color: green">src.bodyStructure -&gt; tgt.bodyStructure;</span>
  src.patientInstruction<span style="color: navy"> : </span>string<b> as </b><span style="color: maroon">s</span><span style="color: navy"><b> -&gt; </b></span> tgt.patientInstruction<b> as </b><span style="color: maroon">t</span><span style="color: navy">, </span> t.instruction = <span style="color: maroon">s</span> <i>&quot;instruction&quot;</i><span style="color: navy">;</span>
  src.relevantHistory<span style="color: navy"><b> -&gt; </b></span>tgt.relevantHistory<span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <contained>
    <ConceptMap>
      <id value="ServiceRequestIntent"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.0/request-intent"/>
        <target value="http://hl7.org/fhir/request-intent"/>
        <element>
          <code value="proposal"/>
          <target>
            <code value="proposal"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="plan"/>
          <target>
            <code value="plan"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="directive"/>
          <target>
            <code value="directive"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="order"/>
          <target>
            <code value="order"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="original-order"/>
          <target>
            <code value="original-order"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="reflex-order"/>
          <target>
            <code value="reflex-order"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="filler-order"/>
          <target>
            <code value="filler-order"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="instance-order"/>
          <target>
            <code value="instance-order"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="option"/>
          <target>
            <code value="option"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="ServiceRequestPriority"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.0/request-priority"/>
        <target value="http://hl7.org/fhir/request-priority"/>
        <element>
          <code value="routine"/>
          <target>
            <code value="routine"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="urgent"/>
          <target>
            <code value="urgent"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="asap"/>
          <target>
            <code value="asap"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="stat"/>
          <target>
            <code value="stat"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <contained>
    <ConceptMap>
      <id value="ServiceRequestStatus"/>
      <status value="active"/>
      <group>
        <source value="http://hl7.org/fhir/4.0/request-status"/>
        <target value="http://hl7.org/fhir/request-status"/>
        <element>
          <code value="draft"/>
          <target>
            <code value="draft"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="active"/>
          <target>
            <code value="active"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="on-hold"/>
          <target>
            <code value="on-hold"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="revoked"/>
          <target>
            <code value="revoked"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="completed"/>
          <target>
            <code value="completed"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="entered-in-error"/>
          <target>
            <code value="entered-in-error"/>
            <relationship value="related-to"/>
          </target>
        </element>
        <element>
          <code value="unknown"/>
          <target>
            <code value="unknown"/>
            <relationship value="related-to"/>
          </target>
        </element>
      </group>
    </ConceptMap>
  </contained>
  <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/ServiceRequest4to5"/>
  <version value="1.0.0"/>
  <name value="ServiceRequest4to5"/>
  <title value="FML Conversion for ServiceRequest: R4 to R5"/>
  <status value="active"/>
  <date value="2023-03-26T08:47:34+11:00"/>
  <publisher value="HL7 International / FHIR Infrastructure"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.org/Special/committees/fhir-i"/>
    </telecom>
  </contact>
  <description value="FMLConversionforServiceRequestR4toR5"/>
  <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.0/StructureDefinition/ServiceRequest"/>
    <mode value="source"/>
    <alias value="ServiceRequestR4"/>
  </structure>
  <structure>
    <url value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/>
    <mode value="target"/>
    <alias value="ServiceRequestR5"/>
  </structure>
  <import value="http://hl7.org/fhir/StructureMap/*4to5"/>
  <group>
    <name value="ServiceRequest"/>
    <extends value="DomainResource"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="src"/>
      <type value="ServiceRequestR4"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="ServiceRequestR5"/>
      <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="instantiatesCanonical"/>
      <source>
        <context value="src"/>
        <element value="instantiatesCanonical"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="instantiatesCanonical"/>
        <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="instantiatesUri"/>
      <source>
        <context value="src"/>
        <element value="instantiatesUri"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="instantiatesUri"/>
        <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="basedOn"/>
      <source>
        <context value="src"/>
        <element value="basedOn"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="basedOn"/>
        <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="replaces"/>
      <source>
        <context value="src"/>
        <element value="replaces"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="replaces"/>
        <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="requisition"/>
      <source>
        <context value="src"/>
        <element value="requisition"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="requisition"/>
        <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="#ServiceRequestStatus"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="intent"/>
      <source>
        <context value="src"/>
        <element value="intent"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="intent"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#ServiceRequestIntent"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="category"/>
      <source>
        <context value="src"/>
        <element value="category"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="category"/>
        <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="priority"/>
      <source>
        <context value="src"/>
        <element value="priority"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="priority"/>
        <transform value="translate"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
        <parameter>
          <valueString value="#ServiceRequestPriority"/>
        </parameter>
        <parameter>
          <valueString value="code"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="doNotPerform"/>
      <source>
        <context value="src"/>
        <element value="doNotPerform"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="doNotPerform"/>
        <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="codeCodeableConcept"/>
      <source>
        <context value="src"/>
        <type value="CodeableConcept"/>
        <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>
    <rule>
      <name value="orderDetail"/>
      <source>
        <context value="src"/>
        <type value="CodeableConcept"/>
        <element value="orderDetail"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="orderDetail"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="parameterFocus"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="quantityQuantity"/>
      <source>
        <context value="src"/>
        <type value="Quantity"/>
        <element value="quantity"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="quantity"/>
        <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="quantityRatio"/>
      <source>
        <context value="src"/>
        <type value="Ratio"/>
        <element value="quantity"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="quantity"/>
        <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="quantityRange"/>
      <source>
        <context value="src"/>
        <type value="Range"/>
        <element value="quantity"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="quantity"/>
        <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="subject"/>
      <source>
        <context value="src"/>
        <element value="subject"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="subject"/>
        <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="encounter"/>
      <source>
        <context value="src"/>
        <element value="encounter"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="encounter"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation value="src.focus -&gt; tgt.focus;"/>
    </rule>
    <rule>
      <name value="occurrenceDateTime"/>
      <source>
        <context value="src"/>
        <type value="dateTime"/>
        <element value="occurrence"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="occurrence"/>
        <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="occurrencePeriod"/>
      <source>
        <context value="src"/>
        <type value="Period"/>
        <element value="occurrence"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="occurrence"/>
        <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="occurrenceTiming"/>
      <source>
        <context value="src"/>
        <type value="Timing"/>
        <element value="occurrence"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="occurrence"/>
        <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="asNeededBoolean"/>
      <source>
        <context value="src"/>
        <type value="boolean"/>
        <element value="asNeeded"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="asNeeded"/>
        <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="asNeededCodeableConcept"/>
      <source>
        <context value="src"/>
        <type value="CodeableConcept"/>
        <element value="asNeeded"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="asNeeded"/>
        <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="authoredOn"/>
      <source>
        <context value="src"/>
        <element value="authoredOn"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="authoredOn"/>
        <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="requester"/>
      <source>
        <context value="src"/>
        <element value="requester"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="requester"/>
        <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="performerType"/>
      <source>
        <context value="src"/>
        <element value="performerType"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="performerType"/>
        <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="performer"/>
      <source>
        <context value="src"/>
        <element value="performer"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="performer"/>
        <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="locationCode"/>
      <source>
        <context value="src"/>
        <element value="locationCode"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="location"/>
        <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="locationReference"/>
      <source>
        <context value="src"/>
        <element value="locationReference"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="location"/>
        <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="reasonCode"/>
      <source>
        <context value="src"/>
        <element value="reasonCode"/>
        <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="reasonReference"/>
      <source>
        <context value="src"/>
        <element value="reasonReference"/>
        <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="insurance"/>
      <source>
        <context value="src"/>
        <element value="insurance"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="insurance"/>
        <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="supportingInfo"/>
      <source>
        <context value="src"/>
        <element value="supportingInfo"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="supportingInfo"/>
        <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="specimen"/>
      <source>
        <context value="src"/>
        <element value="specimen"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="specimen"/>
        <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="bodySite"/>
      <source>
        <context value="src"/>
        <element value="bodySite"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="bodySite"/>
        <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="note"/>
      <source>
        <context value="src"/>
        <element value="note"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="note"/>
        <variable value="vvv"/>
        <transform value="create"/>
      </target>
      <dependent>
        <name value="DefaultMappingGroupAnonymousAlias"/>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
        <parameter>
          <valueId value="vvv"/>
        </parameter>
      </dependent>
      <documentation value="src.bodyStructure -&gt; tgt.bodyStructure;"/>
    </rule>
    <rule>
      <name value="instruction"/>
      <source>
        <context value="src"/>
        <type value="string"/>
        <element value="patientInstruction"/>
        <variable value="s"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="patientInstruction"/>
        <variable value="t"/>
      </target>
      <target>
        <context value="t"/>
        <element value="instruction"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="s"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="relevantHistory"/>
      <source>
        <context value="src"/>
        <element value="relevantHistory"/>
        <variable value="vvv"/>
      </source>
      <target>
        <context value="tgt"/>
        <element value="relevantHistory"/>
        <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>