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

StructureMap: Vpr2MedicationRequestOutpatient

Official URL: http://va.gov/fhir/StructureMap/Vpr2MedicationRequestOutpatient Version: 2.5.0
Draft as of 2026-03-31 Computable Name: Vpr2MedicationRequestOutpatient

map "http://va.gov/fhir/StructureMap/Vpr2MedicationRequestOutpatient" = "Vpr2MedicationRequestOutpatient"

uses "http://va.gov/fhir/StructureDefinition/VprMed" alias VprMed as source
uses "http://va.gov/fhir/StructureDefinition/MedicationRequestOutpatient" alias MedicationRequestOutpatient as target

group map(source med : VprMed, target tgt : MedicationRequestOutpatient) <<type+>> {
  med.currentProvider as v -> tgt.requester = v;
  med.dose as v ->  tgt.dosageInstruction as d0,  d0.doseAndRate as d1,  d1.dose as d2,  d2.value = v;
  med.dose as v ->  tgt.dosageInstruction as d0,  d0.doseAndRate as d1,  d1.dose as d2,  d2.unit = v;
  med.expires as v ->  tgt.dispenseRequest as d0,  d0.validityPeriod as v1,  v1.end = v;
  med.daysSupply as v ->  tgt.dispenseRequest as d0,  d0.expectedSupplyDuration = v;
  med.dose as v ->  tgt.dosageInstruction as d0,  d0.doseAndRate as d1,  d1.extension as e2,  e2.url = 'http://hl7.org/fhir/StructureDefinition/originalText',  e2.value = v;
  med.dose as o ->  o.dose as v,  tgt.identifier as i0,  i0.value = v;
  med.dose as o ->  o.dose as v,  tgt.identifier as i0,  i0.type = 'http://terminology.hl7.org/CodeSystem/v2-0203#FILL';
  med.dose as v ->  tgt.dosageInstruction as d0,  d0.route as r1,  r1.coding as c2,  c2.code = v;
  med.dose as v ->  tgt.dosageInstruction as d0,  d0.route as r1,  r1.coding as c2,  c2.system = 'http://va.gov/fhir/CodeSystem/52.0113-6';
}