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

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

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

uses "http://va.gov/fhir/StructureDefinition/VprReaction" alias VprReaction as source
uses "http://va.gov/fhir/StructureDefinition/VAAllergyIntolerance" alias VAAllergyIntolerance as target

group map(source reaction : VprReaction, target tgt : VAAllergyIntolerance) <<type+>> {
  reaction.name as v ->  tgt.code as c0,  c0.text = v;
  reaction.localCode as v -> tgt.code = v;
  reaction.vuid as v -> tgt.code = v;
  reaction.drugClass as v -> tgt.patient = v;
  reaction.drugIngredient as v -> tgt.patient = v;
  reaction.reaction as v -> tgt.patient = v;
  reaction.entered as v -> tgt.recordedDate = v;
  reaction.reaction as v ->  tgt.reaction as r0,  r0.manifestation as m1,  m1.text = v;
  reaction.reaction as v ->  tgt.reaction as r0,  r0.manifestation as m1,  m1.coding as c2,  c2.system = 'urn:oid:2.16.840.1.113883.6.233';
  reaction.reaction as v ->  tgt.reaction as r0,  r0.manifestation as m1,  m1.coding as c2,  c2.code = v;
  reaction.reaction as v ->  tgt.reaction as r0,  r0.manifestation as m1,  m1.coding as c2,  c2.display = v;
  reaction.mechanism as v -> tgt.type = v;
  reaction.removed as v -> tgt.clinicalStatus = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical#active';
  reaction.type as v -> tgt.category = v;
  reaction.severity as v ->  tgt.reaction as r0,  r0.severity = v;
  reaction.reaction as v ->  tgt.reaction as r0,  r0.onset = v;
}