Current Build
FHIR Infrastructure Work GroupMaturity Level: N/ABallot Status: Informative Compartments: Not linked to any defined compartments

R3 : R4 Conversion maps for ExampleScenario.

Functional status for this map: Not Mapped (see documentation)

map "http://hl7.org/fhir/StructureMap/ExampleScenario3to4" = "R3 to R4 Conversions for ExampleScenario"


uses "http://hl7.org/fhir/3.0/StructureDefinition/ExampleScenario" alias ExampleScenarioR3 as source
uses "http://hl7.org/fhir/StructureDefinition/ExampleScenario" alias ExampleScenario as target

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



group ExampleScenario extends DomainResource
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.url": for src.url make tgt.url
  "ExampleScenario.identifier": for src.identifier make tgt.identifier
  "ExampleScenario.version": for src.version make tgt.version
  "ExampleScenario.name": for src.name make tgt.name
  "ExampleScenario.status": for src.status make tgt.status
  "ExampleScenario.experimental": for src.experimental make tgt.experimental
  "ExampleScenario.date": for src.date make tgt.date
  "ExampleScenario.publisher": for src.publisher make tgt.publisher
  "ExampleScenario.contact": for src.contact make tgt.contact
  "ExampleScenario.useContext": for src.useContext make tgt.useContext
  "ExampleScenario.jurisdiction": for src.jurisdiction make tgt.jurisdiction
  "ExampleScenario.copyright": for src.copyright make tgt.copyright
  "ExampleScenario.purpose": for src.purpose make tgt.purpose
  "ExampleScenario.actor": for src.actor as s make tgt.actor as t then ExampleScenarioActor(s,t)
  "ExampleScenario.instance": for src.instance as s make tgt.instance as t then ExampleScenarioInstance(s,t)
  "ExampleScenario.process": for src.process as s make tgt.process as t then ExampleScenarioProcess(s,t)
  "ExampleScenario.workflow": for src.workflow make tgt.workflow
endgroup


group ExampleScenarioActor extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.actor.actorId": for src.actorId make tgt.actorId
  "ExampleScenario.actor.type": for src.type make tgt.type
  "ExampleScenario.actor.name": for src.name make tgt.name
  "ExampleScenario.actor.description": for src.description make tgt.description
endgroup


group ExampleScenarioInstance extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.instance.resourceId": for src.resourceId make tgt.resourceId
  "ExampleScenario.instance.resourceType": for src.resourceType make tgt.resourceType
  "ExampleScenario.instance.name": for src.name make tgt.name
  "ExampleScenario.instance.description": for src.description make tgt.description
  "ExampleScenario.instance.version": for src.version as s make tgt.version as t then ExampleScenarioInstanceVersion(s,t)
  "ExampleScenario.instance.containedInstance": for src.containedInstance as s make tgt.containedInstance as t then ExampleScenarioInstanceContainedInstance(s,t)
endgroup


group ExampleScenarioInstanceVersion extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.instance.version.versionId": for src.versionId make tgt.versionId
  "ExampleScenario.instance.version.description": for src.description make tgt.description
endgroup


group ExampleScenarioInstanceContainedInstance extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.instance.containedInstance.resourceId": for src.resourceId make tgt.resourceId
  "ExampleScenario.instance.containedInstance.versionId": for src.versionId make tgt.versionId
endgroup


group ExampleScenarioProcess extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.process.title": for src.title make tgt.title
  "ExampleScenario.process.description": for src.description make tgt.description
  "ExampleScenario.process.preConditions": for src.preConditions make tgt.preConditions
  "ExampleScenario.process.postConditions": for src.postConditions make tgt.postConditions
  "ExampleScenario.process.step": for src.step as s make tgt.step as t then ExampleScenarioProcessStep(s,t)
endgroup


group ExampleScenarioProcessStep extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.process.step.process": for src.process make tgt.process
  "ExampleScenario.process.step.pause": for src.pause make tgt.pause
  "ExampleScenario.process.step.operation": for src.operation as s make tgt.operation as t then ExampleScenarioProcessStepOperation(s,t)
  "ExampleScenario.process.step.alternative": for src.alternative as s make tgt.alternative as t then ExampleScenarioProcessStepAlternative(s,t)
endgroup


group ExampleScenarioProcessStepOperation extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.process.step.operation.number": for src.number make tgt.number
  "ExampleScenario.process.step.operation.type": for src.type make tgt.type
  "ExampleScenario.process.step.operation.name": for src.name make tgt.name
  "ExampleScenario.process.step.operation.initiator": for src.initiator make tgt.initiator
  "ExampleScenario.process.step.operation.receiver": for src.receiver make tgt.receiver
  "ExampleScenario.process.step.operation.description": for src.description make tgt.description
  "ExampleScenario.process.step.operation.initiatorActive": for src.initiatorActive make tgt.initiatorActive
  "ExampleScenario.process.step.operation.receiverActive": for src.receiverActive make tgt.receiverActive
  "ExampleScenario.process.step.operation.request": for src.request make tgt.request
  "ExampleScenario.process.step.operation.response": for src.response make tgt.response
endgroup


group ExampleScenarioProcessStepAlternative extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.process.step.alternative.name": for src.name make tgt.name
  "ExampleScenario.process.step.alternative.option": for src.option as s make tgt.option as t then ExampleScenarioProcessStepAlternativeOption(s,t)
endgroup


group ExampleScenarioProcessStepAlternativeOption extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.process.step.alternative.option.description": for src.description make tgt.description
  "ExampleScenario.process.step.alternative.option.step": for src.step make tgt.step
  "ExampleScenario.process.step.alternative.option.pause": for src.pause make tgt.pause
endgroup


map "http://hl7.org/fhir/StructureMap/ExampleScenario4to3" = "R4 to R3 Conversion for ExampleScenario"


uses "http://hl7.org/fhir/StructureDefinition/ExampleScenario" alias ExampleScenario as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/ExampleScenario" alias ExampleScenarioR3 as target

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



group ExampleScenario extends DomainResource
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.url": for src.url make tgt.url
  "ExampleScenario.identifier": for src.identifier make tgt.identifier
  "ExampleScenario.version": for src.version make tgt.version
  "ExampleScenario.name": for src.name make tgt.name
  "ExampleScenario.status": for src.status make tgt.status
  "ExampleScenario.experimental": for src.experimental make tgt.experimental
  "ExampleScenario.date": for src.date make tgt.date
  "ExampleScenario.publisher": for src.publisher make tgt.publisher
  "ExampleScenario.contact": for src.contact make tgt.contact
  "ExampleScenario.useContext": for src.useContext make tgt.useContext
  "ExampleScenario.jurisdiction": for src.jurisdiction make tgt.jurisdiction
  "ExampleScenario.copyright": for src.copyright make tgt.copyright
  "ExampleScenario.purpose": for src.purpose make tgt.purpose
  "ExampleScenario.actor": for src.actor as s make tgt.actor as t then ExampleScenarioActor(s,t)
  "ExampleScenario.instance": for src.instance as s make tgt.instance as t then ExampleScenarioInstance(s,t)
  "ExampleScenario.process": for src.process as s make tgt.process as t then ExampleScenarioProcess(s,t)
  "ExampleScenario.workflow": for src.workflow make tgt.workflow
endgroup

group ExampleScenarioActor extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.actor.actorId": for src.actorId make tgt.actorId
  "ExampleScenario.actor.type": for src.type make tgt.type
  "ExampleScenario.actor.name": for src.name make tgt.name
  "ExampleScenario.actor.description": for src.description make tgt.description
endgroup

group ExampleScenarioInstance extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.instance.resourceId": for src.resourceId make tgt.resourceId
  "ExampleScenario.instance.resourceType": for src.resourceType make tgt.resourceType
  "ExampleScenario.instance.name": for src.name make tgt.name
  "ExampleScenario.instance.description": for src.description make tgt.description
  "ExampleScenario.instance.version": for src.version as s make tgt.version as t then ExampleScenarioInstanceVersion(s,t)
  "ExampleScenario.instance.containedInstance": for src.containedInstance as s make tgt.containedInstance as t then ExampleScenarioInstanceContainedInstance(s,t)
endgroup

group ExampleScenarioInstanceVersion extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.instance.version.versionId": for src.versionId make tgt.versionId
  "ExampleScenario.instance.version.description": for src.description make tgt.description
endgroup

group ExampleScenarioInstanceContainedInstance extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.instance.containedInstance.resourceId": for src.resourceId make tgt.resourceId
  "ExampleScenario.instance.containedInstance.versionId": for src.versionId make tgt.versionId
endgroup

group ExampleScenarioProcess extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.process.title": for src.title make tgt.title
  "ExampleScenario.process.description": for src.description make tgt.description
  "ExampleScenario.process.preConditions": for src.preConditions make tgt.preConditions
  "ExampleScenario.process.postConditions": for src.postConditions make tgt.postConditions
  "ExampleScenario.process.step": for src.step as s make tgt.step as t then ExampleScenarioProcessStep(s,t)
endgroup

group ExampleScenarioProcessStep extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.process.step.process": for src.process make tgt.process
  "ExampleScenario.process.step.pause": for src.pause make tgt.pause
  "ExampleScenario.process.step.operation": for src.operation as s make tgt.operation as t then ExampleScenarioProcessStepOperation(s,t)
  "ExampleScenario.process.step.alternative": for src.alternative as s make tgt.alternative as t then ExampleScenarioProcessStepAlternative(s,t)
endgroup

group ExampleScenarioProcessStepOperation extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.process.step.operation.number": for src.number make tgt.number
  "ExampleScenario.process.step.operation.type": for src.type make tgt.type
  "ExampleScenario.process.step.operation.name": for src.name make tgt.name
  "ExampleScenario.process.step.operation.initiator": for src.initiator make tgt.initiator
  "ExampleScenario.process.step.operation.receiver": for src.receiver make tgt.receiver
  "ExampleScenario.process.step.operation.description": for src.description make tgt.description
  "ExampleScenario.process.step.operation.initiatorActive": for src.initiatorActive make tgt.initiatorActive
  "ExampleScenario.process.step.operation.receiverActive": for src.receiverActive make tgt.receiverActive
  "ExampleScenario.process.step.operation.request": for src.request make tgt.request
  "ExampleScenario.process.step.operation.response": for src.response make tgt.response
endgroup

group ExampleScenarioProcessStepAlternative extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.process.step.alternative.name": for src.name make tgt.name
  "ExampleScenario.process.step.alternative.option": for src.option as s make tgt.option as t then ExampleScenarioProcessStepAlternativeOption(s,t)
endgroup

group ExampleScenarioProcessStepAlternativeOption extends BackboneElement
  input src : ExampleScenarioR3 as source
  input tgt : ExampleScenario as target

  "ExampleScenario.process.step.alternative.option.description": for src.description make tgt.description
  "ExampleScenario.process.step.alternative.option.step": for src.step make tgt.step
  "ExampleScenario.process.step.alternative.option.pause": for src.pause make tgt.pause
endgroup

n/a