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

<StructureMap xmlns="http://hl7.org/fhir">
  <id value="Vpr2ImplantableDeviceProsthesis"/>
  <text>
    <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap Vpr2ImplantableDeviceProsthesis</b></p><a name="Vpr2ImplantableDeviceProsthesis"> </a><a name="hcVpr2ImplantableDeviceProsthesis"> </a><pre class="fml">
<b>map</b><span style="color: navy"> &quot;</span>http://va.gov/fhir/StructureMap/Vpr2ImplantableDeviceProsthesis<span style="color: navy">&quot; = &quot;</span>Vpr2ImplantableDeviceProsthesis<span style="color: navy">&quot;

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-VprSurgery.html" title="VPR surgery">http://va.gov/fhir/StructureDefinition/VprSurgery</a><span style="color: navy">&quot; </span><b>alias </b>VprSurgery <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-ImplantableDeviceProsthesis.html" title="Implantable Device: Prosthesis">http://va.gov/fhir/StructureDefinition/ImplantableDeviceProsthesis</a><span style="color: navy">&quot; </span><b>alias </b>ImplantableDeviceProsthesis <b>as </b><b>target</b>

<b>group </b>map<span style="color: navy">(</span><b>source</b> <span style="color: maroon">surgery</span><span style="color: navy"> : </span>VprSurgery, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>ImplantableDeviceProsthesis<span style="color: navy">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  surgery.facility<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.owner = <span style="color: maroon">v</span><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url value="http://va.gov/fhir/StructureMap/Vpr2ImplantableDeviceProsthesis"/>
  <version value="2.5.0"/>
  <name value="Vpr2ImplantableDeviceProsthesis"/>
  <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/VprSurgery"/>
    <mode value="source"/>
    <alias value="VprSurgery"/>
  </structure>
  <structure>
    <url value="http://va.gov/fhir/StructureDefinition/ImplantableDeviceProsthesis"/>
    <mode value="target"/>
    <alias value="ImplantableDeviceProsthesis"/>
  </structure>
  <group>
    <name value="map"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="surgery"/>
      <type value="VprSurgery"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="ImplantableDeviceProsthesis"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="facility"/>
      <source>
        <context value="surgery"/>
        <element value="facility"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="owner"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
  </group>
</StructureMap>