FHIR Extensions Pack v5.1.0-snapshot1 (2024-03-12)

This page is part of the FHIR Core Extensions Registry (v5.1.0-snapshot1: Release 5.1) based on FHIR (HL7® FHIR® Standard) v5.0.0. The current version which supersedes this version is 1.0.0. For a full list of available versions, 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 MedicinalProductDefinition

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

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

uses "http://hl7.org/fhir/StructureDefinition/MedicinalProductDefinition" alias MedicinalProductDefinitionR5 as source
uses "http://hl7.org/fhir/4.0/StructureDefinition/MedicinalProduct" alias MedicinalProductR4 as target

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

group MedicinalProductDefinition(source src : MedicinalProductDefinitionR5, target tgt : MedicinalProductR4) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.type -> tgt.type;
  src.domain -> tgt.domain;
  src.combinedPharmaceuticalDoseForm -> tgt.combinedPharmaceuticalDoseForm; // src.version -> tgt.version;
  src.legalStatusOfSupply -> tgt.legalStatusOfSupply; // src.route -> tgt.route;
  src.additionalMonitoringIndicator -> tgt.additionalMonitoringIndicator;
  src.specialMeasures -> tgt.specialMeasures;
  src.pediatricUseIndicator -> tgt.paediatricUseIndicator;
  src.classification -> tgt.productClassification;
  src.marketingStatus -> tgt.marketingStatus;
  src.attachedDocument -> tgt.attachedDocument; // src.packagedMedicinalProduct -> tgt.packagedMedicinalProduct;
  src.masterFile -> tgt.masterFile;
  src.contact as s -> tgt.contact = s.contact;
  src.clinicalTrial -> tgt.clinicalTrial;
  src.name as s -> tgt.name as t then MedicinalProductDefinitionName(s, t); // src.code -> tgt.code;
  src.operation as s -> tgt.manufacturingBusinessOperation as t then MedicinalProductDefinitionOperation(s, t); // src.crossReference as s -> tgt.crossReference as t then MedicinalProductDefinitionCrossReference(s,t);
}

// group MedicinalProductDefinitionContact(source src, target tgt) extends BackboneElement {
// src.type -> tgt.type;
// src.contact -> tgt.contact;
// }
group MedicinalProductDefinitionName(source src, target tgt) extends BackboneElement {
  src.productName -> tgt.productName;
  src.part as s -> tgt.namePart as t then MedicinalProductDefinitionNamePart(s, t); // src.type -> tgt.type;
  src.usage as s -> tgt.countryLanguage as t then MedicinalProductDefinitionNameUsage(s, t);
}

group MedicinalProductDefinitionNamePart(source src, target tgt) extends BackboneElement {
  src.part -> tgt.part;
  src.type -> tgt.type;
}

group MedicinalProductDefinitionNameUsage(source src, target tgt) extends BackboneElement {
  src.country -> tgt.country;
  src.jurisdiction -> tgt.jurisdiction;
  src.language -> tgt.language;
}

// group MedicinalProductDefinitionCrossReference(source src, target tgt) extends BackboneElement {
// src.product -> tgt.product;
// src.type -> tgt.type;
// }
group MedicinalProductDefinitionOperation(source src, target tgt) extends BackboneElement {
  src.type -> tgt.operationType;
  src.effectiveDate : Period as s -> tgt.effectiveDate = s.start;
  src.organization -> tgt.manufacturer;
  src.confidentialityIndicator -> tgt.confidentialityIndicator;
}

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

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

uses "http://hl7.org/fhir/StructureDefinition/MedicinalProductDefinition" alias MedicinalProductDefinitionR5 as source
uses "http://hl7.org/fhir/4.3/StructureDefinition/MedicinalProductDefinition" alias MedicinalProductDefinitionR4B as target

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

group MedicinalProductDefinition(source src : MedicinalProductDefinitionR5, target tgt : MedicinalProductDefinitionR4B) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.type -> tgt.type;
  src.domain -> tgt.domain;
  src.version -> tgt.version;
  src.status -> tgt.status;
  src.statusDate -> tgt.statusDate;
  src.description -> tgt.description;
  src.combinedPharmaceuticalDoseForm -> tgt.combinedPharmaceuticalDoseForm;
  src.route -> tgt.route;
  src.indication -> tgt.indication;
  src.legalStatusOfSupply -> tgt.legalStatusOfSupply;
  src.additionalMonitoringIndicator -> tgt.additionalMonitoringIndicator;
  src.specialMeasures -> tgt.specialMeasures;
  src.pediatricUseIndicator -> tgt.pediatricUseIndicator;
  src.classification -> tgt.classification;
  src.marketingStatus -> tgt.marketingStatus;
  src.packagedMedicinalProduct -> tgt.packagedMedicinalProduct;
  src.ingredient -> tgt.ingredient; // src.comprisedOf -> tgt.comprisedOf;
  src.impurity -> tgt.impurity;
  src.attachedDocument -> tgt.attachedDocument;
  src.masterFile -> tgt.masterFile;
  src.contact as s -> tgt.contact as t then MedicinalProductDefinitionContact(s, t);
  src.clinicalTrial -> tgt.clinicalTrial;
  src.code -> tgt.code;
  src.name as s -> tgt.name as t then MedicinalProductDefinitionName(s, t);
  src.crossReference as s -> tgt.crossReference as t then MedicinalProductDefinitionCrossReference(s, t);
  src.operation as s -> tgt.operation as t then MedicinalProductDefinitionOperation(s, t);
  src.characteristic as s -> tgt.characteristic as t then MedicinalProductDefinitionCharacteristic(s, t);
}

group MedicinalProductDefinitionContact(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.contact -> tgt.contact;
}

group MedicinalProductDefinitionName(source src, target tgt) extends BackboneElement {
  src.productName -> tgt.productName;
  src.type -> tgt.type;
  src.part as s -> tgt.namePart as t then MedicinalProductDefinitionNamePart(s, t);
  src.usage as s -> tgt.countryLanguage as t then MedicinalProductDefinitionNameUsage(s, t);
}

group MedicinalProductDefinitionNamePart(source src, target tgt) extends BackboneElement {
  src.part -> tgt.part;
  src.type -> tgt.type;
}

group MedicinalProductDefinitionNameUsage(source src, target tgt) extends BackboneElement {
  src.country -> tgt.country;
  src.jurisdiction -> tgt.jurisdiction;
  src.language -> tgt.language;
}

group MedicinalProductDefinitionCrossReference(source src, target tgt) extends BackboneElement {
  src.product -> tgt.product;
  src.type -> tgt.type;
}

group MedicinalProductDefinitionOperation(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.effectiveDate -> tgt.effectiveDate;
  src.organization -> tgt.organization;
  src.confidentialityIndicator -> tgt.confidentialityIndicator;
}

group MedicinalProductDefinitionCharacteristic(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.value : CodeableConcept -> tgt.value;
  src.value : Quantity -> tgt.value; // src.value : markdown -> tgt.value;
  src.value : date -> tgt.value; // src.value : integer -> tgt.value;
  src.value : boolean -> tgt.value;
  src.value : Attachment -> tgt.value;
}

Maps from MedicinalProductDefinition

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

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

uses "http://hl7.org/fhir/4.3/StructureDefinition/MedicinalProductDefinition" alias MedicinalProductDefinitionR4B as source
uses "http://hl7.org/fhir/StructureDefinition/MedicinalProductDefinition" alias MedicinalProductDefinitionR5 as target

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

group MedicinalProductDefinition(source src : MedicinalProductDefinitionR4B, target tgt : MedicinalProductDefinitionR5) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.type -> tgt.type;
  src.domain -> tgt.domain;
  src.version -> tgt.version;
  src.status -> tgt.status;
  src.statusDate -> tgt.statusDate;
  src.description -> tgt.description;
  src.combinedPharmaceuticalDoseForm -> tgt.combinedPharmaceuticalDoseForm;
  src.route -> tgt.route;
  src.indication -> tgt.indication;
  src.legalStatusOfSupply -> tgt.legalStatusOfSupply;
  src.additionalMonitoringIndicator -> tgt.additionalMonitoringIndicator;
  src.specialMeasures -> tgt.specialMeasures;
  src.pediatricUseIndicator -> tgt.pediatricUseIndicator;
  src.classification -> tgt.classification;
  src.marketingStatus -> tgt.marketingStatus;
  src.packagedMedicinalProduct -> tgt.packagedMedicinalProduct;
  src.ingredient -> tgt.ingredient; // src.comprisedOf -> tgt.comprisedOf;
  src.impurity -> tgt.impurity;
  src.attachedDocument -> tgt.attachedDocument;
  src.masterFile -> tgt.masterFile;
  src.contact as s -> tgt.contact as t then MedicinalProductDefinitionContact(s, t);
  src.clinicalTrial -> tgt.clinicalTrial;
  src.code -> tgt.code;
  src.name as s -> tgt.name as t then MedicinalProductDefinitionName(s, t);
  src.crossReference as s -> tgt.crossReference as t then MedicinalProductDefinitionCrossReference(s, t);
  src.operation as s -> tgt.operation as t then MedicinalProductDefinitionOperation(s, t);
  src.characteristic as s -> tgt.characteristic as t then MedicinalProductDefinitionCharacteristic(s, t);
}

group MedicinalProductDefinitionContact(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.contact -> tgt.contact;
}

group MedicinalProductDefinitionName(source src, target tgt) extends BackboneElement {
  src.productName -> tgt.productName;
  src.type -> tgt.type;
  src.namePart as s -> tgt.part as t then MedicinalProductDefinitionNamePart(s, t);
  src.countryLanguage as s -> tgt.usage as t then MedicinalProductDefinitionNameUsage(s, t);
}

group MedicinalProductDefinitionNamePart(source src, target tgt) extends BackboneElement {
  src.part -> tgt.part;
  src.type -> tgt.type;
}

group MedicinalProductDefinitionNameUsage(source src, target tgt) extends BackboneElement {
  src.country -> tgt.country;
  src.jurisdiction -> tgt.jurisdiction;
  src.language -> tgt.language;
}

group MedicinalProductDefinitionCrossReference(source src, target tgt) extends BackboneElement {
  src.product -> tgt.product;
  src.type -> tgt.type;
}

group MedicinalProductDefinitionOperation(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.effectiveDate -> tgt.effectiveDate;
  src.organization -> tgt.organization;
  src.confidentialityIndicator -> tgt.confidentialityIndicator;
}

group MedicinalProductDefinitionCharacteristic(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.value : CodeableConcept -> tgt.value;
  src.value : Quantity -> tgt.value; // src.value : markdown -> tgt.value;
  src.value : date -> tgt.value; // src.value : integer -> tgt.value;
  src.value : boolean -> tgt.value;
  src.value : Attachment -> tgt.value;
}

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

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

uses "http://hl7.org/fhir/4.0/StructureDefinition/MedicinalProduct" alias MedicinalProductR4 as source
uses "http://hl7.org/fhir/StructureDefinition/MedicinalProductDefinition" alias MedicinalProductDefinitionR5 as target

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

group MedicinalProductDefinition(source src : MedicinalProductR4, target tgt : MedicinalProductDefinitionR5) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.type -> tgt.type;
  src.domain -> tgt.domain;
  src.combinedPharmaceuticalDoseForm -> tgt.combinedPharmaceuticalDoseForm; // src.version -> tgt.version;
  src.legalStatusOfSupply -> tgt.legalStatusOfSupply; // src.route -> tgt.route;
  src.additionalMonitoringIndicator -> tgt.additionalMonitoringIndicator;
  src.specialMeasures -> tgt.specialMeasures;
  src.paediatricUseIndicator -> tgt.pediatricUseIndicator;
  src.productClassification -> tgt.classification;
  src.marketingStatus -> tgt.marketingStatus;
  src.attachedDocument -> tgt.attachedDocument; // src.packagedMedicinalProduct -> tgt.packagedMedicinalProduct;
  src.masterFile -> tgt.masterFile;
  src.contact as s ->  tgt.contact as t,  t.contact = s;
  src.clinicalTrial -> tgt.clinicalTrial;
  src.name as s -> tgt.name as t then MedicinalProductDefinitionName(s, t); // src.code -> tgt.code;
  src.manufacturingBusinessOperation as s -> tgt.operation as t then MedicinalProductDefinitionOperation(s, t); // src.crossReference as s -> tgt.crossReference as t then MedicinalProductDefinitionCrossReference(s,t);
}

// group MedicinalProductDefinitionContact(source src, target tgt) extends BackboneElement {
// src.type -> tgt.type;
// src.contact -> tgt.contact;
// }
group MedicinalProductDefinitionName(source src, target tgt) extends BackboneElement {
  src.productName -> tgt.productName;
  src.namePart as s -> tgt.part as t then MedicinalProductDefinitionNamePart(s, t); // src.type -> tgt.type;
  src.countryLanguage as s -> tgt.usage as t then MedicinalProductDefinitionNameUsage(s, t);
}

group MedicinalProductDefinitionNamePart(source src, target tgt) extends BackboneElement {
  src.part -> tgt.part;
  src.type -> tgt.type;
}

group MedicinalProductDefinitionNameUsage(source src, target tgt) extends BackboneElement {
  src.country -> tgt.country;
  src.jurisdiction -> tgt.jurisdiction;
  src.language -> tgt.language;
}

// group MedicinalProductDefinitionCrossReference(source src, target tgt) extends BackboneElement {
// src.product -> tgt.product;
// src.type -> tgt.type;
// }
group MedicinalProductDefinitionOperation(source src, target tgt) extends BackboneElement {
  src.operationType -> tgt.type;
  src.effectiveDate : dateTime as s ->  tgt.effectiveDate as t,  t.start = s;
  src.manufacturer -> tgt.organization;
  src.confidentialityIndicator -> tgt.confidentialityIndicator;
}