<?xml version="1.0" encoding="UTF-8"?>

<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Vpr2ProcedureOutpatient"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap Vpr2ProcedureOutpatient</b></p><a name="Vpr2ProcedureOutpatient"> </a><a name="hcVpr2ProcedureOutpatient"> </a><pre class="fml">
<b>map</b><span style="color: navy"> &quot;</span>http://va.gov/fhir/StructureMap/Vpr2ProcedureOutpatient<span style="color: navy">&quot; = &quot;</span>Vpr2ProcedureOutpatient<span style="color: navy">&quot;

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-VprVisit.html" title="VPR visit">http://va.gov/fhir/StructureDefinition/VprVisit</a><span style="color: navy">&quot; </span><b>alias </b>VprVisit <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-ProcedureOutpatient.html" title="Procedure: Outpatient">http://va.gov/fhir/StructureDefinition/ProcedureOutpatient</a><span style="color: navy">&quot; </span><b>alias </b>ProcedureOutpatient <b>as </b><b>target</b>

<b>group </b>map<span style="color: navy">(</span><b>source</b> <span style="color: maroon">visit</span><span style="color: navy"> : </span>VprVisit, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ProcedureOutpatient<span style="color: navy">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  visit.cpt<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span> tgt.code<b> as </b><span style="color: maroon">c0</span><span style="color: navy">, </span> c0.coding = <span style="color: maroon">v</span><span style="color: navy">;</span>
  visit.type<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span> tgt.code<b> as </b><span style="color: maroon">c0</span><span style="color: navy">, </span> c0.coding = <span style="color: maroon">v</span><span style="color: navy">;</span>
  visit.cpt<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span> tgt.code<b> as </b><span style="color: maroon">c0</span><span style="color: navy">, </span> c0.coding<b> as </b><span style="color: maroon">c1</span><span style="color: navy">, </span> c1.code = <span style="color: maroon">v</span><span style="color: navy">;</span>
  visit.type<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span> tgt.code<b> as </b><span style="color: maroon">c0</span><span style="color: navy">, </span> c0.coding<b> as </b><span style="color: maroon">c1</span><span style="color: navy">, </span> c1.code = <span style="color: maroon">v</span><span style="color: navy">;</span>
  visit.cpt<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span> tgt.code<b> as </b><span style="color: maroon">c0</span><span style="color: navy">, </span> c0.coding<b> as </b><span style="color: maroon">c1</span><span style="color: navy">, </span> c1.display = <span style="color: maroon">v</span><span style="color: navy">;</span>
  visit.type<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span> tgt.code<b> as </b><span style="color: maroon">c0</span><span style="color: navy">, </span> c0.coding<b> as </b><span style="color: maroon">c1</span><span style="color: navy">, </span> c1.display = <span style="color: maroon">v</span><span style="color: navy">;</span>
  visit.cpt<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span> tgt.code<b> as </b><span style="color: maroon">c0</span><span style="color: navy">, </span> c0.coding<b> as </b><span style="color: maroon">c1</span><span style="color: navy">, </span> c1.system = <span style="color: blue">'http://www.ama-assn.org/go/cpt'</span><span style="color: navy">;</span>
  visit.type<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span> tgt.code<b> as </b><span style="color: maroon">c0</span><span style="color: navy">, </span> c0.coding<b> as </b><span style="color: maroon">c1</span><span style="color: navy">, </span> c1.system = <span style="color: blue">'http://www.ama-assn.org/go/cpt'</span><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url value="http://va.gov/fhir/StructureMap/Vpr2ProcedureOutpatient"/>
  <version value="2.5.0"/>
  <name value="Vpr2ProcedureOutpatient"/>
  <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/VprVisit"/>
    <mode value="source"/>
    <alias value="VprVisit"/>
  </structure>
  <structure>
    <url value="http://va.gov/fhir/StructureDefinition/ProcedureOutpatient"/>
    <mode value="target"/>
    <alias value="ProcedureOutpatient"/>
  </structure>
  <group>
    <name value="map"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="visit"/>
      <type value="VprVisit"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="ProcedureOutpatient"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="cpt"/>
      <source>
        <context value="visit"/>
        <element value="cpt"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="code"/>
        <variable value="c0"/>
      </target>
      <target>
        <context value="c0"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="type"/>
      <source>
        <context value="visit"/>
        <element value="type"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="code"/>
        <variable value="c0"/>
      </target>
      <target>
        <context value="c0"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="cpt"/>
      <source>
        <context value="visit"/>
        <element value="cpt"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="code"/>
        <variable value="c0"/>
      </target>
      <target>
        <context value="c0"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="c1"/>
      </target>
      <target>
        <context value="c1"/>
        <contextType value="variable"/>
        <element value="code"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="type"/>
      <source>
        <context value="visit"/>
        <element value="type"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="code"/>
        <variable value="c0"/>
      </target>
      <target>
        <context value="c0"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="c1"/>
      </target>
      <target>
        <context value="c1"/>
        <contextType value="variable"/>
        <element value="code"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="cpt"/>
      <source>
        <context value="visit"/>
        <element value="cpt"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="code"/>
        <variable value="c0"/>
      </target>
      <target>
        <context value="c0"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="c1"/>
      </target>
      <target>
        <context value="c1"/>
        <contextType value="variable"/>
        <element value="display"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="type"/>
      <source>
        <context value="visit"/>
        <element value="type"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="code"/>
        <variable value="c0"/>
      </target>
      <target>
        <context value="c0"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="c1"/>
      </target>
      <target>
        <context value="c1"/>
        <contextType value="variable"/>
        <element value="display"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="cpt"/>
      <source>
        <context value="visit"/>
        <element value="cpt"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="code"/>
        <variable value="c0"/>
      </target>
      <target>
        <context value="c0"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="c1"/>
      </target>
      <target>
        <context value="c1"/>
        <contextType value="variable"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="http://www.ama-assn.org/go/cpt"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="type"/>
      <source>
        <context value="visit"/>
        <element value="type"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="code"/>
        <variable value="c0"/>
      </target>
      <target>
        <context value="c0"/>
        <contextType value="variable"/>
        <element value="coding"/>
        <variable value="c1"/>
      </target>
      <target>
        <context value="c1"/>
        <contextType value="variable"/>
        <element value="system"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="http://www.ama-assn.org/go/cpt"/>
        </parameter>
      </target>
    </rule>
  </group>
</StructureMap>