FHIR Extensions Pack v1.0.0 (2023-03-26)

This page is part of the FHIR Core Extensions Registry (v1.0.0: Releases) based on FHIR v5.0.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Patient Care Work GroupMaturity Level: N/AStandards Status: InformativeSecurity Category: N/A Compartments: N/A

Following are maps for converting between the equivalent R4B resource and this R5 resource.

Maps to AdverseEvent

FML Conversion for AdverseEvent: R5 to R4 (Ready for Use/Trial Use)

/// url = 'http://hl7.org/fhir/StructureMap/AdverseEvent5to4'
/// name = 'AdverseEvent5to4'
/// title = 'FML Conversion for AdverseEvent: R5 to R4'
/// status = 'active'

conceptmap "AdverseEventActuality" {
  prefix s = "http://hl7.org/fhir/adverse-event-actuality"
  prefix t = "http://hl7.org/fhir/4.0/adverse-event-actuality"

  s:actual - t:actual
  s:potential - t:potential
}

uses "http://hl7.org/fhir/StructureDefinition/AdverseEvent" alias AdverseEventR5 as source
uses "http://hl7.org/fhir/4.0/StructureDefinition/AdverseEvent" alias AdverseEventR4 as target

imports "http://hl7.org/fhir/StructureMap/*5to4"

group AdverseEvent(source src : AdverseEventR5, target tgt : AdverseEventR4) 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.code -> tgt.event;
  src.subject -> tgt.subject;
  src.encounter -> tgt.encounter;
  src.occurrence : dateTime -> tgt.date;
  src.occurrence : Period as v -> tgt.date = v.start "periodDateTime";
  src.occurrence : Timing as v -> tgt.date = v.event "timingDateTime";
  src.detected -> tgt.detected;
  src.recordedDate -> tgt.recordedDate;
  src.resultingEffect -> tgt.resultingCondition;
  src.location -> tgt.location;
  src.seriousness -> tgt.seriousness;
  src.outcome -> tgt.outcome;
  src.recorder -> tgt.recorder;
  src.participant as s -> tgt.contributor 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.contributingFactor as s -> tgt.subjectMedicalHistory as t then AdverseEventContributingFactor(s, t);
}

group AdverseEventParticipant(source src, target tgt) extends BackboneElement {
  src.actor as v -> tgt = 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.assessmentMethod -> tgt.assessment;
  src.entityRelatedness -> tgt.productRelatedness;
  src.author -> tgt.author;
}

group AdverseEventContributingFactor(source src, target tgt) extends BackboneElement {
  src.item : Reference as v -> tgt = v "reference";
}

FML Conversion for AdverseEvent: R5 to R4B (Ready for Use/Trial Use)

/// url = 'http://hl7.org/fhir/StructureMap/AdverseEvent5to4B'
/// name = 'AdverseEvent5to4B'
/// title = 'FML Conversion for AdverseEvent: R5 to R4B'
/// status = 'active'

conceptmap "AdverseEventActuality" {
  prefix s = "http://hl7.org/fhir/adverse-event-actuality"
  prefix t = "http://hl7.org/fhir/4.3/adverse-event-actuality"

  s:actual - t:actual
  s:potential - t:potential
}

uses "http://hl7.org/fhir/StructureDefinition/AdverseEvent" alias AdverseEventR5 as source
uses "http://hl7.org/fhir/4.3/StructureDefinition/AdverseEvent" alias AdverseEventR4B as target

imports "http://hl7.org/fhir/StructureMap/*5to4B"

group AdverseEvent(source src : AdverseEventR5, target tgt : AdverseEventR4B) 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.code -> tgt.event;
  src.subject -> tgt.subject;
  src.encounter -> tgt.encounter;
  src.occurrence : dateTime -> tgt.date;
  src.occurrence : Period as v -> tgt.date = v.start "periodDateTime";
  src.occurrence : Timing as v -> tgt.date = v.event "timingDateTime";
  src.detected -> tgt.detected;
  src.recordedDate -> tgt.recordedDate;
  src.resultingEffect -> tgt.resultingCondition;
  src.location -> tgt.location;
  src.seriousness -> tgt.seriousness;
  src.outcome -> tgt.outcome;
  src.recorder -> tgt.recorder;
  src.participant as s -> tgt.contributor 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.contributingFactor as s -> tgt.subjectMedicalHistory as t then AdverseEventContributingFactor(s, t);
}

group AdverseEventParticipant(source src, target tgt) extends BackboneElement {
  src.actor as v -> tgt = 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.assessmentMethod -> tgt.assessment;
  src.entityRelatedness -> tgt.productRelatedness;
  src.author -> tgt.author;
}

group AdverseEventContributingFactor(source src, target tgt) extends BackboneElement {
  src.item : Reference as v -> tgt = v "reference";
}

Maps from AdverseEvent

FML Conversion for AdverseEvent: R4B to R5 (Ready for Use/Trial Use)

/// url = 'http://hl7.org/fhir/StructureMap/AdverseEvent4Bto5'
/// name = 'AdverseEvent4Bto5'
/// title = 'FML Conversion for AdverseEvent: R4B to R5'
/// status = 'active'

conceptmap "AdverseEventActuality" {
  prefix s = "http://hl7.org/fhir/4.3/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.3/StructureDefinition/AdverseEvent" alias AdverseEventR4B as source
uses "http://hl7.org/fhir/StructureDefinition/AdverseEvent" alias AdverseEventR5 as target

imports "http://hl7.org/fhir/StructureMap/*4Bto5"

group AdverseEvent(source src : AdverseEventR4B, 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";
}

FML Conversion for AdverseEvent: R4 to R5 (Ready for Use/Trial Use)

/// 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";
}