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="Vpr2MedicationDispenseRefill"/>
<text>
<status value="generated"/>
<div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureMap Vpr2MedicationDispenseRefill</b></p><a name="Vpr2MedicationDispenseRefill"> </a><a name="hcVpr2MedicationDispenseRefill"> </a><pre class="fml">
<b>map</b><span style="color: navy"> "</span>http://va.gov/fhir/StructureMap/Vpr2MedicationDispenseRefill<span style="color: navy">" = "</span>Vpr2MedicationDispenseRefill<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-MedicationDispenseRefill.html" title="MedicationDispense: Refill">http://va.gov/fhir/StructureDefinition/MedicationDispenseRefill</a><span style="color: navy">" </span><b>alias </b>MedicationDispenseRefill <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>target</b> <span style="color: maroon">tgt</span><span style="color: navy"> : </span>MedicationDispenseRefill<span style="color: navy">)</span><b> <<type+>></b><span style="color: navy"> {
</span> med.dose<b> as </b><span style="color: maroon">o</span><span style="color: navy"><b> -> </b></span> o.dose<b> as </b><span style="color: maroon">v</span><span style="color: navy">, </span> tgt.authorizingPrescription = <span style="color: maroon">v</span><span style="color: navy">;</span>
med.dose<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.doseAndRate<b> as </b><span style="color: maroon">d1</span><span style="color: navy">, </span> d1.dose<b> as </b><span style="color: maroon">d2</span><span style="color: navy">, </span> d2.unit = <span style="color: maroon">v</span><span style="color: navy">;</span>
med.dose<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.doseAndRate<b> as </b><span style="color: maroon">d1</span><span style="color: navy">, </span> d1.dose<b> as </b><span style="color: maroon">d2</span><span style="color: navy">, </span> d2.code = <span style="color: maroon">v</span><span style="color: navy">;</span>
med.dose<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.doseAndRate<b> as </b><span style="color: maroon">d1</span><span style="color: navy">, </span> d1.dose<b> as </b><span style="color: maroon">d2</span><span style="color: navy">, </span> d2.value = <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/Vpr2MedicationDispenseRefill"/>
<version value="2.5.0"/>
<name value="Vpr2MedicationDispenseRefill"/>
<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/MedicationDispenseRefill"/>
<mode value="target"/>
<alias value="MedicationDispenseRefill"/>
</structure>
<group>
<name value="map"/>
<typeMode value="type-and-types"/>
<input>
<name value="med"/>
<type value="VprMed"/>
<mode value="source"/>
</input>
<input>
<name value="tgt"/>
<type value="MedicationDispenseRefill"/>
<mode value="target"/>
</input>
<rule>
<name value="dose"/>
<source>
<context value="med"/>
<element value="dose"/>
<variable value="o"/>
</source>
<target>
<context value="o"/>
<contextType value="variable"/>
<element value="dose"/>
<variable value="v"/>
</target>
<target>
<context value="tgt"/>
<contextType value="variable"/>
<element value="authorizingPrescription"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
<rule>
<name value="dose"/>
<source>
<context value="med"/>
<element value="dose"/>
<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="doseAndRate"/>
<variable value="d1"/>
</target>
<target>
<context value="d1"/>
<contextType value="variable"/>
<element value="dose"/>
<variable value="d2"/>
</target>
<target>
<context value="d2"/>
<contextType value="variable"/>
<element value="unit"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
<rule>
<name value="dose"/>
<source>
<context value="med"/>
<element value="dose"/>
<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="doseAndRate"/>
<variable value="d1"/>
</target>
<target>
<context value="d1"/>
<contextType value="variable"/>
<element value="dose"/>
<variable value="d2"/>
</target>
<target>
<context value="d2"/>
<contextType value="variable"/>
<element value="code"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
<rule>
<name value="dose"/>
<source>
<context value="med"/>
<element value="dose"/>
<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="doseAndRate"/>
<variable value="d1"/>
</target>
<target>
<context value="d1"/>
<contextType value="variable"/>
<element value="dose"/>
<variable value="d2"/>
</target>
<target>
<context value="d2"/>
<contextType value="variable"/>
<element value="value"/>
<transform value="copy"/>
<parameter>
<valueId value="v"/>
</parameter>
</target>
</rule>
</group>
</StructureMap>