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

FHIR Infrastructure 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 ExampleScenario

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

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

conceptmap "ExampleScenarioActorType" {
  prefix s = "http://hl7.org/fhir/examplescenario-actor-type"
  prefix t = "http://hl7.org/fhir/4.0/examplescenario-actor-type"

  s:person - t:person
  s:system - t:entity
}

conceptmap "PublicationStatus" {
  prefix s = "http://hl7.org/fhir/publication-status"
  prefix t = "http://hl7.org/fhir/4.0/publication-status"

  s:draft - t:draft
  s:active - t:active
  s:retired - t:retired
  s:unknown - t:unknown
}

uses "http://hl7.org/fhir/StructureDefinition/ExampleScenario" alias ExampleScenarioR5 as source
uses "http://hl7.org/fhir/4.0/StructureDefinition/ExampleScenario" alias ExampleScenarioR4 as target

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

group ExampleScenario(source src : ExampleScenarioR5, target tgt : ExampleScenarioR4) extends DomainResource <<type+>> {
  src.url -> tgt.url;
  src.identifier -> tgt.identifier;
  src.version -> tgt.version;
  src.name -> tgt.name; // src.versionAlgorithm : string -> tgt.versionAlgorithm;
  src.status as v -> tgt.status = translate(v, '#PublicationStatus', 'code'); // src.title -> tgt.title;
  src.experimental -> tgt.experimental;
  src.date -> tgt.date;
  src.publisher -> tgt.publisher;
  src.contact -> tgt.contact;
  src.useContext -> tgt.useContext; // src.description -> tgt.description;
  src.jurisdiction -> tgt.jurisdiction;
  src.purpose -> tgt.purpose;
  src.copyright -> tgt.copyright;
  src.actor as s -> tgt.actor as t then ExampleScenarioActor(s, t); // src.copyrightLabel -> tgt.copyrightLabel;
  src.instance as s -> tgt.instance as t then ExampleScenarioInstance(s, t);
  src.process as s -> tgt.process as t then ExampleScenarioProcess(s, t);
}

group ExampleScenarioActor(source src, target tgt) extends BackboneElement {
  src.key -> tgt.actorId;
  src.type as v -> tgt.type = translate(v, '#ExampleScenarioActorType', 'code');
  src.title -> tgt.name;
  src.description -> tgt.description;
}

group ExampleScenarioInstance(source src, target tgt) extends BackboneElement {
  src.key -> tgt.resourceId;
  src.structureType as s -> tgt then {
    s.code -> tgt.resourceType;
  };
  src.version as s -> tgt.version as t then ExampleScenarioInstanceVersion(s, t);
  src.title -> tgt.name; // src.structureProfile : canonical -> tgt.structureProfile;
  src.description -> tgt.description;
  src.containedInstance as s -> tgt.containedInstance as t then ExampleScenarioInstanceContainedInstance(s, t); // src.content -> tgt.content;
}

group ExampleScenarioInstanceVersion(source src, target tgt) extends BackboneElement {
  src.key -> tgt.versionId;
  src.description -> tgt.description; // src.title -> tgt.title;
}

group ExampleScenarioInstanceContainedInstance(source src, target tgt) extends BackboneElement {
  src.instanceReference -> tgt.resourceId;
  src.versionReference -> tgt.versionId;
}

group ExampleScenarioProcess(source src, target tgt) extends BackboneElement {
  src.title -> tgt.title;
  src.description -> tgt.description;
  src.preConditions -> tgt.preConditions;
  src.postConditions -> tgt.postConditions;
  src.step as s -> tgt.step as t then ExampleScenarioProcessStep(s, t);
}

group ExampleScenarioProcessStep(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then ExampleScenarioProcessStepOperation(s, t); // src.number -> tgt.number;
  src.alternative as s -> tgt.alternative as t then ExampleScenarioProcessStepAlternative(s, t);
  src.pause -> tgt.pause;
}

group ExampleScenarioProcessStepOperation(source src, target tgt) extends BackboneElement {
  src.title -> tgt.type; // src.type -> tgt.type;
  src.initiator -> tgt.initiator;
  src.receiver -> tgt.receiver;
  src.description -> tgt.description;
  src.initiatorActive -> tgt.initiatorActive;
  src.receiverActive -> tgt.receiverActive;
}

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

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

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

conceptmap "ExampleScenarioActorType" {
  prefix s = "http://hl7.org/fhir/examplescenario-actor-type"
  prefix t = "http://hl7.org/fhir/4.3/examplescenario-actor-type"

  s:person - t:person
  s:system - t:entity
}

conceptmap "PublicationStatus" {
  prefix s = "http://hl7.org/fhir/publication-status"
  prefix t = "http://hl7.org/fhir/4.3/publication-status"

  s:draft - t:draft
  s:active - t:active
  s:retired - t:retired
  s:unknown - t:unknown
}

uses "http://hl7.org/fhir/StructureDefinition/ExampleScenario" alias ExampleScenarioR5 as source
uses "http://hl7.org/fhir/4.3/StructureDefinition/ExampleScenario" alias ExampleScenarioR4B as target

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

group ExampleScenario(source src : ExampleScenarioR5, target tgt : ExampleScenarioR4B) extends DomainResource <<type+>> {
  src.url -> tgt.url;
  src.identifier -> tgt.identifier;
  src.version -> tgt.version;
  src.name -> tgt.name; // src.versionAlgorithm : string -> tgt.versionAlgorithm;
  src.status as v -> tgt.status = translate(v, '#PublicationStatus', 'code'); // src.title -> tgt.title;
  src.experimental -> tgt.experimental;
  src.date -> tgt.date;
  src.publisher -> tgt.publisher;
  src.contact -> tgt.contact;
  src.useContext -> tgt.useContext; // src.description -> tgt.description;
  src.jurisdiction -> tgt.jurisdiction;
  src.purpose -> tgt.purpose;
  src.copyright -> tgt.copyright;
  src.actor as s -> tgt.actor as t then ExampleScenarioActor(s, t); // src.copyrightLabel -> tgt.copyrightLabel;
  src.instance as s -> tgt.instance as t then ExampleScenarioInstance(s, t);
  src.process as s -> tgt.process as t then ExampleScenarioProcess(s, t);
}

group ExampleScenarioActor(source src, target tgt) extends BackboneElement {
  src.key -> tgt.actorId;
  src.type as v -> tgt.type = translate(v, '#ExampleScenarioActorType', 'code');
  src.title -> tgt.name;
  src.description -> tgt.description;
}

group ExampleScenarioInstance(source src, target tgt) extends BackboneElement {
  src.key -> tgt.resourceId;
  src.structureType as s -> tgt then {
    s.code -> tgt.resourceType;
  };
  src.version as s -> tgt.version as t then ExampleScenarioInstanceVersion(s, t);
  src.title -> tgt.name; // src.structureProfile : canonical -> tgt.structureProfile;
  src.description -> tgt.description;
  src.containedInstance as s -> tgt.containedInstance as t then ExampleScenarioInstanceContainedInstance(s, t); // src.content -> tgt.content;
}

group ExampleScenarioInstanceVersion(source src, target tgt) extends BackboneElement {
  src.key -> tgt.versionId;
  src.description -> tgt.description; // src.title -> tgt.title;
}

group ExampleScenarioInstanceContainedInstance(source src, target tgt) extends BackboneElement {
  src.instanceReference -> tgt.resourceId;
  src.versionReference -> tgt.versionId;
}

group ExampleScenarioProcess(source src, target tgt) extends BackboneElement {
  src.title -> tgt.title;
  src.description -> tgt.description;
  src.preConditions -> tgt.preConditions;
  src.postConditions -> tgt.postConditions;
  src.step as s -> tgt.step as t then ExampleScenarioProcessStep(s, t);
}

group ExampleScenarioProcessStep(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then ExampleScenarioProcessStepOperation(s, t); // src.number -> tgt.number;
  src.alternative as s -> tgt.alternative as t then ExampleScenarioProcessStepAlternative(s, t);
  src.pause -> tgt.pause;
}

group ExampleScenarioProcessStepOperation(source src, target tgt) extends BackboneElement {
  src.title -> tgt.type; // src.type -> tgt.type;
  src.initiator -> tgt.initiator;
  src.receiver -> tgt.receiver;
  src.description -> tgt.description;
  src.initiatorActive -> tgt.initiatorActive;
  src.receiverActive -> tgt.receiverActive;
}

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

Maps from ExampleScenario

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

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

conceptmap "ExampleScenarioActorType" {
  prefix s = "http://hl7.org/fhir/4.3/examplescenario-actor-type"
  prefix t = "http://hl7.org/fhir/examplescenario-actor-type"

  s:person - t:person
  s:entity - t:system
}

conceptmap "PublicationStatus" {
  prefix s = "http://hl7.org/fhir/4.3/publication-status"
  prefix t = "http://hl7.org/fhir/publication-status"

  s:draft - t:draft
  s:active - t:active
  s:retired - t:retired
  s:unknown - t:unknown
}

uses "http://hl7.org/fhir/4.3/StructureDefinition/ExampleScenario" alias ExampleScenarioR4B as source
uses "http://hl7.org/fhir/StructureDefinition/ExampleScenario" alias ExampleScenarioR5 as target

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

group ExampleScenario(source src : ExampleScenarioR4B, target tgt : ExampleScenarioR5) extends DomainResource <<type+>> {
  src.url -> tgt.url;
  src.identifier -> tgt.identifier;
  src.version -> tgt.version;
  src.name -> tgt.name; // src.versionAlgorithm : string -> tgt.versionAlgorithm;
  src.status as v -> tgt.status = translate(v, '#PublicationStatus', 'code'); // src.title -> tgt.title;
  src.experimental -> tgt.experimental;
  src.date -> tgt.date;
  src.publisher -> tgt.publisher;
  src.contact -> tgt.contact;
  src.useContext -> tgt.useContext; // src.description -> tgt.description;
  src.jurisdiction -> tgt.jurisdiction;
  src.purpose -> tgt.purpose;
  src.copyright -> tgt.copyright;
  src.actor as s -> tgt.actor as t then ExampleScenarioActor(s, t); // src.copyrightLabel -> tgt.copyrightLabel;
  src.instance as s -> tgt.instance as t then ExampleScenarioInstance(s, t);
  src.process as s -> tgt.process as t then ExampleScenarioProcess(s, t);
}

group ExampleScenarioActor(source src, target tgt) extends BackboneElement {
  src.actorId -> tgt.key;
  src.type as v -> tgt.type = translate(v, '#ExampleScenarioActorType', 'code');
  src.name -> tgt.title;
  src.description -> tgt.description;
}

group ExampleScenarioInstance(source src, target tgt) extends BackboneElement {
  src.resourceId -> tgt.key;
  src.resourceType as s ->  tgt.structureType = create('Coding') as t,  t.system = 'http://hl7.org/fhir/fhir-types',  t.code = s;
  src.version as s -> tgt.version as t then ExampleScenarioInstanceVersion(s, t);
  src.name -> tgt.title; // src.structureProfile : canonical -> tgt.structureProfile;
  src.description -> tgt.description;
  src.containedInstance as s -> tgt.containedInstance as t then ExampleScenarioInstanceContainedInstance(s, t); // src.content -> tgt.content;
}

group ExampleScenarioInstanceVersion(source src, target tgt) extends BackboneElement {
  src.versionId -> tgt.key;
  src.description -> tgt.description; // src.title -> tgt.title;
}

group ExampleScenarioInstanceContainedInstance(source src, target tgt) extends BackboneElement {
  src.resourceId -> tgt.instanceReference;
  src.versionId -> tgt.versionReference;
}

group ExampleScenarioProcess(source src, target tgt) extends BackboneElement {
  src.title -> tgt.title;
  src.description -> tgt.description;
  src.preConditions -> tgt.preConditions;
  src.postConditions -> tgt.postConditions;
  src.step as s -> tgt.step as t then ExampleScenarioProcessStep(s, t);
}

group ExampleScenarioProcessStep(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then ExampleScenarioProcessStepOperation(s, t); // src.number -> tgt.number;
  src.alternative as s -> tgt.alternative as t then ExampleScenarioProcessStepAlternative(s, t);
  src.pause -> tgt.pause;
}

group ExampleScenarioProcessStepOperation(source src, target tgt) extends BackboneElement {
  src.type -> tgt.title; // src.type -> tgt.type;
  src.initiator -> tgt.initiator;
  src.receiver -> tgt.receiver;
  src.description -> tgt.description;
  src.initiatorActive -> tgt.initiatorActive;
  src.receiverActive -> tgt.receiverActive;
}

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

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

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

conceptmap "ExampleScenarioActorType" {
  prefix s = "http://hl7.org/fhir/4.0/examplescenario-actor-type"
  prefix t = "http://hl7.org/fhir/examplescenario-actor-type"

  s:person - t:person
  s:entity - t:system
}

conceptmap "PublicationStatus" {
  prefix s = "http://hl7.org/fhir/4.0/publication-status"
  prefix t = "http://hl7.org/fhir/publication-status"

  s:draft - t:draft
  s:active - t:active
  s:retired - t:retired
  s:unknown - t:unknown
}

uses "http://hl7.org/fhir/4.0/StructureDefinition/ExampleScenario" alias ExampleScenarioR4 as source
uses "http://hl7.org/fhir/StructureDefinition/ExampleScenario" alias ExampleScenarioR5 as target

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

group ExampleScenario(source src : ExampleScenarioR4, target tgt : ExampleScenarioR5) extends DomainResource <<type+>> {
  src.url -> tgt.url;
  src.identifier -> tgt.identifier;
  src.version -> tgt.version;
  src.name -> tgt.name; // src.versionAlgorithm : string -> tgt.versionAlgorithm;
  src.status as v -> tgt.status = translate(v, '#PublicationStatus', 'code'); // src.title -> tgt.title;
  src.experimental -> tgt.experimental;
  src.date -> tgt.date;
  src.publisher -> tgt.publisher;
  src.contact -> tgt.contact;
  src.useContext -> tgt.useContext; // src.description -> tgt.description;
  src.jurisdiction -> tgt.jurisdiction;
  src.purpose -> tgt.purpose;
  src.copyright -> tgt.copyright;
  src.actor as s -> tgt.actor as t then ExampleScenarioActor(s, t); // src.copyrightLabel -> tgt.copyrightLabel;
  src.instance as s -> tgt.instance as t then ExampleScenarioInstance(s, t);
  src.process as s -> tgt.process as t then ExampleScenarioProcess(s, t);
}

group ExampleScenarioActor(source src, target tgt) extends BackboneElement {
  src.actorId -> tgt.key;
  src.type as v -> tgt.type = translate(v, '#ExampleScenarioActorType', 'code');
  src.name -> tgt.title;
  src.description -> tgt.description;
}

group ExampleScenarioInstance(source src, target tgt) extends BackboneElement {
  src.resourceId -> tgt.key;
  src.resourceType as s ->  tgt.structureType = create('Coding') as t,  t.system = 'http://hl7.org/fhir/fhir-types',  t.code = s;
  src.version as s -> tgt.version as t then ExampleScenarioInstanceVersion(s, t);
  src.name -> tgt.title; // src.structureProfile : canonical -> tgt.structureProfile;
  src.description -> tgt.description;
  src.containedInstance as s -> tgt.containedInstance as t then ExampleScenarioInstanceContainedInstance(s, t); // src.content -> tgt.content;
}

group ExampleScenarioInstanceVersion(source src, target tgt) extends BackboneElement {
  src.versionId -> tgt.key;
  src.description -> tgt.description; // src.title -> tgt.title;
}

group ExampleScenarioInstanceContainedInstance(source src, target tgt) extends BackboneElement {
  src.resourceId -> tgt.instanceReference;
  src.versionId -> tgt.versionReference;
}

group ExampleScenarioProcess(source src, target tgt) extends BackboneElement {
  src.title -> tgt.title;
  src.description -> tgt.description;
  src.preConditions -> tgt.preConditions;
  src.postConditions -> tgt.postConditions;
  src.step as s -> tgt.step as t then ExampleScenarioProcessStep(s, t);
}

group ExampleScenarioProcessStep(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then ExampleScenarioProcessStepOperation(s, t); // src.number -> tgt.number;
  src.alternative as s -> tgt.alternative as t then ExampleScenarioProcessStepAlternative(s, t);
  src.pause -> tgt.pause;
}

group ExampleScenarioProcessStepOperation(source src, target tgt) extends BackboneElement {
  src.type -> tgt.title; // src.type -> tgt.type;
  src.initiator -> tgt.initiator;
  src.receiver -> tgt.receiver;
  src.description -> tgt.description;
  src.initiatorActive -> tgt.initiatorActive;
  src.receiverActive -> tgt.receiverActive;
}

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