This page is part of the FHIR Core Extensions Registry (v5.1.0: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions
Official URL: http://hl7.org/fhir/StructureMap/AdverseEvent4to5 | Version: 5.1.0 | |||
Standards status: Trial-use | Maturity Level: 1 | Computable Name: AdverseEvent4to5 |
FMLConversionforAdverseEventR4toR5
/// url = 'http://hl7.org/fhir/StructureMap/AdverseEvent4to5' /// name = 'AdverseEvent4to5' /// title = 'FML Conversion for AdverseEvent: R4 to R5' /// status = 'active' conceptmap "AdverseEventActuality" { prefix s = "http://hl7.org/fhir/4.0/adverse-event-actuality" prefix t = "http://hl7.org/fhir/adverse-event-actuality" s:actual - t:actual s:potential - t:potential } uses "http://hl7.org/fhir/4.0/StructureDefinition/AdverseEvent" alias AdverseEventR4 as source uses "http://hl7.org/fhir/StructureDefinition/AdverseEvent" alias AdverseEventR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group AdverseEvent(source src : AdverseEventR4, target tgt : AdverseEventR5) extends DomainResource <<type+>> { src.identifier -> tgt.identifier; src.actuality as v -> tgt.actuality = translate(v, '#AdverseEventActuality', 'code'); // src.status -> tgt.status; src.category -> tgt.category; src.event -> tgt.code; src.subject -> tgt.subject; src.encounter -> tgt.encounter; src.date : dateTime -> tgt.occurrence; src.detected -> tgt.detected; // src.occurrence : Period -> tgt.occurrence; src.recordedDate -> tgt.recordedDate; src.resultingCondition -> tgt.resultingEffect; src.location -> tgt.location; src.seriousness -> tgt.seriousness; src.outcome -> tgt.outcome; src.recorder -> tgt.recorder; src.contributor as s -> tgt.participant as t then AdverseEventParticipant(s, t); src.study -> tgt.study; src.suspectEntity as s -> tgt.suspectEntity as t then AdverseEventSuspectEntity(s, t); // src.expectedInResearchStudy -> tgt.expectedInResearchStudy; src.subjectMedicalHistory as s -> tgt.contributingFactor as t then AdverseEventContributingFactor(s, t); } group AdverseEventParticipant(source src, target tgt) extends BackboneElement { src as v -> tgt.actor = v "reference"; // src.function -> tgt.function; } group AdverseEventSuspectEntity(source src, target tgt) extends BackboneElement { src.instance : Reference -> tgt.instance; // src.instance : CodeableConcept -> tgt.instance; src.causality as s -> tgt.causality as t then AdverseEventSuspectEntityCausality(s, t); } group AdverseEventSuspectEntityCausality(source src, target tgt) extends BackboneElement { src.assessment -> tgt.assessmentMethod; src.productRelatedness -> tgt.entityRelatedness; src.author -> tgt.author; } group AdverseEventContributingFactor(source src, target tgt) extends BackboneElement { src as v -> tgt.item = v "reference"; }