This page is part of the FHIR Specification (v4.5.0: R5 Preview #3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
Patient Care Work Group | Maturity Level: N/A | Standards Status: Informative | Security Category: Patient | Compartments: Patient, Practitioner, RelatedPerson |
R3 : R4 Conversion maps for AllergyIntolerance.
Functional status for this map: 3 tests that all execute ok. All tests pass round-trip testing and all r3 resources are valid. (see documentation)
map "http://hl7.org/fhir/StructureMap/AllergyIntolerance3to4" = "R3 to R4 Conversions for AllergyIntolerance" uses "http://hl7.org/fhir/3.0/StructureDefinition/AllergyIntolerance" alias AllergyIntoleranceR3 as source uses "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" alias AllergyIntolerance as target imports "http://hl7.org/fhir/StructureMap/*3to4" group AllergyIntolerance(source src : AllergyIntoleranceR3, target tgt : AllergyIntolerance) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.clinicalStatus as vs -> tgt.clinicalStatus as vt, vt.coding as c, c.system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical', c.code = vs; src.verificationStatus as vs -> tgt.verificationStatus as vt, vt.coding as c, c.system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification', c.code = vs; src.type -> tgt.type; src.category -> tgt.category; src.criticality -> tgt.criticality; src.code -> tgt.code; src.patient -> tgt.patient; src.onset : dateTime as vs -> tgt.onset = create('dateTime') as vt then dateTime(vs, vt); src.onset : Age as vs -> tgt.onset = create('Age') as vt then Age(vs, vt); src.onset : Period as vs -> tgt.onset = create('Period') as vt then Period(vs, vt); src.onset : Range as vs -> tgt.onset = create('Range') as vt then Range(vs, vt); src.onset : string as vs -> tgt.onset = create('string') as vt then string(vs, vt); src.assertedDate -> tgt.recordedDate "recordedDate"; src.recorder -> tgt.recorder; src.asserter -> tgt.asserter; src.lastOccurrence -> tgt.lastOccurrence; src.note -> tgt.note; src.reaction as vs0 -> tgt.reaction as vt0 then { vs0.substance -> vt0.substance; vs0.manifestation -> vt0.manifestation; vs0.description -> vt0.description; vs0.onset -> vt0.onset; vs0.severity -> vt0.severity; vs0.exposureRoute -> vt0.exposureRoute; vs0.note -> vt0.note; }; }
map "http://hl7.org/fhir/StructureMap/AllergyIntolerance4to3" = "R4 to R3 Conversion for AllergyIntolerance" uses "http://hl7.org/fhir/StructureDefinition/AllergyIntolerance" alias AllergyIntolerance as source uses "http://hl7.org/fhir/3.0/StructureDefinition/AllergyIntolerance" alias AllergyIntoleranceR3 as target imports "http://hl7.org/fhir/StructureMap/*4to3" group AllergyIntolerance(source src : AllergyIntolerance, target tgt : AllergyIntoleranceR3) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.clinicalStatus as vs then { vs.coding as c where system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical' then { c.code -> tgt.clinicalStatus; }; }; src.verificationStatus as vs then { vs.coding as c where system = 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification' then { c.code -> tgt.verificationStatus; }; }; src.type -> tgt.type; src.category -> tgt.category; src.criticality -> tgt.criticality; src.code -> tgt.code; src.patient -> tgt.patient; src.onset : dateTime as vs -> tgt.onset = create('dateTime') as vt then dateTime(vs, vt); src.onset : Age as vs -> tgt.onset = create('Age') as vt then Age(vs, vt); src.onset : Period as vs -> tgt.onset = create('Period') as vt then Period(vs, vt); src.onset : Range as vs -> tgt.onset = create('Range') as vt then Range(vs, vt); src.onset : string as vs -> tgt.onset = create('string') as vt then string(vs, vt); src.recordedDate -> tgt.assertedDate "assertedDate"; src.recorder -> tgt.recorder; src.asserter -> tgt.asserter; src.lastOccurrence -> tgt.lastOccurrence; src.note -> tgt.note; src.reaction as vs0 -> tgt.reaction as vt0 then { vs0.substance -> vt0.substance; vs0.manifestation -> vt0.manifestation; vs0.description -> vt0.description; vs0.onset -> vt0.onset; vs0.severity -> vt0.severity; vs0.exposureRoute -> vt0.exposureRoute; vs0.note -> vt0.note; }; }