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: Vpr2EncounterVisit

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

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

uses "http://va.gov/fhir/StructureDefinition/VprVisit" alias VprVisit as source
uses "http://va.gov/fhir/StructureDefinition/EncounterVisit" alias EncounterVisit as target

group map(source visit : VprVisit, target tgt : EncounterVisit) <<type+>> {
  visit.dateTime as v -> tgt.status = '#planned';
  visit.visitString as v -> tgt.status = '#planned';
  visit.dateTime as v -> tgt.status = '#in-progress';
  visit.visitString as v -> tgt.status = '#in-progress';
  visit.serviceCategory as v ->  tgt.serviceType as s0,  s0.coding as c1,  c1.code = v;
  visit.visitString as v ->  tgt.serviceType as s0,  s0.coding as c1,  c1.code = v;
  visit.serviceCategory as v ->  tgt.serviceType as s0,  s0.coding as c1,  c1.system = 'http://va.gov/fhir/CodeSystem/9000010-.07';
  visit.visitString as v ->  tgt.serviceType as s0,  s0.coding as c1,  c1.system = 'http://va.gov/fhir/CodeSystem/9000010-.07';
  visit.dateTime as v ->  tgt.period as p0,  p0.start = v;
  visit.visitString as v ->  tgt.period as p0,  p0.start = v;
  visit.icd as v ->  tgt.reasonCode as r0,  r0.coding as c1,  c1.code = v;
  visit.reason as v ->  tgt.reasonCode as r0,  r0.coding as c1,  c1.code = v;
  visit.icd as v ->  tgt.reasonCode as r0,  r0.coding as c1,  c1.system = v;
  visit.reason as v ->  tgt.reasonCode as r0,  r0.coding as c1,  c1.system = v;
  visit.stopCode as v ->  tgt.location as l0,  l0.location = v;
  visit.creditStopCode as v ->  tgt.location as l0,  l0.location = v,  l0.location = v,  l0.location = v;
  visit.patientClass as v -> tgt.class = v;
  visit.facility as v -> tgt.serviceProvider = v;
  visit.facility as v ->  tgt.serviceProvider as s0,  s0.display = v;
  visit.facility as v ->  tgt.serviceProvider as s0,  s0.identifier as i1,  i1.value = v;
  visit.facility as v ->  tgt.serviceProvider as s0,  s0.identifier as i1,  i1.system = 'http://va.gov/fhir/sid/4-99';
  visit.provider as v ->  tgt.participant as p0,  p0.individual = v;
  visit.provider as v ->  tgt.participant as p0,  p0.type = v;
  visit.cpt as v ->  tgt.type as t0,  t0.text = v;
  visit.type as v ->  tgt.type as t0,  t0.text = v;
  visit.cpt as v ->  tgt.type as t0,  t0.coding as c1,  c1.system = 'http://www.ama-assn.org/go/cpt';
  visit.type as v ->  tgt.type as t0,  t0.coding as c1,  c1.system = 'http://www.ama-assn.org/go/cpt';
  visit.cpt as v ->  tgt.type as t0,  t0.coding as c1,  c1.code = v;
  visit.type as v ->  tgt.type as t0,  t0.coding as c1,  c1.code = v;
  visit.cpt as v ->  tgt.type as t0,  t0.coding as c1,  c1.display = v;
  visit.type as v ->  tgt.type as t0,  t0.coding as c1,  c1.display = v;
  visit.icd as v ->  tgt.diagnosis as d0,  d0.condition = v;
  visit.reason as v ->  tgt.diagnosis as d0,  d0.condition = v;
  visit.icd as v ->  tgt.diagnosis as d0,  d0.use = v;
  visit.reason as v ->  tgt.diagnosis as d0,  d0.use = v;
}