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

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 TestReport

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

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

conceptmap "TestReportActionResult" {
  prefix s = "http://hl7.org/fhir/report-action-result-codes"
  prefix t = "http://hl7.org/fhir/4.0/report-action-result-codes"

  s:pass - t:pass
  s:skip - t:skip
  s:fail - t:fail
  s:warning - t:warning
  s:error - t:error
}

conceptmap "TestReportParticipantType" {
  prefix s = "http://hl7.org/fhir/report-participant-type"
  prefix t = "http://hl7.org/fhir/4.0/report-participant-type"

  s:"test-engine" - t:"test-engine"
  s:client - t:client
  s:server - t:server
}

conceptmap "TestReportResult" {
  prefix s = "http://hl7.org/fhir/report-result-codes"
  prefix t = "http://hl7.org/fhir/4.0/report-result-codes"

  s:pass - t:pass
  s:fail - t:fail
  s:pending - t:pending
}

conceptmap "TestReportStatus" {
  prefix s = "http://hl7.org/fhir/report-status-codes"
  prefix t = "http://hl7.org/fhir/4.0/report-status-codes"

  s:completed - t:completed
  s:"in-progress" - t:"in-progress"
  s:waiting - t:waiting
  s:stopped - t:stopped
  s:"entered-in-error" - t:"entered-in-error"
}

uses "http://hl7.org/fhir/StructureDefinition/TestReport" alias TestReportR5 as source
uses "http://hl7.org/fhir/4.0/StructureDefinition/TestReport" alias TestReportR4 as target

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

group TestReport(source src : TestReportR5, target tgt : TestReportR4) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.name -> tgt.name;
  src.status as v -> tgt.status = translate(v, '#TestReportStatus', 'code');
  src.testScript -> tgt.testScript;
  src.result as v -> tgt.result = translate(v, '#TestReportResult', 'code');
  src.score -> tgt.score;
  src.tester -> tgt.tester;
  src.issued -> tgt.issued;
  src.participant as s -> tgt.participant as t then TestReportParticipant(s, t);
  src.setup as s -> tgt.setup as t then TestReportSetup(s, t);
  src.test as s -> tgt.test as t then TestReportTest(s, t);
  src.teardown as s -> tgt.teardown as t then TestReportTeardown(s, t);
}

group TestReportParticipant(source src, target tgt) extends BackboneElement {
  src.type as v -> tgt.type = translate(v, '#TestReportParticipantType', 'code');
  src.uri -> tgt.uri;
  src.display -> tgt.display;
}

group TestReportSetup(source src, target tgt) extends BackboneElement {
  src.action as s -> tgt.action as t then TestReportSetupAction(s, t);
}

group TestReportSetupAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
  src.assert as s -> tgt.assert as t then TestReportSetupActionAssert(s, t);
}

group TestReportSetupActionOperation(source src, target tgt) extends BackboneElement {
  src.result as v -> tgt.result = translate(v, '#TestReportActionResult', 'code');
  src.message -> tgt.message;
  src.detail -> tgt.detail;
}

group TestReportSetupActionAssert(source src, target tgt) extends BackboneElement {
  src.result as v -> tgt.result = translate(v, '#TestReportActionResult', 'code');
  src.message -> tgt.message;
  src.detail -> tgt.detail;
}

// group TestReportSetupActionAssertRequirement(source src, target tgt) extends BackboneElement {
// src.link : uri -> tgt.link;
// src.link : canonical -> tgt.link;
// }
group TestReportTest(source src, target tgt) extends BackboneElement {
  src.name -> tgt.name;
  src.description -> tgt.description;
  src.action as s -> tgt.action as t then TestReportTestAction(s, t);
}

group TestReportTestAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
  src.assert as s -> tgt.assert as t then TestReportSetupActionAssert(s, t);
}

group TestReportTeardown(source src, target tgt) extends BackboneElement {
  src.action as s -> tgt.action as t then TestReportTeardownAction(s, t);
}

group TestReportTeardownAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
}

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

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

conceptmap "TestReportActionResult" {
  prefix s = "http://hl7.org/fhir/report-action-result-codes"
  prefix t = "http://hl7.org/fhir/4.3/report-action-result-codes"

  s:pass - t:pass
  s:skip - t:skip
  s:fail - t:fail
  s:warning - t:warning
  s:error - t:error
}

conceptmap "TestReportParticipantType" {
  prefix s = "http://hl7.org/fhir/report-participant-type"
  prefix t = "http://hl7.org/fhir/4.3/report-participant-type"

  s:"test-engine" - t:"test-engine"
  s:client - t:client
  s:server - t:server
}

conceptmap "TestReportResult" {
  prefix s = "http://hl7.org/fhir/report-result-codes"
  prefix t = "http://hl7.org/fhir/4.3/report-result-codes"

  s:pass - t:pass
  s:fail - t:fail
  s:pending - t:pending
}

conceptmap "TestReportStatus" {
  prefix s = "http://hl7.org/fhir/report-status-codes"
  prefix t = "http://hl7.org/fhir/4.3/report-status-codes"

  s:completed - t:completed
  s:"in-progress" - t:"in-progress"
  s:waiting - t:waiting
  s:stopped - t:stopped
  s:"entered-in-error" - t:"entered-in-error"
}

uses "http://hl7.org/fhir/StructureDefinition/TestReport" alias TestReportR5 as source
uses "http://hl7.org/fhir/4.3/StructureDefinition/TestReport" alias TestReportR4B as target

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

group TestReport(source src : TestReportR5, target tgt : TestReportR4B) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.name -> tgt.name;
  src.status as v -> tgt.status = translate(v, '#TestReportStatus', 'code');
  src.testScript -> tgt.testScript;
  src.result as v -> tgt.result = translate(v, '#TestReportResult', 'code');
  src.score -> tgt.score;
  src.tester -> tgt.tester;
  src.issued -> tgt.issued;
  src.participant as s -> tgt.participant as t then TestReportParticipant(s, t);
  src.setup as s -> tgt.setup as t then TestReportSetup(s, t);
  src.test as s -> tgt.test as t then TestReportTest(s, t);
  src.teardown as s -> tgt.teardown as t then TestReportTeardown(s, t);
}

group TestReportParticipant(source src, target tgt) extends BackboneElement {
  src.type as v -> tgt.type = translate(v, '#TestReportParticipantType', 'code');
  src.uri -> tgt.uri;
  src.display -> tgt.display;
}

group TestReportSetup(source src, target tgt) extends BackboneElement {
  src.action as s -> tgt.action as t then TestReportSetupAction(s, t);
}

group TestReportSetupAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
  src.assert as s -> tgt.assert as t then TestReportSetupActionAssert(s, t);
}

group TestReportSetupActionOperation(source src, target tgt) extends BackboneElement {
  src.result as v -> tgt.result = translate(v, '#TestReportActionResult', 'code');
  src.message -> tgt.message;
  src.detail -> tgt.detail;
}

group TestReportSetupActionAssert(source src, target tgt) extends BackboneElement {
  src.result as v -> tgt.result = translate(v, '#TestReportActionResult', 'code');
  src.message -> tgt.message;
  src.detail -> tgt.detail;
}

// group TestReportSetupActionAssertRequirement(source src, target tgt) extends BackboneElement {
// src.link : uri -> tgt.link;
// src.link : canonical -> tgt.link;
// }
group TestReportTest(source src, target tgt) extends BackboneElement {
  src.name -> tgt.name;
  src.description -> tgt.description;
  src.action as s -> tgt.action as t then TestReportTestAction(s, t);
}

group TestReportTestAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
  src.assert as s -> tgt.assert as t then TestReportSetupActionAssert(s, t);
}

group TestReportTeardown(source src, target tgt) extends BackboneElement {
  src.action as s -> tgt.action as t then TestReportTeardownAction(s, t);
}

group TestReportTeardownAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
}

Maps from TestReport

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

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

conceptmap "TestReportActionResult" {
  prefix s = "http://hl7.org/fhir/4.3/report-action-result-codes"
  prefix t = "http://hl7.org/fhir/report-action-result-codes"

  s:pass - t:pass
  s:skip - t:skip
  s:fail - t:fail
  s:warning - t:warning
  s:error - t:error
}

conceptmap "TestReportParticipantType" {
  prefix s = "http://hl7.org/fhir/4.3/report-participant-type"
  prefix t = "http://hl7.org/fhir/report-participant-type"

  s:"test-engine" - t:"test-engine"
  s:client - t:client
  s:server - t:server
}

conceptmap "TestReportResult" {
  prefix s = "http://hl7.org/fhir/4.3/report-result-codes"
  prefix t = "http://hl7.org/fhir/report-result-codes"

  s:pass - t:pass
  s:fail - t:fail
  s:pending - t:pending
}

conceptmap "TestReportStatus" {
  prefix s = "http://hl7.org/fhir/4.3/report-status-codes"
  prefix t = "http://hl7.org/fhir/report-status-codes"

  s:completed - t:completed
  s:"in-progress" - t:"in-progress"
  s:waiting - t:waiting
  s:stopped - t:stopped
  s:"entered-in-error" - t:"entered-in-error"
}

uses "http://hl7.org/fhir/4.3/StructureDefinition/TestReport" alias TestReportR4B as source
uses "http://hl7.org/fhir/StructureDefinition/TestReport" alias TestReportR5 as target

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

group TestReport(source src : TestReportR4B, target tgt : TestReportR5) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.name -> tgt.name;
  src.status as v -> tgt.status = translate(v, '#TestReportStatus', 'code');
  src.testScript -> tgt.testScript;
  src.result as v -> tgt.result = translate(v, '#TestReportResult', 'code');
  src.score -> tgt.score;
  src.tester -> tgt.tester;
  src.issued -> tgt.issued;
  src.participant as s -> tgt.participant as t then TestReportParticipant(s, t);
  src.setup as s -> tgt.setup as t then TestReportSetup(s, t);
  src.test as s -> tgt.test as t then TestReportTest(s, t);
  src.teardown as s -> tgt.teardown as t then TestReportTeardown(s, t);
}

group TestReportParticipant(source src, target tgt) extends BackboneElement {
  src.type as v -> tgt.type = translate(v, '#TestReportParticipantType', 'code');
  src.uri -> tgt.uri;
  src.display -> tgt.display;
}

group TestReportSetup(source src, target tgt) extends BackboneElement {
  src.action as s -> tgt.action as t then TestReportSetupAction(s, t);
}

group TestReportSetupAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
  src.assert as s -> tgt.assert as t then TestReportSetupActionAssert(s, t);
}

group TestReportSetupActionOperation(source src, target tgt) extends BackboneElement {
  src.result as v -> tgt.result = translate(v, '#TestReportActionResult', 'code');
  src.message -> tgt.message;
  src.detail -> tgt.detail;
}

group TestReportSetupActionAssert(source src, target tgt) extends BackboneElement {
  src.result as v -> tgt.result = translate(v, '#TestReportActionResult', 'code');
  src.message -> tgt.message;
  src.detail -> tgt.detail;
}

// group TestReportSetupActionAssertRequirement(source src, target tgt) extends BackboneElement {
// src.link : uri -> tgt.link;
// src.link : canonical -> tgt.link;
// }
group TestReportTest(source src, target tgt) extends BackboneElement {
  src.name -> tgt.name;
  src.description -> tgt.description;
  src.action as s -> tgt.action as t then TestReportTestAction(s, t);
}

group TestReportTestAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
  src.assert as s -> tgt.assert as t then TestReportSetupActionAssert(s, t);
}

group TestReportTeardown(source src, target tgt) extends BackboneElement {
  src.action as s -> tgt.action as t then TestReportTeardownAction(s, t);
}

group TestReportTeardownAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
}

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

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

conceptmap "TestReportActionResult" {
  prefix s = "http://hl7.org/fhir/4.0/report-action-result-codes"
  prefix t = "http://hl7.org/fhir/report-action-result-codes"

  s:pass - t:pass
  s:skip - t:skip
  s:fail - t:fail
  s:warning - t:warning
  s:error - t:error
}

conceptmap "TestReportParticipantType" {
  prefix s = "http://hl7.org/fhir/4.0/report-participant-type"
  prefix t = "http://hl7.org/fhir/report-participant-type"

  s:"test-engine" - t:"test-engine"
  s:client - t:client
  s:server - t:server
}

conceptmap "TestReportResult" {
  prefix s = "http://hl7.org/fhir/4.0/report-result-codes"
  prefix t = "http://hl7.org/fhir/report-result-codes"

  s:pass - t:pass
  s:fail - t:fail
  s:pending - t:pending
}

conceptmap "TestReportStatus" {
  prefix s = "http://hl7.org/fhir/4.0/report-status-codes"
  prefix t = "http://hl7.org/fhir/report-status-codes"

  s:completed - t:completed
  s:"in-progress" - t:"in-progress"
  s:waiting - t:waiting
  s:stopped - t:stopped
  s:"entered-in-error" - t:"entered-in-error"
}

uses "http://hl7.org/fhir/4.0/StructureDefinition/TestReport" alias TestReportR4 as source
uses "http://hl7.org/fhir/StructureDefinition/TestReport" alias TestReportR5 as target

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

group TestReport(source src : TestReportR4, target tgt : TestReportR5) extends DomainResource <<type+>> {
  src.identifier -> tgt.identifier;
  src.name -> tgt.name;
  src.status as v -> tgt.status = translate(v, '#TestReportStatus', 'code');
  src.testScript -> tgt.testScript;
  src.result as v -> tgt.result = translate(v, '#TestReportResult', 'code');
  src.score -> tgt.score;
  src.tester -> tgt.tester;
  src.issued -> tgt.issued;
  src.participant as s -> tgt.participant as t then TestReportParticipant(s, t);
  src.setup as s -> tgt.setup as t then TestReportSetup(s, t);
  src.test as s -> tgt.test as t then TestReportTest(s, t);
  src.teardown as s -> tgt.teardown as t then TestReportTeardown(s, t);
}

group TestReportParticipant(source src, target tgt) extends BackboneElement {
  src.type as v -> tgt.type = translate(v, '#TestReportParticipantType', 'code');
  src.uri -> tgt.uri;
  src.display -> tgt.display;
}

group TestReportSetup(source src, target tgt) extends BackboneElement {
  src.action as s -> tgt.action as t then TestReportSetupAction(s, t);
}

group TestReportSetupAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
  src.assert as s -> tgt.assert as t then TestReportSetupActionAssert(s, t);
}

group TestReportSetupActionOperation(source src, target tgt) extends BackboneElement {
  src.result as v -> tgt.result = translate(v, '#TestReportActionResult', 'code');
  src.message -> tgt.message;
  src.detail -> tgt.detail;
}

group TestReportSetupActionAssert(source src, target tgt) extends BackboneElement {
  src.result as v -> tgt.result = translate(v, '#TestReportActionResult', 'code');
  src.message -> tgt.message;
  src.detail -> tgt.detail;
}

// group TestReportSetupActionAssertRequirement(source src, target tgt) extends BackboneElement {
// src.link : uri -> tgt.link;
// src.link : canonical -> tgt.link;
// }
group TestReportTest(source src, target tgt) extends BackboneElement {
  src.name -> tgt.name;
  src.description -> tgt.description;
  src.action as s -> tgt.action as t then TestReportTestAction(s, t);
}

group TestReportTestAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
  src.assert as s -> tgt.assert as t then TestReportSetupActionAssert(s, t);
}

group TestReportTeardown(source src, target tgt) extends BackboneElement {
  src.action as s -> tgt.action as t then TestReportTeardownAction(s, t);
}

group TestReportTeardownAction(source src, target tgt) extends BackboneElement {
  src.operation as s -> tgt.operation as t then TestReportSetupActionOperation(s, t);
}