US Veterans Health Administration FHIR Map Set Implementation Guide
2.5.0 - 260401a United States of America flag

US Veterans Health Administration FHIR Map Set Implementation Guide - Downloaded Version 2.5.0 See the Directory of published versions

: Vpr2LabObservationChemhemtoxriaserObservation - XML Representation

Draft as of 2026-03-31

Raw xml | Download


<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Vpr2LabObservationChemhemtoxriaserObservation"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap Vpr2LabObservationChemhemtoxriaserObservation</b></p><a name="Vpr2LabObservationChemhemtoxriaserObservation"> </a><a name="hcVpr2LabObservationChemhemtoxriaserObservation"> </a><pre class="fml">
<b>map</b><span style="color: navy"> &quot;</span>http://va.gov/fhir/StructureMap/Vpr2LabObservationChemhemtoxriaserObservation<span style="color: navy">&quot; = &quot;</span>Vpr2LabObservationChemhemtoxriaserObservation<span style="color: navy">&quot;

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-VprPanel.html" title="VPR panel">http://va.gov/fhir/StructureDefinition/VprPanel</a><span style="color: navy">&quot; </span><b>alias </b>VprPanel <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-VprAccession.html" title="VPR accession">http://va.gov/fhir/StructureDefinition/VprAccession</a><span style="color: navy">&quot; </span><b>alias </b>VprAccession <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-VprLab.html" title="VPR lab">http://va.gov/fhir/StructureDefinition/VprLab</a><span style="color: navy">&quot; </span><b>alias </b>VprLab <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-LabObservationChemhemtoxriaserObservation.html" title="Lab Observation: Chem, hem, tox, ria, ser Observation">http://va.gov/fhir/StructureDefinition/LabObservationChemhemtoxriaserObservation</a><span style="color: navy">&quot; </span><b>alias </b>LabObservationChemhemtoxriaserObservation <b>as </b><b>target</b>

<b>group </b>map<span style="color: navy">(</span><b>source</b> <span style="color: maroon">panel</span><span style="color: navy"> : </span>VprPanel, <b>source</b> <span style="color: maroon">accession</span><span style="color: navy"> : </span>VprAccession, <b>source</b> <span style="color: maroon">lab</span><span style="color: navy"> : </span>VprLab, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>LabObservationChemhemtoxriaserObservation<span style="color: navy">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  panel.collected<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.effective = <span style="color: maroon">v</span><span style="color: navy">;</span>
  accession.collected<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.effective = <span style="color: maroon">v</span><span style="color: navy">;</span>
  accession.value<b> as </b><span style="color: maroon">o</span><span style="color: navy"><b> -&gt; </b></span> o.test<b> as </b><span style="color: maroon">v</span><span style="color: navy">, </span> tgt.effective = <span style="color: maroon">v</span><span style="color: navy">;</span>
  lab.collected<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.effective = <span style="color: maroon">v</span><span style="color: navy">;</span>
  panel.comment<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.note = <span style="color: maroon">v</span><span style="color: navy">;</span>
  accession.comment<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.note = <span style="color: maroon">v</span><span style="color: navy">;</span>
  lab.comment<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.note = <span style="color: maroon">v</span><span style="color: navy">;</span>
  panel.facility<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span> tgt.performer = <span style="color: maroon">v</span><span style="color: navy">, </span> tgt.performer = <span style="color: maroon">v</span><span style="color: navy">, </span> tgt.performer = <span style="color: maroon">v</span><span style="color: navy">, </span> tgt.performer = <span style="color: maroon">v</span><span style="color: navy">, </span> tgt.performer = <span style="color: maroon">v</span><span style="color: navy">, </span> tgt.performer = <span style="color: maroon">v</span><span style="color: navy">, </span> tgt.category = <span style="color: blue">'http://terminology.hl7.org/CodeSystem/observation-category#laboratory'</span><span style="color: navy">;</span>
  panel.groupName<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.specimen = <span style="color: maroon">v</span><span style="color: navy">;</span>
  accession.groupName<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.specimen = <span style="color: maroon">v</span><span style="color: navy">;</span>
  accession.name<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.specimen = <span style="color: maroon">v</span><span style="color: navy">;</span>
  lab.groupName<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.specimen = <span style="color: maroon">v</span><span style="color: navy">;</span>
  panel.resulted<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.issued = <span style="color: maroon">v</span><span style="color: navy">;</span>
  panel.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.issued = <span style="color: maroon">v</span><span style="color: navy">;</span>
  accession.resulted<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.issued = <span style="color: maroon">v</span><span style="color: navy">;</span>
  accession.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.issued = <span style="color: maroon">v</span><span style="color: navy">;</span>
  lab.resulted<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.issued = <span style="color: maroon">v</span><span style="color: navy">;</span>
  lab.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.issued = <span style="color: maroon">v</span><span style="color: navy">;</span>
  panel.resulted<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#completed'</span><span style="color: navy">;</span>
  panel.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#completed'</span><span style="color: navy">;</span>
  accession.resulted<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#completed'</span><span style="color: navy">;</span>
  accession.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#completed'</span><span style="color: navy">;</span>
  lab.resulted<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#completed'</span><span style="color: navy">;</span>
  lab.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#completed'</span><span style="color: navy">;</span>
  panel.resulted<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#preliminary'</span><span style="color: navy">;</span>
  panel.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#preliminary'</span><span style="color: navy">;</span>
  accession.resulted<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#preliminary'</span><span style="color: navy">;</span>
  accession.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#preliminary'</span><span style="color: navy">;</span>
  lab.resulted<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#preliminary'</span><span style="color: navy">;</span>
  lab.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.status = <span style="color: blue">'#preliminary'</span><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url
       value="http://va.gov/fhir/StructureMap/Vpr2LabObservationChemhemtoxriaserObservation"/>
  <version value="2.5.0"/>
  <name value="Vpr2LabObservationChemhemtoxriaserObservation"/>
  <status value="draft"/>
  <date value="2026-03-31T16:09:38+00:00"/>
  <publisher value="VA"/>
  <contact>
    <name value="VA"/>
    <telecom>
      <system value="url"/>
      <value value="https://www.va.gov"/>
    </telecom>
  </contact>
  <jurisdiction>
    <coding>
      <system value="urn:iso:std:iso:3166"/>
      <code value="US"/>
      <display value="United States of America"/>
    </coding>
  </jurisdiction>
  <structure>
    <url value="http://va.gov/fhir/StructureDefinition/VprPanel"/>
    <mode value="source"/>
    <alias value="VprPanel"/>
  </structure>
  <structure>
    <url value="http://va.gov/fhir/StructureDefinition/VprAccession"/>
    <mode value="source"/>
    <alias value="VprAccession"/>
  </structure>
  <structure>
    <url value="http://va.gov/fhir/StructureDefinition/VprLab"/>
    <mode value="source"/>
    <alias value="VprLab"/>
  </structure>
  <structure>
    <url
         value="http://va.gov/fhir/StructureDefinition/LabObservationChemhemtoxriaserObservation"/>
    <mode value="target"/>
    <alias value="LabObservationChemhemtoxriaserObservation"/>
  </structure>
  <group>
    <name value="map"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="panel"/>
      <type value="VprPanel"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="accession"/>
      <type value="VprAccession"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="lab"/>
      <type value="VprLab"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="LabObservationChemhemtoxriaserObservation"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="collected"/>
      <source>
        <context value="panel"/>
        <element value="collected"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="effective"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="collected"/>
      <source>
        <context value="accession"/>
        <element value="collected"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="effective"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="value"/>
      <source>
        <context value="accession"/>
        <element value="value"/>
        <variable value="o"/>
      </source>
      <target>
        <context value="o"/>
        <contextType value="variable"/>
        <element value="test"/>
        <variable value="v"/>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="effective"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="collected"/>
      <source>
        <context value="lab"/>
        <element value="collected"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="effective"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="comment"/>
      <source>
        <context value="panel"/>
        <element value="comment"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="note"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="comment"/>
      <source>
        <context value="accession"/>
        <element value="comment"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="note"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="comment"/>
      <source>
        <context value="lab"/>
        <element value="comment"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="note"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="facility"/>
      <source>
        <context value="panel"/>
        <element value="facility"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="performer"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="performer"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="performer"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="performer"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="performer"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="performer"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="category"/>
        <transform value="copy"/>
        <parameter>
          <valueString
                       value="http://terminology.hl7.org/CodeSystem/observation-category#laboratory"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="groupName"/>
      <source>
        <context value="panel"/>
        <element value="groupName"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="specimen"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="groupName"/>
      <source>
        <context value="accession"/>
        <element value="groupName"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="specimen"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="name"/>
      <source>
        <context value="accession"/>
        <element value="name"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="specimen"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="groupName"/>
      <source>
        <context value="lab"/>
        <element value="groupName"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="specimen"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="resulted"/>
      <source>
        <context value="panel"/>
        <element value="resulted"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="issued"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="panel"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="issued"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="resulted"/>
      <source>
        <context value="accession"/>
        <element value="resulted"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="issued"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="accession"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="issued"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="resulted"/>
      <source>
        <context value="lab"/>
        <element value="resulted"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="issued"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="lab"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="issued"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="resulted"/>
      <source>
        <context value="panel"/>
        <element value="resulted"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#completed"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="panel"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#completed"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="resulted"/>
      <source>
        <context value="accession"/>
        <element value="resulted"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#completed"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="accession"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#completed"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="resulted"/>
      <source>
        <context value="lab"/>
        <element value="resulted"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#completed"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="lab"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#completed"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="resulted"/>
      <source>
        <context value="panel"/>
        <element value="resulted"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#preliminary"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="panel"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#preliminary"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="resulted"/>
      <source>
        <context value="accession"/>
        <element value="resulted"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#preliminary"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="accession"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#preliminary"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="resulted"/>
      <source>
        <context value="lab"/>
        <element value="resulted"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#preliminary"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="status"/>
      <source>
        <context value="lab"/>
        <element value="status"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="status"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#preliminary"/>
        </parameter>
      </target>
    </rule>
  </group>
</StructureMap>