US Veterans Health Administration FHIR Map Set Implementation Guide
2.5.0 - 260401a
US Veterans Health Administration FHIR Map Set Implementation Guide - Downloaded Version 2.5.0 See the Directory of published versions
| Draft as of 2026-03-31 |
<StructureMap xmlns="http://hl7.org/fhir">
<id value="Vpr2MedicationRequestUnsigned"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap Vpr2MedicationRequestUnsigned</b></p><a name="Vpr2MedicationRequestUnsigned"> </a><a name="hcVpr2MedicationRequestUnsigned"> </a><pre class="fml">
<b>map</b><span style="color: navy"> "</span>http://va.gov/fhir/StructureMap/Vpr2MedicationRequestUnsigned<span style="color: navy">" = "</span>Vpr2MedicationRequestUnsigned<span style="color: navy">"
</span><b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-VprMed.html" title="VPR med">http://va.gov/fhir/StructureDefinition/VprMed</a><span style="color: navy">" </span><b>alias </b>VprMed <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-VprOrder.html" title="VPR order">http://va.gov/fhir/StructureDefinition/VprOrder</a><span style="color: navy">" </span><b>alias </b>VprOrder <b>as </b><b>source</b>
<b>uses</b><span style="color: navy"> "</span><a href="StructureDefinition-MedicationRequestUnsigned.html" title="MedicationRequest: Unsigned">http://va.gov/fhir/StructureDefinition/MedicationRequestUnsigned</a><span style="color: navy">" </span><b>alias </b>MedicationRequestUnsigned <b>as </b><b>target</b>
<b>group </b>map<span style="color: navy">(</span><b>source</b> <span style="color: maroon">med</span><span style="color: navy"> : </span>VprMed, <b>source</b> <span style="color: maroon">order</span><span style="color: navy"> : </span>VprOrder, <b>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>MedicationRequestUnsigned<span style="color: navy">)</span><b> <<type+>></b><span style="color: navy"> {
</span> med.orderingProvider<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.requester = <span style="color: maroon">v</span><span style="color: navy">;</span>
med.ordered<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.authoredOn = <span style="color: maroon">v</span><span style="color: navy">;</span>
order.entered<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span>tgt.authoredOn = <span style="color: maroon">v</span><span style="color: navy">;</span>
med.start<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span> tgt.dosageInstruction<b> as </b><span style="color: maroon">d0</span><span style="color: navy">, </span> d0.timing<b> as </b><span style="color: maroon">t1</span><span style="color: navy">, </span> t1.repeat<b> as </b><span style="color: maroon">r2</span><span style="color: navy">, </span> r2.bounds<b> as </b><span style="color: maroon">b3</span><span style="color: navy">, </span> b3.start = <span style="color: maroon">v</span><span style="color: navy">;</span>
order.start<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span> tgt.dosageInstruction<b> as </b><span style="color: maroon">d0</span><span style="color: navy">, </span> d0.timing<b> as </b><span style="color: maroon">t1</span><span style="color: navy">, </span> t1.repeat<b> as </b><span style="color: maroon">r2</span><span style="color: navy">, </span> r2.bounds<b> as </b><span style="color: maroon">b3</span><span style="color: navy">, </span> b3.start = <span style="color: maroon">v</span><span style="color: navy">;</span>
med.stop<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span> tgt.dosageInstruction<b> as </b><span style="color: maroon">d0</span><span style="color: navy">, </span> d0.timing<b> as </b><span style="color: maroon">t1</span><span style="color: navy">, </span> t1.repeat<b> as </b><span style="color: maroon">r2</span><span style="color: navy">, </span> r2.bounds<b> as </b><span style="color: maroon">b3</span><span style="color: navy">, </span> b3.end = <span style="color: maroon">v</span><span style="color: navy">;</span>
order.stop<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span> tgt.dosageInstruction<b> as </b><span style="color: maroon">d0</span><span style="color: navy">, </span> d0.timing<b> as </b><span style="color: maroon">t1</span><span style="color: navy">, </span> t1.repeat<b> as </b><span style="color: maroon">r2</span><span style="color: navy">, </span> r2.bounds<b> as </b><span style="color: maroon">b3</span><span style="color: navy">, </span> b3.end = <span style="color: maroon">v</span><span style="color: navy">;</span>
med.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span> tgt.extension<b> as </b><span style="color: maroon">e0</span><span style="color: navy">, </span> e0.url = <span style="color: blue">'http://va.gov/fhir/StructureDefinition/medicationrequest-pharmacyOrderStatus'</span><span style="color: navy">, </span> e0.value<b> as </b><span style="color: maroon">v1</span><span style="color: navy">, </span> v1.code = <span style="color: maroon">v</span><span style="color: navy">, </span> v1.code = <span style="color: maroon">v</span><span style="color: navy">, </span> v1.code = <span style="color: maroon">v</span><span style="color: navy">, </span> v1.code = <span style="color: maroon">v</span><span style="color: navy">, </span> v1.code = <span style="color: maroon">v</span><span style="color: navy">, </span> v1.system = <span style="color: blue">'http://va.gov/fhir/CodeSystem/100.01'</span><span style="color: navy">, </span> v1.system = <span style="color: blue">'http://va.gov/fhir/CodeSystem/100.01'</span><span style="color: navy">, </span> v1.system = <span style="color: blue">'http://va.gov/fhir/CodeSystem/100.01'</span><span style="color: navy">, </span> v1.system = <span style="color: blue">'http://va.gov/fhir/CodeSystem/100.01'</span><span style="color: navy">, </span> v1.system = <span style="color: blue">'http://va.gov/fhir/CodeSystem/100.01'</span><span style="color: navy">;</span>
med.status<b> as </b><span style="color: maroon">v</span><span style="color: navy"><b> -> </b></span> tgt.status<b> as </b><span style="color: maroon">s0</span><span style="color: navy">, </span> s0.extension<b> as </b><span style="color: maroon">e1</span><span style="color: navy">, </span> e1.url = <span style="color: blue">'http://hl7.org/fhir/StructureDefinition/alternate-codes'</span><span style="color: navy">, </span> e1.value<b> as </b><span style="color: maroon">v2</span><span style="color: navy">, </span> v2.coding<b> as </b><span style="color: maroon">c3</span><span style="color: navy">, </span> c3.code = <span style="color: maroon">v</span><span style="color: navy">, </span> c3.code = <span style="color: maroon">v</span><span style="color: navy">, </span> c3.code = <span style="color: maroon">v</span><span style="color: navy">, </span> c3.code = <span style="color: maroon">v</span><span style="color: navy">, </span> c3.code = <span style="color: maroon">v</span><span style="color: navy">, </span> c3.system = <span style="color: blue">'http://va.gov/fhir/CodeSystem/100.01'</span><span style="color: navy">, </span> c3.system = <span style="color: blue">'http://va.gov/fhir/CodeSystem/100.01'</span><span style="color: navy">, </span> c3.system = <span style="color: blue">'http://va.gov/fhir/CodeSystem/100.01'</span><span style="color: navy">, </span> c3.system = <span style="color: blue">'http://va.gov/fhir/CodeSystem/100.01'</span><span style="color: navy">, </span> c3.system = <span style="color: blue">'http://va.gov/fhir/CodeSystem/100.01'</span><span style="color: navy">;</span>
<span style="color: navy">}
</span></pre></div>
</text>
<url value="http://va.gov/fhir/StructureMap/Vpr2MedicationRequestUnsigned"/>
<version value="2.5.0"/>
<name value="Vpr2MedicationRequestUnsigned"/>
<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/VprMed"/>
<mode value="source"/>
<alias value="VprMed"/>
</structure>
<structure>
<url value="http://va.gov/fhir/StructureDefinition/VprOrder"/>
<mode value="source"/>
<alias value="VprOrder"/>
</structure>
<structure>
<url
value="http://va.gov/fhir/StructureDefinition/MedicationRequestUnsigned"/>
<mode value="target"/>
<alias value="MedicationRequestUnsigned"/>
</structure>
<group>
<name value="map"/>
<typeMode value="type-and-types"/>
<input>
<name value="med"/>
<type value="VprMed"/>
<mode value="source"/>
</input>
<input>
<name value="order"/>
<type value="VprOrder"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="MedicationRequestUnsigned"/>
<mode value="target"/>
</input>
<rule>
<name value="orderingProvider"/>
<source>
<context value="med"/>
<element value="orderingProvider"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="requester"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
<rule>
<name value="ordered"/>
<source>
<context value="med"/>
<element value="ordered"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="authoredOn"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
<rule>
<name value="entered"/>
<source>
<context value="order"/>
<element value="entered"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="authoredOn"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
<rule>
<name value="start"/>
<source>
<context value="med"/>
<element value="start"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="dosageInstruction"/>
<variable value="d0"/>
</target>
<target>
<context value="d0"/>
<contextType value="variable"/>
<element value="timing"/>
<variable value="t1"/>
</target>
<target>
<context value="t1"/>
<contextType value="variable"/>
<element value="repeat"/>
<variable value="r2"/>
</target>
<target>
<context value="r2"/>
<contextType value="variable"/>
<element value="bounds"/>
<variable value="b3"/>
</target>
<target>
<context value="b3"/>
<contextType value="variable"/>
<element value="start"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
<rule>
<name value="start"/>
<source>
<context value="order"/>
<element value="start"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="dosageInstruction"/>
<variable value="d0"/>
</target>
<target>
<context value="d0"/>
<contextType value="variable"/>
<element value="timing"/>
<variable value="t1"/>
</target>
<target>
<context value="t1"/>
<contextType value="variable"/>
<element value="repeat"/>
<variable value="r2"/>
</target>
<target>
<context value="r2"/>
<contextType value="variable"/>
<element value="bounds"/>
<variable value="b3"/>
</target>
<target>
<context value="b3"/>
<contextType value="variable"/>
<element value="start"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
<rule>
<name value="stop"/>
<source>
<context value="med"/>
<element value="stop"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="dosageInstruction"/>
<variable value="d0"/>
</target>
<target>
<context value="d0"/>
<contextType value="variable"/>
<element value="timing"/>
<variable value="t1"/>
</target>
<target>
<context value="t1"/>
<contextType value="variable"/>
<element value="repeat"/>
<variable value="r2"/>
</target>
<target>
<context value="r2"/>
<contextType value="variable"/>
<element value="bounds"/>
<variable value="b3"/>
</target>
<target>
<context value="b3"/>
<contextType value="variable"/>
<element value="end"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
<rule>
<name value="stop"/>
<source>
<context value="order"/>
<element value="stop"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="dosageInstruction"/>
<variable value="d0"/>
</target>
<target>
<context value="d0"/>
<contextType value="variable"/>
<element value="timing"/>
<variable value="t1"/>
</target>
<target>
<context value="t1"/>
<contextType value="variable"/>
<element value="repeat"/>
<variable value="r2"/>
</target>
<target>
<context value="r2"/>
<contextType value="variable"/>
<element value="bounds"/>
<variable value="b3"/>
</target>
<target>
<context value="b3"/>
<contextType value="variable"/>
<element value="end"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
<rule>
<name value="status"/>
<source>
<context value="med"/>
<element value="status"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="extension"/>
<variable value="e0"/>
</target>
<target>
<context value="e0"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="copy"/>
<parameter>
<valueString
value="http://va.gov/fhir/StructureDefinition/medicationrequest-pharmacyOrderStatus"/>
</parameter>
</target>
<target>
<context value="e0"/>
<contextType value="variable"/>
<element value="value"/>
<variable value="v1"/>
</target>
<target>
<context value="v1"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<target>
<context value="v1"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<target>
<context value="v1"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<target>
<context value="v1"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<target>
<context value="v1"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<target>
<context value="v1"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://va.gov/fhir/CodeSystem/100.01"/>
</parameter>
</target>
<target>
<context value="v1"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://va.gov/fhir/CodeSystem/100.01"/>
</parameter>
</target>
<target>
<context value="v1"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://va.gov/fhir/CodeSystem/100.01"/>
</parameter>
</target>
<target>
<context value="v1"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://va.gov/fhir/CodeSystem/100.01"/>
</parameter>
</target>
<target>
<context value="v1"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://va.gov/fhir/CodeSystem/100.01"/>
</parameter>
</target>
</rule>
<rule>
<name value="status"/>
<source>
<context value="med"/>
<element value="status"/>
<variable value="v"/>
</source>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="status"/>
<variable value="s0"/>
</target>
<target>
<context value="s0"/>
<contextType value="variable"/>
<element value="extension"/>
<variable value="e1"/>
</target>
<target>
<context value="e1"/>
<contextType value="variable"/>
<element value="url"/>
<transform value="copy"/>
<parameter>
<valueString
value="http://hl7.org/fhir/StructureDefinition/alternate-codes"/>
</parameter>
</target>
<target>
<context value="e1"/>
<contextType value="variable"/>
<element value="value"/>
<variable value="v2"/>
</target>
<target>
<context value="v2"/>
<contextType value="variable"/>
<element value="coding"/>
<variable value="c3"/>
</target>
<target>
<context value="c3"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<target>
<context value="c3"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<target>
<context value="c3"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<target>
<context value="c3"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<target>
<context value="c3"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
<target>
<context value="c3"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://va.gov/fhir/CodeSystem/100.01"/>
</parameter>
</target>
<target>
<context value="c3"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://va.gov/fhir/CodeSystem/100.01"/>
</parameter>
</target>
<target>
<context value="c3"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://va.gov/fhir/CodeSystem/100.01"/>
</parameter>
</target>
<target>
<context value="c3"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://va.gov/fhir/CodeSystem/100.01"/>
</parameter>
</target>
<target>
<context value="c3"/>
<contextType value="variable"/>
<element value="system"/>
<transform value="copy"/>
<parameter>
<valueString value="http://va.gov/fhir/CodeSystem/100.01"/>
</parameter>
</target>
</rule>
</group>
</StructureMap>