@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://va.gov/fhir/StructureMap/Vpr2MedicationRequestOutpatient> a fhir:StructureMap ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Vpr2MedicationRequestOutpatient"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureMap Vpr2MedicationRequestOutpatient</b></p><a name=\"Vpr2MedicationRequestOutpatient\"> </a><a name=\"hcVpr2MedicationRequestOutpatient\"> </a><pre class=\"fml\">#xD;\n<b>map</b><span style=\"color: navy\"> \"</span>http://va.gov/fhir/StructureMap/Vpr2MedicationRequestOutpatient<span style=\"color: navy\">\" = \"</span>Vpr2MedicationRequestOutpatient<span style=\"color: navy\">\"#xD;\n#xD;\n</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>#xD;\n<b>uses</b><span style=\"color: navy\"> \"</span><a href=\"StructureDefinition-MedicationRequestOutpatient.html\" title=\"MedicationRequest: Outpatient\">http://va.gov/fhir/StructureDefinition/MedicationRequestOutpatient</a><span style=\"color: navy\">\" </span><b>alias </b>MedicationRequestOutpatient <b>as </b><b>target</b>#xD;\n#xD;\n<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>MedicationRequestOutpatient<span style=\"color: navy\">)</span><b> &lt;&lt;type+&gt;&gt;</b><span style=\"color: navy\"> {#xD;\n</span>  med.currentProvider<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span>tgt.requester = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  med.dose<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </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>#xD;\n  med.dose<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </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>#xD;\n  med.expires<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.dispenseRequest<b> as </b><span style=\"color: maroon\">d0</span><span style=\"color: navy\">, </span> d0.validityPeriod<b> as </b><span style=\"color: maroon\">v1</span><span style=\"color: navy\">, </span> v1.end = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  med.daysSupply<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.dispenseRequest<b> as </b><span style=\"color: maroon\">d0</span><span style=\"color: navy\">, </span> d0.expectedSupplyDuration = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  med.dose<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </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.extension<b> as </b><span style=\"color: maroon\">e2</span><span style=\"color: navy\">, </span> e2.url = <span style=\"color: blue\">'http://hl7.org/fhir/StructureDefinition/originalText'</span><span style=\"color: navy\">, </span> e2.value = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  med.dose<b> as </b><span style=\"color: maroon\">o</span><span style=\"color: navy\"><b> -&gt; </b></span> o.dose<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span> tgt.identifier<b> as </b><span style=\"color: maroon\">i0</span><span style=\"color: navy\">, </span> i0.value = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  med.dose<b> as </b><span style=\"color: maroon\">o</span><span style=\"color: navy\"><b> -&gt; </b></span> o.dose<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\">, </span> tgt.identifier<b> as </b><span style=\"color: maroon\">i0</span><span style=\"color: navy\">, </span> i0.type = <span style=\"color: blue\">'http://terminology.hl7.org/CodeSystem/v2-0203#FILL'</span><span style=\"color: navy\">;</span>#xD;\n  med.dose<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.dosageInstruction<b> as </b><span style=\"color: maroon\">d0</span><span style=\"color: navy\">, </span> d0.route<b> as </b><span style=\"color: maroon\">r1</span><span style=\"color: navy\">, </span> r1.coding<b> as </b><span style=\"color: maroon\">c2</span><span style=\"color: navy\">, </span> c2.code = <span style=\"color: maroon\">v</span><span style=\"color: navy\">;</span>#xD;\n  med.dose<b> as </b><span style=\"color: maroon\">v</span><span style=\"color: navy\"><b> -&gt; </b></span> tgt.dosageInstruction<b> as </b><span style=\"color: maroon\">d0</span><span style=\"color: navy\">, </span> d0.route<b> as </b><span style=\"color: maroon\">r1</span><span style=\"color: navy\">, </span> r1.coding<b> as </b><span style=\"color: maroon\">c2</span><span style=\"color: navy\">, </span> c2.system = <span style=\"color: blue\">'http://va.gov/fhir/CodeSystem/52.0113-6'</span><span style=\"color: navy\">;</span>#xD;\n<span style=\"color: navy\">}#xD;\n#xD;\n</span></pre></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:url [
     fhir:v "http://va.gov/fhir/StructureMap/Vpr2MedicationRequestOutpatient"^^xsd:anyURI ;
     fhir:l <http://va.gov/fhir/StructureMap/Vpr2MedicationRequestOutpatient>
  ] ; # 
  fhir:version [ fhir:v "2.5.0"] ; # 
  fhir:name [ fhir:v "Vpr2MedicationRequestOutpatient"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:date [ fhir:v "2026-03-31T16:09:38+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "VA"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "VA" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://www.va.gov" ]
     ] )
  ] ) ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
         fhir:l <urn:iso:std:iso:3166>
       ] ;
       fhir:code [ fhir:v "US" ] ;
       fhir:display [ fhir:v "United States of America" ]
     ] )
  ] ) ; # 
  fhir:structure ( [
     fhir:url [
       fhir:v "http://va.gov/fhir/StructureDefinition/VprMed"^^xsd:anyURI ;
       fhir:l <http://va.gov/fhir/StructureDefinition/VprMed>
     ] ;
     fhir:mode [ fhir:v "source" ] ;
     fhir:alias [ fhir:v "VprMed" ]
  ] [
     fhir:url [
       fhir:v "http://va.gov/fhir/StructureDefinition/MedicationRequestOutpatient"^^xsd:anyURI ;
       fhir:l <http://va.gov/fhir/StructureDefinition/MedicationRequestOutpatient>
     ] ;
     fhir:mode [ fhir:v "target" ] ;
     fhir:alias [ fhir:v "MedicationRequestOutpatient" ]
  ] ) ; # 
  fhir:group ( [
     fhir:name [ fhir:v "map" ] ;
     fhir:typeMode [ fhir:v "type-and-types" ] ;
     fhir:input ( [
       fhir:name [ fhir:v "med" ] ;
       fhir:type [ fhir:v "VprMed" ] ;
       fhir:mode [ fhir:v "source" ]
     ] [
       fhir:name [ fhir:v "tgt" ] ;
       fhir:type [ fhir:v "MedicationRequestOutpatient" ] ;
       fhir:mode [ fhir:v "target" ]
     ] ) ;
     fhir:rule ( [
       fhir:name [ fhir:v "currentProvider" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "med" ] ;
         fhir:element [ fhir:v "currentProvider" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "requester" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "dose" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "med" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dosageInstruction" ] ;
         fhir:variable [ fhir:v "d0" ]
       ] [
         fhir:context [ fhir:v "d0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "doseAndRate" ] ;
         fhir:variable [ fhir:v "d1" ]
       ] [
         fhir:context [ fhir:v "d1" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "d2" ]
       ] [
         fhir:context [ fhir:v "d2" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "value" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "dose" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "med" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dosageInstruction" ] ;
         fhir:variable [ fhir:v "d0" ]
       ] [
         fhir:context [ fhir:v "d0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "doseAndRate" ] ;
         fhir:variable [ fhir:v "d1" ]
       ] [
         fhir:context [ fhir:v "d1" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "d2" ]
       ] [
         fhir:context [ fhir:v "d2" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "unit" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "expires" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "med" ] ;
         fhir:element [ fhir:v "expires" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dispenseRequest" ] ;
         fhir:variable [ fhir:v "d0" ]
       ] [
         fhir:context [ fhir:v "d0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "validityPeriod" ] ;
         fhir:variable [ fhir:v "v1" ]
       ] [
         fhir:context [ fhir:v "v1" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "end" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "daysSupply" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "med" ] ;
         fhir:element [ fhir:v "daysSupply" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dispenseRequest" ] ;
         fhir:variable [ fhir:v "d0" ]
       ] [
         fhir:context [ fhir:v "d0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "expectedSupplyDuration" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "dose" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "med" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dosageInstruction" ] ;
         fhir:variable [ fhir:v "d0" ]
       ] [
         fhir:context [ fhir:v "d0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "doseAndRate" ] ;
         fhir:variable [ fhir:v "d1" ]
       ] [
         fhir:context [ fhir:v "d1" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "extension" ] ;
         fhir:variable [ fhir:v "e2" ]
       ] [
         fhir:context [ fhir:v "e2" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "url" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:String ;
             fhir:v "http://hl7.org/fhir/StructureDefinition/originalText"
           ]
         ] )
       ] [
         fhir:context [ fhir:v "e2" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "value" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "dose" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "med" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "o" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "o" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "v" ]
       ] [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "identifier" ] ;
         fhir:variable [ fhir:v "i0" ]
       ] [
         fhir:context [ fhir:v "i0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "value" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "dose" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "med" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "o" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "o" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "v" ]
       ] [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "identifier" ] ;
         fhir:variable [ fhir:v "i0" ]
       ] [
         fhir:context [ fhir:v "i0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "type" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:String ;
             fhir:v "http://terminology.hl7.org/CodeSystem/v2-0203#FILL"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "dose" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "med" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dosageInstruction" ] ;
         fhir:variable [ fhir:v "d0" ]
       ] [
         fhir:context [ fhir:v "d0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "route" ] ;
         fhir:variable [ fhir:v "r1" ]
       ] [
         fhir:context [ fhir:v "r1" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "coding" ] ;
         fhir:variable [ fhir:v "c2" ]
       ] [
         fhir:context [ fhir:v "c2" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "code" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:Id ;
             fhir:v "v"
           ]
         ] )
       ] )
     ] [
       fhir:name [ fhir:v "dose" ] ;
       fhir:source ( [
         fhir:context [ fhir:v "med" ] ;
         fhir:element [ fhir:v "dose" ] ;
         fhir:variable [ fhir:v "v" ]
       ] ) ;
       fhir:target ( [
         fhir:context [ fhir:v "tgt" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "dosageInstruction" ] ;
         fhir:variable [ fhir:v "d0" ]
       ] [
         fhir:context [ fhir:v "d0" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "route" ] ;
         fhir:variable [ fhir:v "r1" ]
       ] [
         fhir:context [ fhir:v "r1" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "coding" ] ;
         fhir:variable [ fhir:v "c2" ]
       ] [
         fhir:context [ fhir:v "c2" ] ;
         fhir:contextType [ fhir:v "variable" ] ;
         fhir:element [ fhir:v "system" ] ;
         fhir:transform [ fhir:v "copy" ] ;
         fhir:parameter ( [
           fhir:value [
             a fhir:String ;
             fhir:v "http://va.gov/fhir/CodeSystem/52.0113-6"
           ]
         ] )
       ] )
     ] )
  ] ) . # 

# -------------------------------------------------------------------------------------

