TestScript4to5
type: StructureMap
node role: treeRoot
id:
  v: TestScript4to5
text:
  status:
    v: generated
  div: /// url = 'http://hl7.org/fhir/StructureMap/TestScript4to5' /// name = 'TestScript4to5' /// title = 'TestScript Transforms: R4 to R5' /// status = 'active' uses "http://hl7.org/fhir/4.0/TestScript" alias TestScriptR4 as source uses "http://hl7.org/fhir/5.0/TestScript" alias TestScriptR5 as target imports "http://hl7.org/fhir/StructureMap/*4to5" group TestScript(source src : TestScriptR4, target tgt : TestScriptR5) extends DomainResource <<type+>> { src.url -> tgt.url; src.identifier -> tgt.identifier; src.version -> tgt.version; src.name -> tgt.name; src.title -> tgt.title; src.status as v -> tgt.status = translate(v, 'http://hl7.org/fhir/ConceptMap/TestScript.status-R4toR5', 'code'); src.experimental -> tgt.experimental; src.date -> tgt.date; src.publisher -> tgt.publisher; src.contact -> tgt.contact; src.description -> tgt.description; src.useContext -> tgt.useContext; src.jurisdiction -> tgt.jurisdiction; src.purpose -> tgt.purpose; src.copyright -> tgt.copyright; src.origin as s -> tgt.origin as t then TestScriptOrigin(s, t); src.destination as s -> tgt.destination as t then TestScriptDestination(s, t); src.metadata as s -> tgt.metadata as t then TestScriptMetadata(s, t); src.fixture as s -> tgt.fixture as t then TestScriptFixture(s, t); src.profile -> tgt.profile; src.variable as s -> tgt.variable as t then TestScriptVariable(s, t); src.setup as s -> tgt.setup as t then TestScriptSetup(s, t); src.test as s -> tgt.test as t then TestScriptTest(s, t); src.teardown as s -> tgt.teardown as t then TestScriptTeardown(s, t); } group TestScriptOrigin(source src, target tgt) extends BackboneElement { src.index -> tgt.index; src.profile -> tgt.profile; } group TestScriptDestination(source src, target tgt) extends BackboneElement { src.index -> tgt.index; src.profile -> tgt.profile; } group TestScriptMetadata(source src, target tgt) extends BackboneElement { src.link as s -> tgt.link as t then TestScriptMetadataLink(s, t); src.capability as s -> tgt.capability as t then T…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  value:
    v: fhir
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
  value:
    v: 1
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
      value:
        v: http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver
        link: http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value:
    v: draft
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
      value:
        v: http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver
        link: http://hl7.org/fhir/extensions/ImplementationGuide/hl7.fhir.uv.xver
url:
  v: http://hl7.org/fhir/StructureMap/TestScript4to5
version:
  v: 0.1.0
name:
  v: TestScript4to5
title:
  v: TestScript Transforms: R4 to R5
status:
  v: active
date:
  v: 2024-02-22T03:16:50+00:00
publisher:
  v: HL7 International / FHIR Infrastructure
contact:
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: TestScriptTransformsR4toR5
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
structure:
  url:
    v: http://hl7.org/fhir/4.0/TestScript
    link: http://hl7.org/fhir/4.0/TestScript
  mode:
    v: source
  alias:
    v: TestScriptR4
structure:
  url:
    v: http://hl7.org/fhir/5.0/TestScript
    link: http://hl7.org/fhir/5.0/TestScript
  mode:
    v: target
  alias:
    v: TestScriptR5
import:
  v: http://hl7.org/fhir/StructureMap/*4to5
  link: http://hl7.org/fhir/StructureMap/*4to5
group:
  name:
    v: TestScript
  extends:
    v: DomainResource
  type mode:
    v: type-and-types
  input:
    name:
      v: src
    type:
      v: TestScriptR4
    mode:
      v: source
  input:
    name:
      v: tgt
    type:
      v: TestScriptR5
    mode:
      v: target
  rule:
    name:
      v: url
    source:
      context:
        v: src
      element:
        v: url
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: url
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
  rule:
    name:
      v: identifier
    source:
      context:
        v: src
      element:
        v: identifier
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: identifier
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
  rule:
    name:
      v: version
    source:
      context:
        v: src
      element:
        v: version
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: version
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
  rule:
    name:
      v: name
    source:
      context:
        v: src
      element:
        v: name
      variable:
        v: vvv
    target:
      context:
        v: tgt
      element:
        v: name
      variable:
        v: vvv
      transform:
        v: create
    dependent:
      name:
        v: DefaultMappingGroupAnonymousAlias
  rule:
    name:
      v: title
    source:
      context:
        v: src
      element:
        v: title
      variable:
        v: vvv
    target:
      context:
        v: tgt

v: vvv

v: vvv

v: vvv

v: vvv

v: vvv

v: vvv

v: vvv

v: vvv

v: title

v: vvv

v: create

name:
  v: DefaultMappingGroupAnonymousAlias
parameter:
  value:
    v: vvv
parameter:
  value:
    v: vvv

name:
  v: status
source:
  context:
    v: src
  element:
    v: status
  variable:
    v: v
target:
  context:
    v: tgt
  element:
    v: status
  transform:
    v: translate
  parameter:
    value:
      v: v
  parameter:
    value:
      v: http://hl7.org/fhir/ConceptMap/TestScript.status-R4toR5
  parameter:
    value:
      v: code

name:
  v: experimental
source:
  context:
    v: src
  element:
    v: experimental
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: experimental
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: date
source:
  context:
    v: src
  element:
    v: date
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: date
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: publisher
source:
  context:
    v: src
  element:
    v: publisher
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: publisher
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: contact
source:
  context:
    v: src
  element:
    v: contact
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: contact
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: description
source:
  context:
    v: src
  element:
    v: description
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: description
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: useContext
source:
  context:
    v: src
  element:
    v: useContext
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: useContext
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: jurisdiction
source:
  context:
    v: src
  element:
    v: jurisdiction
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: jurisdiction
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: purpose
source:
  context:
    v: src
  element:
    v: purpose
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: purpose
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: copyright
source:
  context:
    v: src
  element:
    v: copyright
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: copyright
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: origin
source:
  context:
    v: src
  element:
    v: origin
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: origin
  variable:
    v: t
dependent:
  name:
    v: TestScriptOrigin
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: destination
source:
  context:
    v: src
  element:
    v: destination
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: destination
  variable:
    v: t
dependent:
  name:
    v: TestScriptDestination
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: metadata
source:
  context:
    v: src
  element:
    v: metadata
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: metadata
  variable:
    v: t
dependent:
  name:
    v: TestScriptMetadata
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: fixture
source:
  context:
    v: src
  element:
    v: fixture
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: fixture
  variable:
    v: t
dependent:
  name:
    v: TestScriptFixture
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: profile
source:
  context:
    v: src
  element:
    v: profile
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: profile
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: variable
source:
  context:
    v: src
  element:
    v: variable
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: variable
  variable:
    v: t
dependent:
  name:
    v: TestScriptVariable
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: setup
source:
  context:
    v: src
  element:
    v: setup
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: setup
  variable:
    v: t
dependent:
  name:
    v: TestScriptSetup
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: test
source:
  context:
    v: src
  element:
    v: test
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: test
  variable:
    v: t
dependent:
  name:
    v: TestScriptTest
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: teardown
source:
  context:
    v: src
  element:
    v: teardown
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: teardown
  variable:
    v: t
dependent:
  name:
    v: TestScriptTeardown
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: TestScriptOrigin
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: index
  source:
    context:
      v: src
    element:
      v: index
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: index
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: profile
  source:
    context:
      v: src
    element:
      v: profile
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: profile
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv

name:
  v: TestScriptDestination
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: index
  source:
    context:
      v: src
    element:
      v: index
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: index
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: profile
  source:
    context:
      v: src
    element:
      v: profile
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: profile
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv

name:
  v: TestScriptMetadata
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: link
  source:
    context:
      v: src
    element:
      v: link
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: link
    variable:
      v: t
  dependent:
    name:
      v: TestScriptMetadataLink
    parameter:
      value:
        v: s
    parameter:
      value:
        v: t
rule:
  name:
    v: capability
  source:
    context:
      v: src
    element:
      v: capability
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: capability
    variable:
      v: t
  dependent:
    name:
      v: TestScriptMetadataCapability
    parameter:
      value:
        v: s
    parameter:
      value:
        v: t

name:
  v: TestScriptMetadataLink
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: url
  source:
    context:
      v: src
    element:
      v: url
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: url
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: description
  source:
    context:
      v: src
    element:
      v: description
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: description
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv

name:
  v: TestScriptMetadataCapability
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: required
  source:
    context:
      v: src
    element:
      v: required
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: required
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: validated
  source:
    context:
      v: src
    element:
      v: validated
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: validated
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: description
  source:
    context:
      v: src
    element:
      v: description
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: description
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: origin
  source:
    context:
      v: src
    element:
      v: origin
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: origin
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: destination
  source:
    context:
      v: src
    element:
      v: destination
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: destination
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: link
  source:
    context:
      v: src
    element:
      v: link
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: link
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: capabilities
  source:
    context:
      v: src
    element:
      v: capabilities
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: capabilities
    variable:
      v: vvv
    transform:
      v: create

name:
  v: DefaultMappingGroupAnonymousAlias
parameter:
  value:
    v: vvv
parameter:
  value:
    v: vvv

name:
  v: TestScriptFixture
extends:
  v: BackboneElement
documentation:
  v: group TestScriptScope(source src, target tgt) extends BackboneElement { src.artifact -> tgt.artifact; src.conformance -> tgt.conformance; src.phase -> tgt.phase; }
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: autocreate
  source:
    context:
      v: src
    element:
      v: autocreate
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: autocreate
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: autodelete
  source:
    context:
      v: src
    element:
      v: autodelete
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: autodelete
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: resource
  source:
    context:
      v: src
    element:
      v: resource
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: resource
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv

name:
  v: TestScriptVariable
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: name
  source:
    context:
      v: src
    element:
      v: name
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: name
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: defaultValue
  source:
    context:
      v: src
    element:
      v: defaultValue
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: defaultValue
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: description
  source:
    context:
      v: src
    element:
      v: description
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: description
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: expression
  source:
    context:
      v: src
    element:
      v: expression
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: expression
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: headerField
  source:
    context:
      v: src
    element:
      v: headerField
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: headerField
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: hint
  source:
    context:
      v: src
    element:
      v: hint
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: hint
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: path
  source:
    context:
      v: src
    element:
      v: path
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: path
    variable:
      v: vvv
    transform:
      v: create

name:
  v: DefaultMappingGroupAnonymousAlias
parameter:
  value:
    v: vvv
parameter:
  value:
    v: vvv

name:
  v: sourceId
source:
  context:
    v: src
  element:
    v: sourceId
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: sourceId
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: TestScriptSetup
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: action
  source:
    context:
      v: src
    element:
      v: action
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: action
    variable:
      v: t
  dependent:
    name:
      v: TestScriptSetupAction
    parameter:
      value:
        v: s
    parameter:
      value:
        v: t

name:
  v: TestScriptSetupAction
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: operation
  source:
    context:
      v: src
    element:
      v: operation
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: operation
    variable:
      v: t
  dependent:
    name:
      v: TestScriptSetupActionOperation
    parameter:
      value:
        v: s
    parameter:
      value:
        v: t
rule:
  name:
    v: assert
  source:
    context:
      v: src
    element:
      v: assert
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: assert
    variable:
      v: t
  dependent:
    name:
      v: TestScriptSetupActionAssert
    parameter:
      value:
        v: s
    parameter:
      value:
        v: t

name:
  v: TestScriptSetupActionOperation
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: type
  source:
    context:
      v: src
    element:
      v: type
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: type
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: resource
  source:
    context:
      v: src
    element:
      v: resource
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: resource
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: label
  source:
    context:
      v: src
    element:
      v: label
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: label
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: description
  source:
    context:
      v: src
    element:
      v: description
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: description
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: accept
  source:
    context:
      v: src
    element:
      v: accept
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: accept
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: contentType
  source:
    context:
      v: src
    element:
      v: contentType
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: contentType
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: destination
  source:
    context:
      v: src
    element:
      v: destination
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: destination
    variable:
      v: vvv
    transform:
      v: create

name:
  v: DefaultMappingGroupAnonymousAlias
parameter:
  value:
    v: vvv
parameter:
  value:
    v: vvv

name:
  v: encodeRequestUrl
source:
  context:
    v: src
  element:
    v: encodeRequestUrl
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: encodeRequestUrl
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: method
source:
  context:
    v: src
  element:
    v: method
  variable:
    v: v
target:
  context:
    v: tgt
  element:
    v: method
  transform:
    v: translate
  parameter:
    value:
      v: v
  parameter:
    value:
      v: http://hl7.org/fhir/ConceptMap/TestScript.setup.action.operation.method-R4toR5
  parameter:
    value:
      v: code

name:
  v: origin
source:
  context:
    v: src
  element:
    v: origin
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: origin
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: params
source:
  context:
    v: src
  element:
    v: params
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: params
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: requestHeader
source:
  context:
    v: src
  element:
    v: requestHeader
  variable:
    v: s
target:
  context:
    v: tgt
  element:
    v: requestHeader
  variable:
    v: t
dependent:
  name:
    v: TestScriptSetupActionOperationRequestHeader
  parameter:
    value:
      v: s
  parameter:
    value:
      v: t

name:
  v: requestId
source:
  context:
    v: src
  element:
    v: requestId
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: requestId
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: responseId
source:
  context:
    v: src
  element:
    v: responseId
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: responseId
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: sourceId
source:
  context:
    v: src
  element:
    v: sourceId
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: sourceId
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: targetId
source:
  context:
    v: src
  element:
    v: targetId
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: targetId
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: url
source:
  context:
    v: src
  element:
    v: url
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: url
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: TestScriptSetupActionOperationRequestHeader
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: field
  source:
    context:
      v: src
    element:
      v: field
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: field
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: value
  source:
    context:
      v: src
    element:
      v: value
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: value
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv

name:
  v: TestScriptSetupActionAssert
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: label
  source:
    context:
      v: src
    element:
      v: label
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: label
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: description
  source:
    context:
      v: src
    element:
      v: description
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: description
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: direction
  source:
    context:
      v: src
    element:
      v: direction
    variable:
      v: v
  target:
    context:
      v: tgt
    element:
      v: direction
    transform:
      v: translate
    parameter:
      value:
        v: v
    parameter:
      value:
        v: http://hl7.org/fhir/ConceptMap/TestScript.setup.action.assert.direction-R4toR5
    parameter:
      value:
        v: code
rule:
  name:
    v: compareToSourceId
  source:
    context:
      v: src
    element:
      v: compareToSourceId
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: compareToSourceId
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: compareToSourceExpression
  source:
    context:
      v: src
    element:
      v: compareToSourceExpression
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: compareToSourceExpression
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: compareToSourcePath
  source:
    context:
      v: src
    element:
      v: compareToSourcePath
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: compareToSourcePath
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: contentType
  source:
    context:
      v: src
    element:
      v: contentType
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: contentType
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias

value:
  v: vvv

value:
  v: vvv

name:
  v: expression
source:
  context:
    v: src
  element:
    v: expression
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: expression
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: headerField
source:
  context:
    v: src
  element:
    v: headerField
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: headerField
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: minimumId
source:
  context:
    v: src
  element:
    v: minimumId
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: minimumId
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: navigationLinks
source:
  context:
    v: src
  element:
    v: navigationLinks
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: navigationLinks
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: operator
source:
  context:
    v: src
  element:
    v: operator
  variable:
    v: v
target:
  context:
    v: tgt
  element:
    v: operator
  transform:
    v: translate
  parameter:
    value:
      v: v
  parameter:
    value:
      v: http://hl7.org/fhir/ConceptMap/TestScript.setup.action.assert.operator-R4toR5
  parameter:
    value:
      v: code

name:
  v: path
source:
  context:
    v: src
  element:
    v: path
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: path
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: requestMethod
source:
  context:
    v: src
  element:
    v: requestMethod
  variable:
    v: v
target:
  context:
    v: tgt
  element:
    v: requestMethod
  transform:
    v: translate
  parameter:
    value:
      v: v
  parameter:
    value:
      v: http://hl7.org/fhir/ConceptMap/TestScript.setup.action.assert.requestMethod-R4toR5
  parameter:
    value:
      v: code

name:
  v: requestURL
source:
  context:
    v: src
  element:
    v: requestURL
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: requestURL
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: resource
source:
  context:
    v: src
  element:
    v: resource
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: resource
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: response
source:
  context:
    v: src
  element:
    v: response
  variable:
    v: v
target:
  context:
    v: tgt
  element:
    v: response
  transform:
    v: translate
  parameter:
    value:
      v: v
  parameter:
    value:
      v: http://hl7.org/fhir/ConceptMap/TestScript.setup.action.assert.response-R4toR5
  parameter:
    value:
      v: code

name:
  v: responseCode
source:
  context:
    v: src
  element:
    v: responseCode
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: responseCode
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: sourceId
source:
  context:
    v: src
  element:
    v: sourceId
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: sourceId
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: validateProfileId
source:
  context:
    v: src
  element:
    v: validateProfileId
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: validateProfileId
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: value
source:
  context:
    v: src
  element:
    v: value
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: value
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: warningOnly
source:
  context:
    v: src
  element:
    v: warningOnly
  variable:
    v: vvv
target:
  context:
    v: tgt
  element:
    v: warningOnly
  variable:
    v: vvv
  transform:
    v: create
dependent:
  name:
    v: DefaultMappingGroupAnonymousAlias
  parameter:
    value:
      v: vvv
  parameter:
    value:
      v: vvv

name:
  v: TestScriptTest
extends:
  v: BackboneElement
documentation:
  v: group TestScriptSetupActionAssertRequirement(source src, target tgt) extends BackboneElement { src.link : uri -> tgt.link; src.link : canonical -> tgt.link; }
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: name
  source:
    context:
      v: src
    element:
      v: name
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: name
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: description
  source:
    context:
      v: src
    element:
      v: description
    variable:
      v: vvv
  target:
    context:
      v: tgt
    element:
      v: description
    variable:
      v: vvv
    transform:
      v: create
  dependent:
    name:
      v: DefaultMappingGroupAnonymousAlias
    parameter:
      value:
        v: vvv
    parameter:
      value:
        v: vvv
rule:
  name:
    v: action
  source:
    context:
      v: src
    element:
      v: action
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: action
    variable:
      v: t
  dependent:
    name:
      v: TestScriptTestAction
    parameter:
      value:
        v: s
    parameter:
      value:
        v: t

name:
  v: TestScriptTestAction
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: operation
  source:
    context:
      v: src
    element:
      v: operation
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: operation
    variable:
      v: t
  dependent:
    name:
      v: TestScriptSetupActionOperation
    parameter:
      value:
        v: s
    parameter:
      value:
        v: t
rule:
  name:
    v: assert
  source:
    context:
      v: src
    element:
      v: assert
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: assert
    variable:
      v: t
  dependent:
    name:
      v: TestScriptSetupActionAssert
    parameter:
      value:
        v: s
    parameter:
      value:
        v: t

name:
  v: TestScriptTeardown
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: action
  source:
    context:
      v: src
    element:
      v: action
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: action
    variable:
      v: t
  dependent:
    name:
      v: TestScriptTeardownAction
    parameter:
      value:
        v: s
    parameter:
      value:
        v: t

name:
  v: TestScriptTeardownAction
extends:
  v: BackboneElement
input:
  name:
    v: src
  mode:
    v: source
input:
  name:
    v: tgt
  mode:
    v: target
rule:
  name:
    v: operation
  source:
    context:
      v: src
    element:
      v: operation
    variable:
      v: s
  target:
    context:
      v: tgt
    element:
      v: operation
    variable:
      v: t
  dependent:
    name:
      v: TestScriptSetupActionOperation
    parameter:
      value:
        v: s
    parameter:
      value:
        v: t