FHIR Release 3 (STU)

This page is part of the FHIR Specification (v3.0.2: STU 3). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3

FHIR Infrastructure Work GroupMaturity Level: N/ABallot Status: InformativeCompartments: Not linked to any defined compartments

R2 : R3 Converson maps for TestScript.

Functional status for this map: 6 tests that all execute ok. 6 fail round-trip testing and 6 r3 resources are invalid (11 errors). (see documentation)

map "http://hl7.org/fhir/StructureMap/TestScript2to3" = "R2 to R3 Conversions for TestScript"

uses "http://hl7.org/fhir/DSTU2/StructureDefinition/TestScript" alias TestScriptR2 as source
uses "http://hl7.org/fhir/StructureDefinition/TestScript" alias TestScript as target

imports "http://hl7.org/fhir/StructureMap/primitives2to3"
imports "http://hl7.org/fhir/StructureMap/DomainResource2to3"
imports "http://hl7.org/fhir/StructureMap/ContactPoint2to3"
imports "http://hl7.org/fhir/StructureMap/Identifier2to3"
imports "http://hl7.org/fhir/StructureMap/Reference2to3"

group for type+types  TestScript extends DomainResource
  input src : TestScriptR2 as source
  input tgt : TestScript as target

  "TestScript-url" : for src.url make tgt.url
  "TestScript-version" : for src.version make tgt.version
  "TestScript-name" : for src.name make tgt.name
  "TestScript-status" : for src.status make tgt.status
  "TestScript-identifier" : for src.identifier make tgt.identifier
  "TestScript-experimental" : for src.experimental make tgt.experimental
  "TestScript-publisher" : for src.publisher make tgt.publisher
  "TestScript-contact" : for src.contact as vs0 make tgt.contact as vt0 then {
    "ContactDetail-name" : for vs0.name make vt0.name
    "ContactDetail-telecom" : for vs0.telecom make vt0.telecom
  }

  "TestScript-date" : for src.date make tgt.date
  "TestScript-metadata" : for src.metadata as vs0 make tgt.metadata as vt0
  "TestScript-fixture" : for src.fixture as vs0 make tgt.fixture as vt0 then {
    "TestScript.fixture-autocreate" : for vs0.autocreate make vt0.autocreate
    "TestScript.fixture-autodelete" : for vs0.autodelete make vt0.autodelete
    "TestScript.fixture-resource" : for vs0.resource make vt0.resource
  }

  "TestScript-profile" : for src.profile make tgt.profile
  "TestScript-variable" : for src.variable as vs0 make tgt.variable as vt0 then {
    "TestScript.variable-name" : for vs0.name make vt0.name
    "TestScript.variable-headerField" : for vs0.headerField make vt0.headerField
    "TestScript.variable-path" : for vs0.path make vt0.path
    "TestScript.variable-sourceId" : for vs0.sourceId make vt0.sourceId
  }

  "TestScript-setup" : for src.setup as vs0 make tgt.setup as vt0
  "TestScript-test" : for src.test as vs0 make tgt.test as vt0 then {
    "TestScript.test-name" : for vs0.name make vt0.name
    "TestScript.test-description" : for vs0.description make vt0.description
  }

  "TestScript-teardown" : for src.teardown as vs0 make tgt.teardown as vt0

endgroup

map "http://hl7.org/fhir/StructureMap/TestScript3to2" = "R3 to R2 Conversion for TestScript"

uses "http://hl7.org/fhir/StructureDefinition/TestScript" alias TestScript as source
uses "http://hl7.org/fhir/DSTU2/StructureDefinition/TestScript" alias TestScriptR2 as target

imports "http://hl7.org/fhir/StructureMap/primitives3to2"
imports "http://hl7.org/fhir/StructureMap/DomainResource3to2"
imports "http://hl7.org/fhir/StructureMap/ContactPoint3to2"
imports "http://hl7.org/fhir/StructureMap/Identifier3to2"
imports "http://hl7.org/fhir/StructureMap/Reference3to2"
imports "http://hl7.org/fhir/StructureMap/CodeableConcept3to2"

group for type+types  TestScript extends DomainResource
  input src : TestScript as source
  input tgt : TestScriptR2 as target

  "TestScript-url" : for src.url make tgt.url
  "TestScript-version" : for src.version make tgt.version
  "TestScript-name" : for src.name make tgt.name
  "TestScript-status" : for src.status make tgt.status
  "TestScript-identifier" : for src.identifier make tgt.identifier
  "TestScript-experimental" : for src.experimental make tgt.experimental
  "TestScript-publisher" : for src.publisher make tgt.publisher
  "TestScript-contact" : for src.contact as vs0 make tgt.contact as vt0 then {
    "TestScript.contact-name" : for vs0.name make vt0.name
    "TestScript.contact-telecom" : for vs0.telecom make vt0.telecom
  }

  "TestScript-date" : for src.date make tgt.date
  "TestScript-useContext" : for src.jurisdiction make tgt.useContext
  "TestScript-metadata" : for src.metadata as vs0 make tgt.metadata as vt0
  "TestScript-fixture" : for src.fixture as vs0 make tgt.fixture as vt0 then {
    "TestScript.fixture-autocreate" : for vs0.autocreate make vt0.autocreate
    "TestScript.fixture-autodelete" : for vs0.autodelete make vt0.autodelete
    "TestScript.fixture-resource" : for vs0.resource make vt0.resource
  }

  "TestScript-profile" : for src.profile make tgt.profile
  "TestScript-variable" : for src.variable as vs0 make tgt.variable as vt0 then {
    "TestScript.variable-name" : for vs0.name make vt0.name
    "TestScript.variable-headerField" : for vs0.headerField make vt0.headerField
    "TestScript.variable-path" : for vs0.path make vt0.path
    "TestScript.variable-sourceId" : for vs0.sourceId make vt0.sourceId
  }

  "TestScript-setup" : for src.setup as vs0 make tgt.setup as vt0
  "TestScript-test" : for src.test as vs0 make tgt.test as vt0 then {
    "TestScript.test-name" : for vs0.name make vt0.name
    "TestScript.test-description" : for vs0.description make vt0.description
  }

  "TestScript-teardown" : for src.teardown as vs0 make tgt.teardown as vt0

endgroup

example
  • ERROR @ TestScript.test: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test.action': minimum required = 1, but only found 0 (src = InstanceValidator)
multiserver
  • ERROR @ TestScript.test[1]: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test[1].action': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ TestScript.test[2]: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test[2].action': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ TestScript.test[3]: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test[3].action': minimum required = 1, but only found 0 (src = InstanceValidator)
history
  • ERROR @ TestScript.test: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test.action': minimum required = 1, but only found 0 (src = InstanceValidator)
ReadTestScript
  • ERROR @ TestScript.test[1]: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test[1].action': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ TestScript.test[2]: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test[2].action': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ TestScript.test[3]: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test[3].action': minimum required = 1, but only found 0 (src = InstanceValidator)
  • ERROR @ TestScript.test[4]: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test[4].action': minimum required = 1, but only found 0 (src = InstanceValidator)
search
  • ERROR @ TestScript.test: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test.action': minimum required = 1, but only found 0 (src = InstanceValidator)
update
  • ERROR @ TestScript.test: Profile http://hl7.org/fhir/StructureDefinition/TestScript, Element 'TestScript.test.action': minimum required = 1, but only found 0 (src = InstanceValidator)