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

: Vpr2DocumentReferenceBinary - XML Representation

Draft as of 2026-03-31

Raw xml | Download


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

</span><b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-VprDocument.html" title="VPR document">http://va.gov/fhir/StructureDefinition/VprDocument</a><span style="color: navy">&quot; </span><b>alias </b>VprDocument <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> &quot;</span><a href="StructureDefinition-DocumentReferenceBinary.html" title="Document Reference Binary">http://va.gov/fhir/StructureDefinition/DocumentReferenceBinary</a><span style="color: navy">&quot; </span><b>alias </b>DocumentReferenceBinary <b>as </b><b>target</b>

<b>group </b>map<span style="color: navy">(</span><b>source</b> <span style="color: maroon">document</span><span style="color: navy"> : </span>VprDocument, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>DocumentReferenceBinary<span style="color: navy">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style="color: navy"> {
</span>  document.content<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.data = <span style="color: maroon">v</span><span style="color: navy">;</span>
  document.content<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -&gt; </b></span>tgt.contentType = <span style="color: blue">'#text/plain'</span><span style="color: navy">;</span>
<span style="color: navy">}

</span></pre></div>
  </text>
  <url value="http://va.gov/fhir/StructureMap/Vpr2DocumentReferenceBinary"/>
  <version value="2.5.0"/>
  <name value="Vpr2DocumentReferenceBinary"/>
  <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/VprDocument"/>
    <mode value="source"/>
    <alias value="VprDocument"/>
  </structure>
  <structure>
    <url
         value="http://va.gov/fhir/StructureDefinition/DocumentReferenceBinary"/>
    <mode value="target"/>
    <alias value="DocumentReferenceBinary"/>
  </structure>
  <group>
    <name value="map"/>
    <typeMode value="type-and-types"/>
    <input>
      <name value="document"/>
      <type value="VprDocument"/>
      <mode value="source"/>
    </input>
    <input>
      <name value="tgt"/>
      <type value="DocumentReferenceBinary"/>
      <mode value="target"/>
    </input>
    <rule>
      <name value="content"/>
      <source>
        <context value="document"/>
        <element value="content"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="data"/>
        <transform value="copy"/>
        <parameter>
          <valueId value="v"/>
        </parameter>
      </target>
    </rule>
    <rule>
      <name value="content"/>
      <source>
        <context value="document"/>
        <element value="content"/>
        <variable value="v"/>
      </source>
      <target>
        <context value="tgt"/>
        <contextType value="variable"/>
        <element value="contentType"/>
        <transform value="copy"/>
        <parameter>
          <valueString value="#text/plain"/>
        </parameter>
      </target>
    </rule>
  </group>
</StructureMap>