FHIR Extensions Pack v5.1.0-cibuild (2024-04-18)

FHIR Extensions Pack, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 5.1.0-cibuild built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-extensions/ and changes regularly. See the Directory of published versions

Biomedical Research and Regulation 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 ClinicalUseDefinition

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

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

conceptmap "ClinicalUseDefinitionType" {
  prefix s = "http://hl7.org/fhir/clinical-use-definition-type"
  prefix t = "http://hl7.org/fhir/4.3/clinical-use-definition-type"

  s:indication - t:indication
  s:contraindication - t:contraindication
  s:interaction - t:interaction
  s:"undesirable-effect" - t:"undesirable-effect"
  s:warning - t:warning
}

uses "http://hl7.org/fhir/StructureDefinition/ClinicalUseDefinition" alias ClinicalUseDefinitionR5 as source
uses "http://hl7.org/fhir/4.3/StructureDefinition/ClinicalUseDefinition" alias ClinicalUseDefinitionR4B as target

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

group ClinicalUseDefinition(source src : ClinicalUseDefinitionR5, target tgt : ClinicalUseDefinitionR4B) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.type as v -> tgt.type = translate(v, '#ClinicalUseDefinitionType', 'code');
  src.category -> tgt.category;
  src.subject -> tgt.subject;
  src.status -> tgt.status;
  src.contraindication as s -> tgt.contraindication as t then ClinicalUseDefinitionContraindication(s, t);
  src.indication as s -> tgt.indication as t then ClinicalUseDefinitionIndication(s, t);
  src.interaction as s -> tgt.interaction as t then ClinicalUseDefinitionInteraction(s, t);
  src.population -> tgt.population;
  src.undesirableEffect as s -> tgt.undesirableEffect as t then ClinicalUseDefinitionUndesirableEffect(s, t); // src.library -> tgt.library;
  src.warning as s -> tgt.warning as t then ClinicalUseDefinitionWarning(s, t);
}

group ClinicalUseDefinitionContraindication(source src, target tgt) extends BackboneElement {
  src.diseaseSymptomProcedure -> tgt.diseaseSymptomProcedure;
  src.diseaseStatus -> tgt.diseaseStatus;
  src.comorbidity -> tgt.comorbidity;
  src.indication -> tgt.indication;
  src.otherTherapy as s -> tgt.otherTherapy as t then ClinicalUseDefinitionContraindicationOtherTherapy(s, t); // src.applicability -> tgt.applicability;
}

group ClinicalUseDefinitionContraindicationOtherTherapy(source src, target tgt) extends BackboneElement {
  src.relationshipType -> tgt.relationshipType;
  src.treatment -> tgt.therapy;
}

group ClinicalUseDefinitionIndication(source src, target tgt) extends BackboneElement {
  src.diseaseSymptomProcedure -> tgt.diseaseSymptomProcedure;
  src.diseaseStatus -> tgt.diseaseStatus;
  src.comorbidity -> tgt.comorbidity;
  src.intendedEffect -> tgt.intendedEffect;
  src.duration : Range -> tgt.duration;
  src.duration : string -> tgt.duration;
  src.undesirableEffect -> tgt.undesirableEffect;
}

group ClinicalUseDefinitionInteraction(source src, target tgt) extends BackboneElement {
  src.interactant as s -> tgt.interactant as t then ClinicalUseDefinitionInteractionInteractant(s, t);
  src.type -> tgt.type;
  src.effect -> tgt.effect;
  src.incidence -> tgt.incidence;
  src.management -> tgt.management;
}

group ClinicalUseDefinitionInteractionInteractant(source src, target tgt) extends BackboneElement {
  src.item : Reference -> tgt.item;
  src.item : CodeableConcept -> tgt.item;
}

group ClinicalUseDefinitionUndesirableEffect(source src, target tgt) extends BackboneElement {
  src.symptomConditionEffect -> tgt.symptomConditionEffect;
  src.classification -> tgt.classification;
  src.frequencyOfOccurrence -> tgt.frequencyOfOccurrence;
}

group ClinicalUseDefinitionWarning(source src, target tgt) extends BackboneElement {
  src.description -> tgt.description;
  src.code -> tgt.code;
}

Maps from ClinicalUseDefinition

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

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

conceptmap "ClinicalUseDefinitionType" {
  prefix s = "http://hl7.org/fhir/4.3/clinical-use-definition-type"
  prefix t = "http://hl7.org/fhir/clinical-use-definition-type"

  s:indication - t:indication
  s:contraindication - t:contraindication
  s:interaction - t:interaction
  s:"undesirable-effect" - t:"undesirable-effect"
  s:warning - t:warning
}

uses "http://hl7.org/fhir/4.3/StructureDefinition/ClinicalUseDefinition" alias ClinicalUseDefinitionR4B as source
uses "http://hl7.org/fhir/StructureDefinition/ClinicalUseDefinition" alias ClinicalUseDefinitionR5 as target

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

group ClinicalUseDefinition(source src : ClinicalUseDefinitionR4B, target tgt : ClinicalUseDefinitionR5) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.type as v -> tgt.type = translate(v, '#ClinicalUseDefinitionType', 'code');
  src.category -> tgt.category;
  src.subject -> tgt.subject;
  src.status -> tgt.status;
  src.contraindication as s -> tgt.contraindication as t then ClinicalUseDefinitionContraindication(s, t);
  src.indication as s -> tgt.indication as t then ClinicalUseDefinitionIndication(s, t);
  src.interaction as s -> tgt.interaction as t then ClinicalUseDefinitionInteraction(s, t);
  src.population -> tgt.population;
  src.undesirableEffect as s -> tgt.undesirableEffect as t then ClinicalUseDefinitionUndesirableEffect(s, t); // src.library -> tgt.library;
  src.warning as s -> tgt.warning as t then ClinicalUseDefinitionWarning(s, t);
}

group ClinicalUseDefinitionContraindication(source src, target tgt) extends BackboneElement {
  src.diseaseSymptomProcedure -> tgt.diseaseSymptomProcedure;
  src.diseaseStatus -> tgt.diseaseStatus;
  src.comorbidity -> tgt.comorbidity;
  src.indication -> tgt.indication;
  src.otherTherapy as s -> tgt.otherTherapy as t then ClinicalUseDefinitionContraindicationOtherTherapy(s, t); // src.applicability -> tgt.applicability;
}

group ClinicalUseDefinitionContraindicationOtherTherapy(source src, target tgt) extends BackboneElement {
  src.relationshipType -> tgt.relationshipType;
  src.therapy -> tgt.treatment;
}

group ClinicalUseDefinitionIndication(source src, target tgt) extends BackboneElement {
  src.diseaseSymptomProcedure -> tgt.diseaseSymptomProcedure;
  src.diseaseStatus -> tgt.diseaseStatus;
  src.comorbidity -> tgt.comorbidity;
  src.intendedEffect -> tgt.intendedEffect;
  src.duration : Range -> tgt.duration;
  src.duration : string -> tgt.duration;
  src.undesirableEffect -> tgt.undesirableEffect;
}

group ClinicalUseDefinitionInteraction(source src, target tgt) extends BackboneElement {
  src.interactant as s -> tgt.interactant as t then ClinicalUseDefinitionInteractionInteractant(s, t);
  src.type -> tgt.type;
  src.effect -> tgt.effect;
  src.incidence -> tgt.incidence;
  src.management -> tgt.management;
}

group ClinicalUseDefinitionInteractionInteractant(source src, target tgt) extends BackboneElement {
  src.item : Reference -> tgt.item;
  src.item : CodeableConcept -> tgt.item;
}

group ClinicalUseDefinitionUndesirableEffect(source src, target tgt) extends BackboneElement {
  src.symptomConditionEffect -> tgt.symptomConditionEffect;
  src.classification -> tgt.classification;
  src.frequencyOfOccurrence -> tgt.frequencyOfOccurrence;
}

group ClinicalUseDefinitionWarning(source src, target tgt) extends BackboneElement {
  src.description -> tgt.description;
  src.code -> tgt.code;
}