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

Security 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 Provenance

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

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

conceptmap "ProvenanceEntityRole" {
  prefix s = "http://hl7.org/fhir/provenance-entity-role"
  prefix t = "http://hl7.org/fhir/4.0/provenance-entity-role"

  s:revision - t:revision
  s:quotation - t:quotation
  s:source - t:source
  s:removal - t:removal
}

uses "http://hl7.org/fhir/StructureDefinition/Provenance" alias ProvenanceR5 as source
uses "http://hl7.org/fhir/4.0/StructureDefinition/Provenance" alias ProvenanceR4 as target

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

group Provenance(source src : ProvenanceR5, target tgt : ProvenanceR4) extends DomainResource <<type+>> {
  src.target -> tgt.target;
  src.occurred : Period -> tgt.occurred;
  src.occurred : dateTime -> tgt.occurred;
  src.recorded -> tgt.recorded;
  src.policy -> tgt.policy;
  src.location -> tgt.location;
  src.activity -> tgt.activity; // src.authorization -> tgt.authorization;
  src.agent as s -> tgt.agent as t then ProvenanceAgent(s, t); // src.basedOn -> tgt.basedOn;
  src.entity as s -> tgt.entity as t then ProvenanceEntity(s, t);
  src.signature -> tgt.signature;
}

group ProvenanceAgent(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.role -> tgt.role;
  src.who -> tgt.who;
  src.onBehalfOf -> tgt.onBehalfOf;
}

group ProvenanceEntity(source src, target tgt) extends BackboneElement {
  src.role as v -> tgt.role = translate(v, '#ProvenanceEntityRole', 'code');
  src.what -> tgt.what;
}

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

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

conceptmap "ProvenanceEntityRole" {
  prefix s = "http://hl7.org/fhir/provenance-entity-role"
  prefix t = "http://hl7.org/fhir/4.3/provenance-entity-role"

  s:revision - t:revision
  s:quotation - t:quotation
  s:source - t:source
  s:removal - t:removal
}

uses "http://hl7.org/fhir/StructureDefinition/Provenance" alias ProvenanceR5 as source
uses "http://hl7.org/fhir/4.3/StructureDefinition/Provenance" alias ProvenanceR4B as target

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

group Provenance(source src : ProvenanceR5, target tgt : ProvenanceR4B) extends DomainResource <<type+>> {
  src.target -> tgt.target;
  src.occurred : Period -> tgt.occurred;
  src.occurred : dateTime -> tgt.occurred;
  src.recorded -> tgt.recorded;
  src.policy -> tgt.policy;
  src.location -> tgt.location;
  src.activity -> tgt.activity; // src.authorization -> tgt.authorization;
  src.agent as s -> tgt.agent as t then ProvenanceAgent(s, t); // src.basedOn -> tgt.basedOn;
  src.entity as s -> tgt.entity as t then ProvenanceEntity(s, t);
  src.signature -> tgt.signature;
}

group ProvenanceAgent(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.role -> tgt.role;
  src.who -> tgt.who;
  src.onBehalfOf -> tgt.onBehalfOf;
}

group ProvenanceEntity(source src, target tgt) extends BackboneElement {
  src.role as v -> tgt.role = translate(v, '#ProvenanceEntityRole', 'code');
  src.what -> tgt.what;
}

Maps from Provenance

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

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

conceptmap "ProvenanceEntityRole" {
  prefix s = "http://hl7.org/fhir/4.3/provenance-entity-role"
  prefix t = "http://hl7.org/fhir/provenance-entity-role"

  s:revision - t:revision
  s:quotation - t:quotation
  s:source - t:source
  s:removal - t:removal
}

uses "http://hl7.org/fhir/4.3/StructureDefinition/Provenance" alias ProvenanceR4B as source
uses "http://hl7.org/fhir/StructureDefinition/Provenance" alias ProvenanceR5 as target

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

group Provenance(source src : ProvenanceR4B, target tgt : ProvenanceR5) extends DomainResource <<type+>> {
  src.target -> tgt.target;
  src.occurred : Period -> tgt.occurred;
  src.occurred : dateTime -> tgt.occurred;
  src.recorded -> tgt.recorded;
  src.policy -> tgt.policy;
  src.location -> tgt.location;
  src.activity -> tgt.activity; // src.authorization -> tgt.authorization;
  src.agent as s -> tgt.agent as t then ProvenanceAgent(s, t); // src.basedOn -> tgt.basedOn;
  src.entity as s -> tgt.entity as t then ProvenanceEntity(s, t);
  src.signature -> tgt.signature;
}

group ProvenanceAgent(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.role -> tgt.role;
  src.who -> tgt.who;
  src.onBehalfOf -> tgt.onBehalfOf;
}

group ProvenanceEntity(source src, target tgt) extends BackboneElement {
  src.role as v -> tgt.role = translate(v, '#ProvenanceEntityRole', 'code');
  src.what -> tgt.what;
}

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

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

conceptmap "ProvenanceEntityRole" {
  prefix s = "http://hl7.org/fhir/4.0/provenance-entity-role"
  prefix t = "http://hl7.org/fhir/provenance-entity-role"

  s:revision - t:revision
  s:quotation - t:quotation
  s:source - t:source
  s:removal - t:removal
}

uses "http://hl7.org/fhir/4.0/StructureDefinition/Provenance" alias ProvenanceR4 as source
uses "http://hl7.org/fhir/StructureDefinition/Provenance" alias ProvenanceR5 as target

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

group Provenance(source src : ProvenanceR4, target tgt : ProvenanceR5) extends DomainResource <<type+>> {
  src.target -> tgt.target;
  src.occurred : Period -> tgt.occurred;
  src.occurred : dateTime -> tgt.occurred;
  src.recorded -> tgt.recorded;
  src.policy -> tgt.policy;
  src.location -> tgt.location;
  src.activity -> tgt.activity; // src.authorization -> tgt.authorization;
  src.agent as s -> tgt.agent as t then ProvenanceAgent(s, t); // src.basedOn -> tgt.basedOn;
  src.entity as s -> tgt.entity as t then ProvenanceEntity(s, t);
  src.signature -> tgt.signature;
}

group ProvenanceAgent(source src, target tgt) extends BackboneElement {
  src.type -> tgt.type;
  src.role -> tgt.role;
  src.who -> tgt.who;
  src.onBehalfOf -> tgt.onBehalfOf;
}

group ProvenanceEntity(source src, target tgt) extends BackboneElement {
  src.role as v -> tgt.role = translate(v, '#ProvenanceEntityRole', 'code');
  src.what -> tgt.what;
}