profile-TestScript
type: StructureDefinition
node role: treeRoot
id:
  v: profile-TestScript
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition profile-TestScript Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> TestScript 0..* TestScript Describes a set of tests #xD; metadata #xD; capability #xD; capabilities #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:capabilities 0..1 uri R4: capabilities additional types URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.metadata.capability.capabilities #xD; setup #xD; action #xD; operation #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:method 0..1 code R4: delete | get | options | patch | post | put | head (new) URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.operation.method Binding: R4HttpOperationsForR3 (0.1.0) (required): The allowable request method or HTTP operation codes. #xD; resource #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:resource 0..1 code R4: resource URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.operation.resource Binding: R4DefinedTypesForR3 (0.1.0) (required): A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types. #xD; assert #xD; requestMethod #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:requestMethod 0..1 code R4: delete | get | options | patch | post | put | head URL: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.assert.requestMethod Binding: R4HttpOperationsForR3 (0.1.0) (required): The allowable request method or HTTP operation codes. #xD; resource #xD; Slices for extension 0..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:resource 0..1 code R4: resource URL: http://hl7.org/fhir/4.0/StructureDefinition/extension…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: fhir
extension:
  extension:
    url:
      v: packageId
      l: packageId
    value: Id
      v: hl7.fhir.uv.xver-r4.r3
  extension:
    url:
      v: version
      l: version
    value: String
      v: 0.1.0
  url:
    v: http://hl7.org/fhir/StructureDefinition/package-source
    l: package-source
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
    l: structuredefinition-fmm
  value: Integer
    v: 0
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3
        l: hl7.fhir.uv.xver-r4.r3
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: trial-use
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r4.r3
        l: hl7.fhir.uv.xver-r4.r3
url:
  v: http://hl7.org/fhir/4.0/StructureDefinition/profile-TestScript
  l: profile-TestScript
version:
  v: 0.1.0
name:
  v: Profile_R4_TestScript_R3
title:
  v: Cross-version Profile for R4.TestScript for use in FHIR STU3
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-17T16:03:29.9093466-05:00
publisher:
  v: FHIR Infrastructure
contact:
  name:
    v: FHIR Infrastructure
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: This cross-version profile allows R4 TestScript content to be represented via FHIR STU3 TestScript resources.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
    display:
      v: World
fhir version:
  v: 3.0.2
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/w5
    l: w5
  name:
    v: W5 Mapping
mapping:
  identity:
    v: objimpl
  uri:
    v: http://hl7.org/fhir/object-implementation
    l: object-implementation
  name:
    v: Object Implementation Information
kind:
  v: resource
abstract:
  v: false
type:
  v: TestScript
base definition:
  v: http://hl7.org/fhir/StructureDefinition/TestScript
  l: TestScript
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: TestScript
    path:
      v: TestScript
    short:
      v: Describes a set of tests
    definition:
      v: A structured set of tests against a FHIR server implementation to determine compliance against the FHIR specification.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: TestScript
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-1
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain any narrative
      expression:
        v: contained.text.empty()
      xpath:
        v: not(parent::f:contained and f:text)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
      expression:
        v: contained.where(('#'+id in %resource.descendants().reference).not()).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: rim
map:
  v: n/a

identity:
  v: w5
map:
  v: conformance.misc

id:
  v: TestScript.id
path:
  v: TestScript.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: TestScript.meta
path:
  v: TestScript.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
    l: Meta
is summary:
  v: true

id:
  v: TestScript.implicitRules
path:
  v: TestScript.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
is modifier:
  v: true
is summary:
  v: true

id:
  v: TestScript.language
path:
  v: TestScript.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Reference
      l: 3.0
      l: .2
      reference:
        v: http://hl7.org/fhir/ValueSet/all-languages|3.0.2
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: extensible
  description:
    v: A human language.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/languages|3.0.2

id:
  v: TestScript.text
path:
  v: TestScript.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded in formation is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
condition:
  v: dom-1
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: TestScript.contained
path:
  v: TestScript.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
    l: Resource
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.extension
path:
  v: TestScript.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.modifierExtension
path:
  v: TestScript.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.url
path:
  v: TestScript.url
short:
  v: Logical URI to reference this test script (globally unique)
definition:
  v: An absolute URI that is used to identify this test script when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this test script is (or will be) published. The URL SHOULD include the major version of the test script. For more information see [Technical and Business Versions](http://hl7.org/fhir/STU3/resource.html#versions).
comment:
  v: Can be a urn:uuid: or a urn:oid:, but real http: addresses are preferred. Multiple instances may share the same url if they have a distinct version.
requirements:
  v: Allows the test script to be referenced by a single globally unique identifier.
alias:
  v: url
alias:
  v: authoritative-url
alias:
  v: destination
alias:
  v: identity
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.url
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: id

id:
  v: TestScript.identifier
path:
  v: TestScript.identifier
short:
  v: Additional identifier for the test script
definition:
  v: A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance.
comment:
  v: Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, e.g., to identify this test script outside of FHIR, where it is not possible to use the logical URI.
requirements:
  v: Allows externally provided and/or usable business identifiers to be easily associated with the module.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base
mapping:
  identity:
    v: w5
  map:
    v: id

id:
  v: TestScript.version
path:
  v: TestScript.version
short:
  v: Business version of the test script
definition:
  v: The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.
comment:
  v: There may be different test script instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a refrence to a particular business version of the test script with the format [url]|[version].
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: id.version

id:
  v: TestScript.name
path:
  v: TestScript.name
short:
  v: Name for this test script (computer friendly)
definition:
  v: A natural language name identifying the test script. This name should be usable as an identifier for the module by machine processing applications such as code generation.
comment:
  v: The name is not expected to be globally unique. The name should be a simple alpha-numeric type name to ensure that it is computable friendly.
requirements:
  v: Support human navigation and code generation.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: TestScript.title
path:
  v: TestScript.title
short:
  v: Name for this test script (human friendly)
definition:
  v: A short, descriptive, user-friendly title for the test script.
comment:
  v: This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true

id:
  v: TestScript.status
path:
  v: TestScript.status
short:
  v: draft | active | retired | unknown
definition:
  v: The status of this test script. Enables tracking the life-cycle of the content.
comment:
  v: Allows filtering of test scripts that are appropriate for use vs. not. This is labeled as "Is Modifier" because applications should not use a retired test script without due consideration.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
is modifier:
  v: true
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: PublicationStatus
  strength:
    v: required
  description:
    v: The lifecycle status of a Value Set or Concept Map.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/publication-status|3.0.2
mapping:
  identity:
    v: w5
  map:
    v: status

id:
  v: TestScript.experimental
path:
  v: TestScript.experimental
short:
  v: For testing purposes, not real usage
definition:
  v: A boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
comment:
  v: Allows filtering of test script that are appropriate for use vs. not. This is labeled as "Is Modifier" because applications should not use an experimental test script in production.
requirements:
  v: Enables experimental content to be developed following the same lifecycle that would be used for a production-level test script.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.experimental
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: class

id:
  v: TestScript.date
path:
  v: TestScript.date
short:
  v: Date this was last changed
definition:
  v: The date (and optionally time) when the test script was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the test script changes.
comment:
  v: Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the test script. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.
alias:
  v: Revision Date
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: when.recorded

id:
  v: TestScript.publisher
path:
  v: TestScript.publisher
short:
  v: Name of the publisher (organization or individual)
definition:
  v: The name of the individual or organization that published the test script.
comment:
  v: Usually an organization, but may be an individual. The publisher (or steward) of the test script is the organization or individual primarily responsible for the maintenance and upkeep of the test script. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the test script. This item SHOULD be populated unless the information is available from context.
requirements:
  v: Helps establish the "authority/credibility" of the test script. May also allow for contact.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.publisher
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: w5
  map:
    v: who.witness

id:
  v: TestScript.contact
path:
  v: TestScript.contact
short:
  v: Contact details for the publisher
definition:
  v: Contact details to assist a user in finding and communicating with the publisher.
comment:
  v: May be a web site, an email address, a telephone number, etc.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.contact
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactDetail
    l: ContactDetail
is summary:
  v: true

id:
  v: TestScript.description
path:
  v: TestScript.description
short:
  v: Natural language description of the test script
definition:
  v: A free text natural language description of the test script from a consumer's perspective.
comment:
  v: This description can be used to capture details such as why the test script was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the test script as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the profile is presumed to be the predominant language in the place the profile was created).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown

id:
  v: TestScript.useContext
path:
  v: TestScript.useContext
short:
  v: Context the content is intended to support
definition:
  v: The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate test script instances.
comment:
  v: When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply.
requirements:
  v: Assist in searching for appropriate content.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.useContext
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: UsageContext
    l: UsageContext
is summary:
  v: true

id:
  v: TestScript.jurisdiction
path:
  v: TestScript.jurisdiction
short:
  v: Intended jurisdiction for test script (if applicable)
definition:
  v: A legal or geographic region in which the test script is intended to be used.
comment:
  v: It may be possible for the test script to be used in jurisdictions other than those for which it was originally designed or intended.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.jurisdiction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Jurisdiction
  strength:
    v: extensible
  description:
    v: Countries and regions within which this artifact is targeted for use
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/jurisdiction|3.0.2

id:
  v: TestScript.purpose
path:
  v: TestScript.purpose
short:
  v: Why this test script is defined
definition:
  v: Explaination of why this test script is needed and why it has been designed as it has.
comment:
  v: This element does not describe the usage of the test script Instead it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this test script.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.purpose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base
mapping:
  identity:
    v: w5
  map:
    v: why

id:
  v: TestScript.copyright
path:
  v: TestScript.copyright
short:
  v: Use and/or publishing restrictions
definition:
  v: A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script.
requirements:
  v: Consumers must be able to determine any legal restrictions on the use of the test script and/or its content.
alias:
  v: License
alias:
  v: Restrictions
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.copyright
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: TestScript.origin
path:
  v: TestScript.origin
short:
  v: An abstract server representing a client or sender in a message exchange
definition:
  v: An abstract server used in operations within this test script in the origin element.
comment:
  v: The purpose of this element is to define the profile of an origin element used elsewhere in the script. Test engines could then use the origin-profile mapping to offer a filtered list of test systems that can serve as the sender for the interaction.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.origin
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.origin.id
path:
  v: TestScript.origin.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.origin.extension
path:
  v: TestScript.origin.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.origin.modifierExtension
path:
  v: TestScript.origin.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.origin.index
path:
  v: TestScript.origin.index
short:
  v: The index of the abstract origin server starting at 1
definition:
  v: Abstract name given to an origin server in this test script. The name is provided as a number starting at 1.
comment:
  v: A given origin index (e.g. 1) can appear only once in the list (e.g. Origin 1 cannot be specified twice ... once as FormFiller and and again as FormProcessor within the same script as that could get confusing during test configuration). Different origin indices could play the same actor in the same test script (e.g. You could have two different test systems acting as Form-Filler). The origin indices provided elsewhere in the test script must be one of these origin indices.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.origin.index
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: integer
    l: integer

id:
  v: TestScript.origin.profile
path:
  v: TestScript.origin.profile
short:
  v: FHIR-Client | FHIR-SDC-FormFiller
definition:
  v: The type of origin profile the test system supports.
comment:
  v: Must be a "sender"/"client" profile.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.origin.profile
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
meaning when missing:
  v: FHIR-Client
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: TestScriptProfileOriginType
  strength:
    v: extensible
  description:
    v: The type of origin profile the test system supports.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/testscript-profile-origin-types|3.0.2

id:
  v: TestScript.destination
path:
  v: TestScript.destination
short:
  v: An abstract server representing a destination or receiver in a message exchange
definition:
  v: An abstract server used in operations within this test script in the destination element.
comment:
  v: The purpose of this element is to define the profile of a destination element used elsewhere in the script. Test engines could then use the destination-profile mapping to offer a filtered list of test systems that can serve as the receiver for the interaction.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.destination
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.destination.id
path:
  v: TestScript.destination.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.destination.extension
path:
  v: TestScript.destination.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.destination.modifierExtension
path:
  v: TestScript.destination.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.destination.index
path:
  v: TestScript.destination.index
short:
  v: The index of the abstract destination server starting at 1
definition:
  v: Abstract name given to a destination server in this test script. The name is provided as a number starting at 1.
comment:
  v: A given destination index (e.g. 1) can appear only once in the list (e.g. Destination 1 cannot be specified twice ... once as Form-Manager and again as Form-Processor within the same script as that could get confusing during test configuration). Different destination indices could play the same actor in the same test script (e.g. You could have two different test systems acting as Form-Manager). The destination indices provided elsewhere in the test script must be one of these destination indices.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.destination.index
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: integer
    l: integer

id:
  v: TestScript.destination.profile
path:
  v: TestScript.destination.profile
short:
  v: FHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor
definition:
  v: The type of destination profile the test system supports.
comment:
  v: Must be a "receiver"/"server" profile.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.destination.profile
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
meaning when missing:
  v: FHIR-Server
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: TestScriptProfileDestinationType
  strength:
    v: extensible
  description:
    v: The type of destination profile the test system supports.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/testscript-profile-destination-types|3.0.2

id:
  v: TestScript.metadata
path:
  v: TestScript.metadata
short:
  v: Required capability that is assumed to function correctly on the FHIR server being tested
definition:
  v: The required capability must exist and are assumed to function correctly on the FHIR server being tested.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.metadata
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: inv-4
  severity:
    v: error
  human:
    v: TestScript metadata capability SHALL contain required or validated or both.
  expression:
    v: capability.required.exists() or capability.validated.exists()
  xpath:
    v: f:capability/f:required or f:capability/f:validated or (f:capability/f:required and f:capability/f:validated)
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript

id:
  v: TestScript.metadata.id
path:
  v: TestScript.metadata.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.metadata.extension
path:
  v: TestScript.metadata.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.metadata.modifierExtension
path:
  v: TestScript.metadata.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.metadata.link
path:
  v: TestScript.metadata.link
short:
  v: Links to the FHIR specification
definition:
  v: A link to the FHIR specification that this test is covering.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.metadata.link
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.metadata.link.id
path:
  v: TestScript.metadata.link.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.metadata.link.extension
path:
  v: TestScript.metadata.link.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.metadata.link.modifierExtension
path:
  v: TestScript.metadata.link.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.metadata.link.url
path:
  v: TestScript.metadata.link.url
short:
  v: URL to the specification
definition:
  v: URL to a particular requirement or feature within the FHIR specification.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.metadata.link.url
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: uri
    l: uri

id:
  v: TestScript.metadata.link.description
path:
  v: TestScript.metadata.link.description
short:
  v: Short description
definition:
  v: Short description of the link.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.metadata.link.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.metadata.capability
path:
  v: TestScript.metadata.capability
short:
  v: Capabilities that are assumed to function correctly on the FHIR server being tested
definition:
  v: Capabilities that must exist and are assumed to function correctly on the FHIR server being tested.
comment:
  v: When the metadata capabilities section is defined at TestScript.metadata or at TestScript.setup.metadata, and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then all the tests in the TestScript are skipped. When the metadata capabilities section is defined at TestScript.test.metadata and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then only that test is skipped. The "metadata.capabilities.required" and "metadata.capabilities.validated" elements only indicate whether the capabilities are the primary focus of the test script or not. They do not impact the skipping logic. Capabilities whose "metadata.capabilities.validated" flag is true are the primary focus of the test script.
min:
  v: 1
max:
  v: *
base:
  path:
    v: TestScript.metadata.capability
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.metadata.capability.id
path:
  v: TestScript.metadata.capability.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.metadata.capability.extension
path:
  v: TestScript.metadata.capability.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.metadata.capability.modifierExtension
path:
  v: TestScript.metadata.capability.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.metadata.capability.required
path:
  v: TestScript.metadata.capability.required
short:
  v: Are the capabilities required?
definition:
  v: Whether or not the test execution will require the given capabilities of the server in order for this test script to execute.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.metadata.capability.required
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
default value: Boolean
  v: false

id:
  v: TestScript.metadata.capability.validated
path:
  v: TestScript.metadata.capability.validated
short:
  v: Are the capabilities validated?
definition:
  v: Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.metadata.capability.validated
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
default value: Boolean
  v: false

id:
  v: TestScript.metadata.capability.description
path:
  v: TestScript.metadata.capability.description
short:
  v: The expected capabilities of the server
definition:
  v: Description of the capabilities that this test script is requiring the server to support.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.metadata.capability.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.metadata.capability.origin
path:
  v: TestScript.metadata.capability.origin
short:
  v: Which origin server these requirements apply to
definition:
  v: Which origin server these requirements apply to.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.metadata.capability.origin
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: integer
    l: integer

id:
  v: TestScript.metadata.capability.destination
path:
  v: TestScript.metadata.capability.destination
short:
  v: Which server these requirements apply to
definition:
  v: Which server these requirements apply to.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.metadata.capability.destination
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer

id:
  v: TestScript.metadata.capability.link
path:
  v: TestScript.metadata.capability.link
short:
  v: Links to the FHIR specification
definition:
  v: Links to the FHIR specification that describes this interaction and the resources involved in more detail.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.metadata.capability.link
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: uri
    l: uri

id:
  v: TestScript.metadata.capability.capabilities
path:
  v: TestScript.metadata.capability.capabilities
short:
  v: Required Capability Statement
definition:
  v: Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped.
comment:
  v: The conformance statement of the server has to contain at a minimum the contents of the reference pointed to by this element.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.metadata.capability.capabilities
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CapabilityStatement
    l: CapabilityStatement

id:
  v: TestScript.metadata.capability.capabilities.id
path:
  v: TestScript.metadata.capability.capabilities.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.metadata.capability.capabilities.extension
path:
  v: TestScript.metadata.capability.capabilities.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: TestScript.metadata.capability.capabilities.extension:capabilities
path:
  v: TestScript.metadata.capability.capabilities.extension
slice name:
  v: capabilities
short:
  v: R4: capabilities additional types
definition:
  v: R4: `TestScript.metadata.capability.capabilities` additional types (canonical(http://hl7.org/fhir/StructureDefinition/CapabilityStatement)) additional types from child elements (value)
comment:
  v: Element `TestScript.metadata.capability.capabilities` is mapped to FHIR STU3 element `TestScript.metadata.capability.capabilities` as `SourceIsBroaderThanTarget`. The mappings for `TestScript.metadata.capability.capabilities` do not cover the following types: canonical. The mappings for `TestScript.metadata.capability.capabilities` do not cover the following types based on type expansion: value. The conformance statement of the server has to contain at a minimum the contents of the reference pointed to by this element.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.metadata.capability.capabilities|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.metadata.capability.capabilities

id:
  v: TestScript.metadata.capability.capabilities.reference
path:
  v: TestScript.metadata.capability.capabilities.reference
short:
  v: Literal reference, Relative, internal or absolute URL
definition:
  v: A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.
comment:
  v: Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure "/[type]/[id]" then it should be assumed that the reference is to a FHIR RESTful server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: ref-1
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.metadata.capability.capabilities.identifier
path:
  v: TestScript.metadata.capability.capabilities.identifier
short:
  v: Logical reference, when literal reference is not known
definition:
  v: An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.
comment:
  v: When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.identifier
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: .identifier

id:
  v: TestScript.metadata.capability.capabilities.display
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestScript.metadata.capability.capabilities.display
short:
  v: Text alternative for the resource
definition:
  v: Plain text narrative that identifies the resource in addition to the resource reference.
comment:
  v: This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Reference.display
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.fixture
path:
  v: TestScript.fixture
short:
  v: Fixture in the test script - by reference (uri)
definition:
  v: Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.fixture
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.fixture.id
path:
  v: TestScript.fixture.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.fixture.extension
path:
  v: TestScript.fixture.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.fixture.modifierExtension
path:
  v: TestScript.fixture.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.fixture.autocreate
path:
  v: TestScript.fixture.autocreate
short:
  v: Whether or not to implicitly create the fixture during setup
definition:
  v: Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.fixture.autocreate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
default value: Boolean
  v: false

id:
  v: TestScript.fixture.autodelete
path:
  v: TestScript.fixture.autodelete
short:
  v: Whether or not to implicitly delete the fixture during teardown
definition:
  v: Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.fixture.autodelete
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
default value: Boolean
  v: false

id:
  v: TestScript.fixture.resource
path:
  v: TestScript.fixture.resource
short:
  v: Reference of the resource
definition:
  v: Reference to the resource (containing the contents of the resource needed for operations).
comment:
  v: See http://hl7.org/fhir/STU3/resourcelist.html for complete list of resource types.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.fixture.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    l: Resource

id:
  v: TestScript.profile
path:
  v: TestScript.profile
short:
  v: Reference of the validation profile
definition:
  v: Reference to the profile to be used for validation.
comment:
  v: See http://hl7.org/fhir/STU3/resourcelist.html for complete list of resource types.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.profile
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    l: Resource

id:
  v: TestScript.variable
path:
  v: TestScript.variable
short:
  v: Placeholder for evaluated elements
definition:
  v: Variable is set based either on element value in response body or on header field value in the response headers.
comment:
  v: Variables would be set based either on XPath/JSONPath expressions against fixtures (static and response), or headerField evaluations against response headers. If variable evaluates to nodelist or anything other than a primitive value, then test engine would report an error. Variables would be used to perform clean replacements in "operation.params", "operation.requestHeader.value", and "operation.url" element values during operation calls and in "assert.value" during assertion evaluations. This limits the places that test engines would need to look for placeholders "${}". Variables are scoped to the whole script. They are NOT evaluated at declaration. They are evaluated by test engine when used for substitutions in "operation.params", "operation.requestHeader.value", and "operation.url" element values during operation calls and in "assert.value" during assertion evaluations. See example testscript-search.xml.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.variable
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: inv-3
  severity:
    v: error
  human:
    v: Variable can only contain one of expression, headerField or path.
  expression:
    v: expression.empty() or headerField.empty() or path.empty()
  xpath:
    v: not(f:expression and f:headerField and f:path)
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript

id:
  v: TestScript.variable.id
path:
  v: TestScript.variable.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.variable.extension
path:
  v: TestScript.variable.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.variable.modifierExtension
path:
  v: TestScript.variable.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.variable.name
path:
  v: TestScript.variable.name
short:
  v: Descriptive name for this variable
definition:
  v: Descriptive name for this variable.
comment:
  v: Placeholders would contain the variable name wrapped in ${} in "operation.params", "operation.requestHeader.value", and "operation.url" elements. These placeholders would need to be replaced by the variable value before the operation is executed.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.variable.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.variable.defaultValue
path:
  v: TestScript.variable.defaultValue
short:
  v: Default, hard-coded, or user-defined value for this variable
definition:
  v: A default, hard-coded, or user-defined value for this variable.
comment:
  v: The purpose of this element is to allow for a pre-defined value that can be used as a default or as an override value. Test engines can optionally use this as a placeholder for user-defined execution time values.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.variable.defaultValue
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.variable.description
path:
  v: TestScript.variable.description
short:
  v: Natural language description of the variable
definition:
  v: A free text natural language description of the variable and its purpose.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.variable.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.variable.expression
path:
  v: TestScript.variable.expression
short:
  v: The fluentpath expression against the fixture body
definition:
  v: The fluentpath expression to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified.
comment:
  v: If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define any combination of expression, headerField and path.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.variable.expression
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.variable.headerField
path:
  v: TestScript.variable.headerField
short:
  v: HTTP header field name for source
definition:
  v: Will be used to grab the HTTP header field value from the headers that sourceId is pointing to.
comment:
  v: If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define both headerField and path.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.variable.headerField
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.variable.hint
path:
  v: TestScript.variable.hint
short:
  v: Hint help text for default value to enter
definition:
  v: Displayable text string with hint help information to the user when entering a default value.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.variable.hint
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.variable.path
path:
  v: TestScript.variable.path
short:
  v: XPath or JSONPath against the fixture body
definition:
  v: XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified.
comment:
  v: If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define any combination of expression, headerField and path.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.variable.path
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.variable.sourceId
path:
  v: TestScript.variable.sourceId
short:
  v: Fixture Id of source expression or headerField within this variable
definition:
  v: Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable.
comment:
  v: This can be a statically defined fixture (at the top of the TestScript) or a dynamically set fixture created by responseId of the `action.operation` element.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.variable.sourceId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.rule
path:
  v: TestScript.rule
short:
  v: Assert rule used within the test script
definition:
  v: Assert rule to be used in one or more asserts within the test script.
comment:
  v: Each rule should be treated by test engines as one assertion regardless of how many assertions are contained within the external rule template. The impact of negative rule evaluation on test script execution is the same as an assertion failure which is described elsewhere in the TestScript resource.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.rule
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.rule.id
path:
  v: TestScript.rule.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.rule.extension
path:
  v: TestScript.rule.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.rule.modifierExtension
path:
  v: TestScript.rule.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.rule.resource
path:
  v: TestScript.rule.resource
short:
  v: Assert rule resource reference
definition:
  v: Reference to the resource (containing the contents of the rule needed for assertions).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.rule.resource
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    l: Resource

id:
  v: TestScript.rule.param
path:
  v: TestScript.rule.param
short:
  v: Rule parameter template
definition:
  v: Each rule template can take one or more parameters for rule evaluation.
comment:
  v: The parameter value can be dynamic at runtime.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.rule.param
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.rule.param.id
path:
  v: TestScript.rule.param.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.rule.param.extension
path:
  v: TestScript.rule.param.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.rule.param.modifierExtension
path:
  v: TestScript.rule.param.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.rule.param.name
path:
  v: TestScript.rule.param.name
short:
  v: Parameter name matching external assert rule parameter
definition:
  v: Descriptive name for this parameter that matches the external assert rule parameter name.
comment:
  v: The external rule template would be looking for the parameter by this name.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.rule.param.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.rule.param.value
path:
  v: TestScript.rule.param.value
short:
  v: Parameter value defined either explicitly or dynamically
definition:
  v: The explicit or dynamic value for the parameter that will be passed on to the external rule template.
comment:
  v: This value can be overwritten by the assert.rule.param.value i.e. TestScript.rule.param.value will be used if assert.rule.param.value is not specified. The param value can be a string-representation of a number, string, or boolean that is expected. Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before supplying this value to the external rule template.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.rule.param.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.ruleset
path:
  v: TestScript.ruleset
short:
  v: Assert ruleset used within the test script
definition:
  v: Contains one or more rules. Offers a way to group rules so assertions could reference the group of rules and have them all applied.
comment:
  v: Each rule within a ruleset should be treated by test engines as one assertion regardless of how many assertions are contained within the external rule template. The impact of negative rule evaluation on test script execution is the same as an assertion failure which is described elsewhere in the TestScript resource.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.ruleset
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.ruleset.id
path:
  v: TestScript.ruleset.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.ruleset.extension
path:
  v: TestScript.ruleset.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.ruleset.modifierExtension
path:
  v: TestScript.ruleset.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.ruleset.resource
path:
  v: TestScript.ruleset.resource
short:
  v: Assert ruleset resource reference
definition:
  v: Reference to the resource (containing the contents of the ruleset needed for assertions).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.ruleset.resource
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    l: Resource

id:
  v: TestScript.ruleset.rule
path:
  v: TestScript.ruleset.rule
short:
  v: The referenced rule within the ruleset
definition:
  v: The referenced rule within the external ruleset template.
comment:
  v: This qualifies each param name so that a parameter with the same name can be used differently by the different rules with the ruleset.
min:
  v: 1
max:
  v: *
base:
  path:
    v: TestScript.ruleset.rule
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.ruleset.rule.id
path:
  v: TestScript.ruleset.rule.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.ruleset.rule.extension
path:
  v: TestScript.ruleset.rule.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.ruleset.rule.modifierExtension
path:
  v: TestScript.ruleset.rule.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.ruleset.rule.ruleId
path:
  v: TestScript.ruleset.rule.ruleId
short:
  v: Id of referenced rule within the ruleset
definition:
  v: Id of the referenced rule within the external ruleset template.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.ruleset.rule.ruleId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.ruleset.rule.param
path:
  v: TestScript.ruleset.rule.param
short:
  v: Ruleset rule parameter template
definition:
  v: Each rule template can take one or more parameters for rule evaluation.
comment:
  v: The parameter value can be dynamic at runtime.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.ruleset.rule.param
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.ruleset.rule.param.id
path:
  v: TestScript.ruleset.rule.param.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.ruleset.rule.param.extension
path:
  v: TestScript.ruleset.rule.param.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.ruleset.rule.param.modifierExtension
path:
  v: TestScript.ruleset.rule.param.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.ruleset.rule.param.name
path:
  v: TestScript.ruleset.rule.param.name
short:
  v: Parameter name matching external assert ruleset rule parameter
definition:
  v: Descriptive name for this parameter that matches the external assert ruleset rule parameter name.
comment:
  v: The external rule template would be looking for the parameter by this name.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.ruleset.rule.param.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.ruleset.rule.param.value
path:
  v: TestScript.ruleset.rule.param.value
short:
  v: Parameter value defined either explicitly or dynamically
definition:
  v: The value for the parameter that will be passed on to the external ruleset rule template.
comment:
  v: This value can be overwritten by the assert.ruleset.rule.param.value i.e. TestScript.ruleset.rule.param.value will be used if assert.ruleset.rule.param.value is not specified. The param value can be a string-representation of a number, string, or boolean that is expected. Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before supplying this value to the external rule template.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.ruleset.rule.param.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup
path:
  v: TestScript.setup
short:
  v: A series of required setup operations before tests are executed
definition:
  v: A series of required setup operations before tests are executed.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.setup.id
path:
  v: TestScript.setup.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.extension
path:
  v: TestScript.setup.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.modifierExtension
path:
  v: TestScript.setup.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.setup.action
path:
  v: TestScript.setup.action
short:
  v: A setup operation or assert to perform
definition:
  v: Action would contain either an operation or an assertion.
comment:
  v: An action should contain either an operation or an assertion but not both. It can contain any number of variables.
min:
  v: 1
max:
  v: *
base:
  path:
    v: TestScript.setup.action
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: inv-1
  severity:
    v: error
  human:
    v: Setup action SHALL contain either an operation or assert but not both.
  expression:
    v: operation.exists() xor assert.exists()
  xpath:
    v: (f:operation or f:assert) and not(f:operation and f:assert)
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript

id:
  v: TestScript.setup.action.id
path:
  v: TestScript.setup.action.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.extension
path:
  v: TestScript.setup.action.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.modifierExtension
path:
  v: TestScript.setup.action.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.setup.action.operation
path:
  v: TestScript.setup.action.operation
short:
  v: The setup operation to perform
definition:
  v: The operation to perform.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: inv-7
  severity:
    v: error
  human:
    v: Setup operation SHALL contain either sourceId or targetId or params or url.
  expression:
    v: sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history'))
  xpath:
    v: f:sourceId or ((f:targetId or f:url or f:params) and (count(f:targetId) + count(f:url) + count(f:params) =1)) or (f:type/f:code/@value='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript

id:
  v: TestScript.setup.action.operation.id
path:
  v: TestScript.setup.action.operation.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.operation.extension
path:
  v: TestScript.setup.action.operation.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: TestScript.setup.action.operation.extension:method
path:
  v: TestScript.setup.action.operation.extension
slice name:
  v: method
short:
  v: R4: delete | get | options | patch | post | put | head (new)
definition:
  v: R4: `TestScript.setup.action.operation.method` (new:code)
comment:
  v: Element `TestScript.setup.action.operation.method` has a context of TestScript.setup.action.operation based on following the parent source element upwards and mapping to `TestScript`. Element `TestScript.setup.action.operation.method` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The primary purpose of the explicit HTTP method is support of HTTP POST method invocation of the FHIR search. Other uses will include support of negative testing.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.operation.method|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.operation.method
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: TestScript.setup.action.operation.modifierExtension
path:
  v: TestScript.setup.action.operation.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.setup.action.operation.type
path:
  v: TestScript.setup.action.operation.type
short:
  v: The operation code type that will be executed
definition:
  v: Server interaction or operation type.
comment:
  v: See http://hl7.org/fhir/STU3/http.html for list of server interactions.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Coding
    l: Coding
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: TestScriptOperationCode
  strength:
    v: extensible
  description:
    v: The allowable operation code types.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/testscript-operation-codes|3.0.2

id:
  v: TestScript.setup.action.operation.resource
path:
  v: TestScript.setup.action.operation.resource
short:
  v: Resource type
definition:
  v: The type of the resource. See http://hl7.org/fhir/STU3/resourcelist.html.
comment:
  v: If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: FHIRDefinedType
  strength:
    v: required
  description:
    v: Either a resource or a data type.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/defined-types|3.0.2

id:
  v: TestScript.setup.action.operation.resource.id
path:
  v: TestScript.setup.action.operation.resource.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.operation.resource.extension
path:
  v: TestScript.setup.action.operation.resource.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: TestScript.setup.action.operation.resource.extension:resource
path:
  v: TestScript.setup.action.operation.resource.extension
slice name:
  v: resource
short:
  v: R4: resource
definition:
  v: R4: `TestScript.setup.action.operation.resource`
comment:
  v: Element `TestScript.setup.action.operation.resource` is mapped to FHIR STU3 element `TestScript.setup.action.operation.resource` as `SourceIsBroaderThanTarget`. If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.operation.resource|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.operation.resource
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: TestScript.setup.action.operation.resource.value
path:
  v: TestScript.setup.action.operation.resource.value
representation:
  v: xmlAttr
short:
  v: Primitive value for code
definition:
  v: Primitive value for code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-regex
      l: structuredefinition-regex
    value: String
      v: [^\s]+([\s]?[^\s]+)*
  code:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type
        l: structuredefinition-json-type
      value: String
        v: string
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type
        l: structuredefinition-xml-type
      value: String
        v: xsd:token
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type
        l: structuredefinition-rdf-type
      value: String
        v: xsd:token

id:
  v: TestScript.setup.action.operation.label
path:
  v: TestScript.setup.action.operation.label
short:
  v: Tracking/logging operation label
definition:
  v: The label would be used for tracking/logging purposes by test engines.
comment:
  v: This has no impact on the verification itself.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.label
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.operation.description
path:
  v: TestScript.setup.action.operation.description
short:
  v: Tracking/reporting operation description
definition:
  v: The description would be used by test engines for tracking and reporting purposes.
comment:
  v: This has no impact on the verification itself.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.operation.accept
path:
  v: TestScript.setup.action.operation.accept
short:
  v: xml | json | ttl | none
definition:
  v: The content-type or mime-type to use for RESTful operation in the 'Accept' header.
comment:
  v: If this is specified, then test engine shall set the 'Accept' header to the corresponding value. If 'xml' is specified, then 'Accept' header of 'application/fhir+xml' will be set. If 'json' is specified, then 'application/fhir+json' will be used. If you'd like to explicitly set the 'Accept' to some other value then use the 'requestHeader' element.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.accept
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: xml
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ContentType
  strength:
    v: required
  description:
    v: The content or mime type.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/content-type|3.0.2

id:
  v: TestScript.setup.action.operation.contentType
path:
  v: TestScript.setup.action.operation.contentType
short:
  v: xml | json | ttl | none
definition:
  v: The content-type or mime-type to use for RESTful operation in the 'Content-Type' header.
comment:
  v: If this is specified, then test engine shall set the 'Content-Type' header to the corresponding value. If 'xml' is specified, then 'Content-Type' header of 'application/fhir+xml' will be set. If 'json' is specified, then 'application/fhir+json' will be used. If you'd like to explicitly set the 'Content-Type' to some other value then use the 'requestHeader' element.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.contentType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: xml
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ContentType
  strength:
    v: required
  description:
    v: The content or mime type.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/content-type|3.0.2

id:
  v: TestScript.setup.action.operation.destination
path:
  v: TestScript.setup.action.operation.destination
short:
  v: Server responding to the request
definition:
  v: The server where the request message is destined for. Must be one of the server numbers listed in TestScript.destination section.
comment:
  v: If multiple TestScript.destination elements are defined and operation.destination is undefined, test engine will report an error as it cannot determine what destination to use for the exchange.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.destination
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer

id:
  v: TestScript.setup.action.operation.encodeRequestUrl
path:
  v: TestScript.setup.action.operation.encodeRequestUrl
short:
  v: Whether or not to send the request url in encoded format
definition:
  v: Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.encodeRequestUrl
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
default value: Boolean
  v: true

id:
  v: TestScript.setup.action.operation.origin
path:
  v: TestScript.setup.action.operation.origin
short:
  v: Server initiating the request
definition:
  v: The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section.
comment:
  v: If absent, test engine will send the message. When present, test engine will not send the request message but will wait for the request message to be sent from this origin server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.origin
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer
    l: integer

id:
  v: TestScript.setup.action.operation.params
path:
  v: TestScript.setup.action.operation.params
short:
  v: Explicitly defined path parameters
definition:
  v: Path plus parameters after [type]. Used to set parts of the request URL explicitly.
comment:
  v: If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. Test engines would append whatever is specified for "params" to the URL after the resource type without tampering with the string (beyond encoding the URL for HTTP). The "params" element does not correspond exactly to "search parameters". Nor is it the "path". It corresponds to the part of the URL that comes after the [type] (when "resource" element is specified); e.g. It corresponds to "/[id]/_history/[vid] {?_format=[mime-type]}" in the following operation: GET [base]/[type]/[id]/_history/[vid] {?_format=[mime-type]} Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.params
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.operation.requestHeader
path:
  v: TestScript.setup.action.operation.requestHeader
short:
  v: Each operation can have one or more header elements
definition:
  v: Header elements would be used to set HTTP headers.
comment:
  v: This gives control to test-script writers to set headers explicitly based on test requirements. It will allow for testing using: - "If-Modified-Since" and "If-None-Match" headers. See http://hl7.org/fhir/STU3/http.html#2.1.0.5.1 - "If-Match" header. See http://hl7.org/fhir/STU3/http.html#2.1.0.11 - Conditional Create using "If-None-Exist". See http://hl7.org/fhir/STU3/http.html#2.1.0.13.1 - Invalid "Content-Type" header for negative testing. - etc.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.setup.action.operation.requestHeader
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.setup.action.operation.requestHeader.id
path:
  v: TestScript.setup.action.operation.requestHeader.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.operation.requestHeader.extension
path:
  v: TestScript.setup.action.operation.requestHeader.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.operation.requestHeader.modifierExtension
path:
  v: TestScript.setup.action.operation.requestHeader.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.setup.action.operation.requestHeader.field
path:
  v: TestScript.setup.action.operation.requestHeader.field
short:
  v: HTTP header field name
definition:
  v: The HTTP header field e.g. "Accept".
comment:
  v: If header element is specified, then field is required.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.requestHeader.field
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.operation.requestHeader.value
path:
  v: TestScript.setup.action.operation.requestHeader.value
short:
  v: HTTP headerfield value
definition:
  v: The value of the header e.g. "application/fhir+xml".
comment:
  v: If header element is specified, then value is required. No conversions will be done by the test engine e.g. "xml" to "application/fhir+xml". The values will be set in HTTP headers "as-is". Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.requestHeader.value
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.operation.requestId
path:
  v: TestScript.setup.action.operation.requestId
short:
  v: Fixture Id of mapped request
definition:
  v: The fixture id (maybe new) to map to the request.
comment:
  v: If a requestId is supplied, then the resulting request (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by "requestId". If requestId is not specified, it is the test engine's responsibility to store the request and use it as the requestId in subsequent assertions when assertion path and/or headerField is specified, direction is equal to request, and the requestId in not specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.requestId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.setup.action.operation.responseId
path:
  v: TestScript.setup.action.operation.responseId
short:
  v: Fixture Id of mapped response
definition:
  v: The fixture id (maybe new) to map to the response.
comment:
  v: If a responseId is supplied, and the server responds, then the resulting response (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by "responseId". If responseId is not specified, it is the test engine's responsibility to store the response and use it as the responseId in subsequent assertions when assertion path and/or headerField is specified and the responseId is not specified.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.responseId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.setup.action.operation.sourceId
path:
  v: TestScript.setup.action.operation.sourceId
short:
  v: Fixture Id of body for PUT and POST requests
definition:
  v: The id of the fixture used as the body of a PUT or POST request.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.sourceId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.setup.action.operation.targetId
path:
  v: TestScript.setup.action.operation.targetId
short:
  v: Id of fixture used for extracting the [id], [type], and [vid] for GET requests
definition:
  v: Id of fixture used for extracting the [id], [type], and [vid] for GET requests.
comment:
  v: If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.targetId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.setup.action.operation.url
path:
  v: TestScript.setup.action.operation.url
short:
  v: Request URL
definition:
  v: Complete request URL.
comment:
  v: Used to set the request URL explicitly. If "url" element is defined, then "targetId", "resource", and "params" elements will be ignored. Test engines would use whatever is specified in "url" without tampering with the string (beyond encoding the URL for HTTP). Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.operation.url
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert
path:
  v: TestScript.setup.action.assert
short:
  v: The assertion to perform
definition:
  v: Evaluates the results of previous operations to determine if the server under test behaves appropriately.
comment:
  v: In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: inv-5
  severity:
    v: error
  human:
    v: Only a single assertion SHALL be present within setup action assert element.
  expression:
    v: contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + rule.count() + ruleset.count() + validateProfileId.count() <=1
  xpath:
    v: count(f:contentType) + count(f:expression) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:requestMethod) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:rule) + count(f:ruleset) + count(f:validateProfileId) <=1
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript
constraint:
  key:
    v: inv-10
  severity:
    v: error
  human:
    v: Setup action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither.
  expression:
    v: compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())
  xpath:
    v: (f:compareToSourceId and f:compareToSourceExpression) or (f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourceExpression or f:compareToSourcePath)
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript
constraint:
  key:
    v: inv-12
  severity:
    v: error
  human:
    v: Setup action assert response and responseCode SHALL be empty when direction equals request
  expression:
    v: (response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'
  xpath:
    v: ((count(f:response) + count(f:responseCode)) = 0 and (f:direction/@value='request')) or (count(f:direction) = 0) or (f:direction/@value='response')
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript

id:
  v: TestScript.setup.action.assert.id
path:
  v: TestScript.setup.action.assert.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.extension
path:
  v: TestScript.setup.action.assert.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.modifierExtension
path:
  v: TestScript.setup.action.assert.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.setup.action.assert.label
path:
  v: TestScript.setup.action.assert.label
short:
  v: Tracking/logging assertion label
definition:
  v: The label would be used for tracking/logging purposes by test engines.
comment:
  v: This has no impact on the verification itself.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.label
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.description
path:
  v: TestScript.setup.action.assert.description
short:
  v: Tracking/reporting assertion description
definition:
  v: The description would be used by test engines for tracking and reporting purposes.
comment:
  v: This has no impact on the verification itself.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.direction
path:
  v: TestScript.setup.action.assert.direction
short:
  v: response | request
definition:
  v: The direction to use for the assertion.
comment:
  v: If the direction is specified as "response" (the default), then the processing of this assert is against the received response message. If the direction is specified as "request", then the processing of this assert is against the sent request message.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.direction
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AssertionDirectionType
  strength:
    v: required
  description:
    v: The type of direction to use for assertion.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/assert-direction-codes|3.0.2

id:
  v: TestScript.setup.action.assert.compareToSourceId
path:
  v: TestScript.setup.action.assert.compareToSourceId
short:
  v: Id of the source fixture to be evaluated
definition:
  v: Id of the source fixture used as the contents to be evaluated by either the "source/expression" or "sourceId/path" definition.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.compareToSourceId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.compareToSourceExpression
path:
  v: TestScript.setup.action.assert.compareToSourceExpression
short:
  v: The fluentpath expression to evaluate against the source fixture
definition:
  v: The fluentpath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.
comment:
  v: Thefhirpath expression to be evaluated against the expected fixture to compare to. Ignored if "assert.value" is used. The evaluation will be done before the assertion is evaluated.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.compareToSourceExpression
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.compareToSourcePath
path:
  v: TestScript.setup.action.assert.compareToSourcePath
short:
  v: XPath or JSONPath expression to evaluate against the source fixture
definition:
  v: XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both.
comment:
  v: The XPath or JSONPath expression to be evaluated against the expected fixture to compare to. Ignored if "assert.value" is used. The evaluation will be done before the assertion is evaluated.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.compareToSourcePath
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.contentType
path:
  v: TestScript.setup.action.assert.contentType
short:
  v: xml | json | ttl | none
definition:
  v: The content-type or mime-type to use for RESTful operation in the 'Content-Type' header.
comment:
  v: If this is specified, then test engine shall confirm that the content-type of the last operation's headers is set to this value. If "assert.sourceId" element is specified, then the evaluation will be done against the headers mapped to that sourceId (and not the last operation's headers). If 'xml' is specified, then 'Content-Type' header of 'application/fhir+xml' will be confirmed. If 'json' is specified, then 'application/fhir+json' will be used. If you'd like to have more control over the string, then use 'assert.headerField' instead.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.contentType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: xml
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: ContentType
  strength:
    v: required
  description:
    v: The content or mime type.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/content-type|3.0.2

id:
  v: TestScript.setup.action.assert.expression
path:
  v: TestScript.setup.action.assert.expression
short:
  v: The fluentpath expression to be evaluated
definition:
  v: The fluentpath expression to be evaluated against the request or response message contents - HTTP headers and payload.
comment:
  v: If both "expression" and a "fixtureId" are specified, then the expression will be evaluated against the request or response body mapped to the fixtureId. If "expression" is specified and a "fixtureId" is not, then the expression will be evaluated against the response body of the last operation. Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.expression
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.headerField
path:
  v: TestScript.setup.action.assert.headerField
short:
  v: HTTP header field name
definition:
  v: The HTTP header field name e.g. 'Location'.
comment:
  v: If "headerField" is specified then "value" must be specified. If "sourceId" is not specified, then "headerField" will be evaluated against the last operation's response headers. Test engines are to keep track of the last operation's response body and response headers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.headerField
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.minimumId
path:
  v: TestScript.setup.action.assert.minimumId
short:
  v: Fixture Id of minimum content resource
definition:
  v: The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId.
comment:
  v: Asserts that the response contains all the element/content in another fixture pointed to by minimumId. This can be a statically defined fixture or one that is dynamically set via responseId.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.minimumId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.navigationLinks
path:
  v: TestScript.setup.action.assert.navigationLinks
short:
  v: Perform validation on navigation links?
definition:
  v: Whether or not the test execution performs validation on the bundle navigation links.
comment:
  v: Asserts that the Bundle contains first, last, and next links.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.navigationLinks
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean

id:
  v: TestScript.setup.action.assert.operator
path:
  v: TestScript.setup.action.assert.operator
short:
  v: equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval
definition:
  v: The operator type defines the conditional behavior of the assert. If not defined, the default is equals.
comment:
  v: Operators are useful especially for negative testing. If operator is not specified, then the "equals" operator is assumed; e.g. <assert> <operator value="in" /> <responseCode value="200,201,204" /> </assert> <assert> <operator value="notEquals" /> <response value="okay"/> </assert> <assert> <operator value="greaterThan" /> <responseHeader> <field value="Content-Length" /> <value value="0" /> <responseHeader/> </assert> .
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.operator
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AssertionOperatorType
  strength:
    v: required
  description:
    v: The type of operator to use for assertion.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/assert-operator-codes|3.0.2

id:
  v: TestScript.setup.action.assert.path
path:
  v: TestScript.setup.action.assert.path
short:
  v: XPath or JSONPath expression
definition:
  v: The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server.
comment:
  v: If both "path" and a "fixtureId" are specified, then the path will be evaluated against the request or response body mapped to the fixtureId. If "path" is specified and a "fixtureId" is not, then the path will be evaluated against the response body of the last operation. Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.path
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.requestMethod
path:
  v: TestScript.setup.action.assert.requestMethod
short:
  v: delete | get | options | patch | post | put
definition:
  v: The request method or HTTP operation code to compare against that used by the client system under test.
comment:
  v: If "requestMethod" is specified then it will be used in place of "value". The "requestMethod" will evaluate against the last operation's request HTTP operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.requestMethod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: TestScriptRequestMethodCode
  strength:
    v: required
  description:
    v: The allowable request method or HTTP operation codes.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/http-operations|3.0.2

id:
  v: TestScript.setup.action.assert.requestMethod.id
path:
  v: TestScript.setup.action.assert.requestMethod.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.requestMethod.extension
path:
  v: TestScript.setup.action.assert.requestMethod.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: TestScript.setup.action.assert.requestMethod.extension:requestMethod
path:
  v: TestScript.setup.action.assert.requestMethod.extension
slice name:
  v: requestMethod
short:
  v: R4: delete | get | options | patch | post | put | head
definition:
  v: R4: `TestScript.setup.action.assert.requestMethod`
comment:
  v: Element `TestScript.setup.action.assert.requestMethod` is mapped to FHIR STU3 element `TestScript.setup.action.assert.requestMethod` as `SourceIsBroaderThanTarget`. If "requestMethod" is specified then it will be used in place of "value". The "requestMethod" will evaluate against the last operation's request HTTP operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.assert.requestMethod|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.assert.requestMethod
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: TestScript.setup.action.assert.requestMethod.value
path:
  v: TestScript.setup.action.assert.requestMethod.value
representation:
  v: xmlAttr
short:
  v: Primitive value for code
definition:
  v: Primitive value for code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-regex
      l: structuredefinition-regex
    value: String
      v: [^\s]+([\s]?[^\s]+)*
  code:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type
        l: structuredefinition-json-type
      value: String
        v: string
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type
        l: structuredefinition-xml-type
      value: String
        v: xsd:token
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type
        l: structuredefinition-rdf-type
      value: String
        v: xsd:token

id:
  v: TestScript.setup.action.assert.requestURL
path:
  v: TestScript.setup.action.assert.requestURL
short:
  v: Request URL comparison value
definition:
  v: The value to use in a comparison against the request URL path string.
comment:
  v: If "requestURL" is specified then it will be used in place of "value". The "requestURL" will evaluate against the last operation's full request URL path string.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.requestURL
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.resource
path:
  v: TestScript.setup.action.assert.resource
short:
  v: Resource type
definition:
  v: The type of the resource. See http://hl7.org/fhir/STU3/resourcelist.html.
comment:
  v: This will be expected resource type in response body e.g. in read, vread, search, etc. See http://hl7.org/fhir/STU3/resourcelist.html for complete list of resource types; e.g. <assert > <resourceType value="Patient" </assert>.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: FHIRDefinedType
  strength:
    v: required
  description:
    v: Either a resource or a data type.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/defined-types|3.0.2

id:
  v: TestScript.setup.action.assert.resource.id
path:
  v: TestScript.setup.action.assert.resource.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.resource.extension
path:
  v: TestScript.setup.action.assert.resource.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: TestScript.setup.action.assert.resource.extension:resource
path:
  v: TestScript.setup.action.assert.resource.extension
slice name:
  v: resource
short:
  v: R4: resource
definition:
  v: R4: `TestScript.setup.action.assert.resource`
comment:
  v: Element `TestScript.setup.action.assert.resource` is mapped to FHIR STU3 element `TestScript.setup.action.assert.resource` as `SourceIsBroaderThanTarget`. This will be expected resource type in response body e.g. in read, vread, search, etc. See http://build.fhir.org/resourcelist.html for complete list of resource types; e.g. <assert > <resourceType value="Patient" </assert>.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.assert.resource|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.assert.resource
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false

id:
  v: TestScript.setup.action.assert.resource.value
path:
  v: TestScript.setup.action.assert.resource.value
representation:
  v: xmlAttr
short:
  v: Primitive value for code
definition:
  v: Primitive value for code
min:
  v: 0
max:
  v: 1
base:
  path:
    v: string.value
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-regex
      l: structuredefinition-regex
    value: String
      v: [^\s]+([\s]?[^\s]+)*
  code:
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type
        l: structuredefinition-json-type
      value: String
        v: string
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type
        l: structuredefinition-xml-type
      value: String
        v: xsd:token
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type
        l: structuredefinition-rdf-type
      value: String
        v: xsd:token

id:
  v: TestScript.setup.action.assert.response
path:
  v: TestScript.setup.action.assert.response
short:
  v: okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable
definition:
  v: okay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable.
comment:
  v: This is a shorter way of achieving similar verifications via "assert.responseCode". If you need more control, then use "assert.responseCode" e.g. <assert> <contentType value="json" /> <response value="okay"/> </assert>.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.response
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: AssertionResponseTypes
  strength:
    v: required
  description:
    v: The type of response code to use for assertion.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/assert-response-code-types|3.0.2

id:
  v: TestScript.setup.action.assert.responseCode
path:
  v: TestScript.setup.action.assert.responseCode
short:
  v: HTTP response code to test
definition:
  v: The value of the HTTP response code to be tested.
comment:
  v: To be used with "operator" attribute value. Asserts that the response code equals this value if "operator" is not specified. If the operator is "in" or "notIn" then the responseCode would be a comma-separated list of values e.g. "200,201". Otherwise, it's expected to be a numeric value. If "fixture" is not specified, then the "responseBodyId" value of the last operation is assumed.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.responseCode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.rule
path:
  v: TestScript.setup.action.assert.rule
short:
  v: The reference to a TestScript.rule
definition:
  v: The TestScript.rule this assert will evaluate.
comment:
  v: Each rule should get evaluated by test engines as one assertion regardless of how many assertions are contained within the external rule template. The impact of negative rule evaluation on test script execution is the same as an assertion failure which is descibed elsewhere in the TestScript resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.rule
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.setup.action.assert.rule.id
path:
  v: TestScript.setup.action.assert.rule.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.rule.extension
path:
  v: TestScript.setup.action.assert.rule.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.rule.modifierExtension
path:
  v: TestScript.setup.action.assert.rule.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.setup.action.assert.rule.ruleId
path:
  v: TestScript.setup.action.assert.rule.ruleId
short:
  v: Id of the TestScript.rule
definition:
  v: The TestScript.rule id value this assert will evaluate.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.rule.ruleId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.setup.action.assert.rule.param
path:
  v: TestScript.setup.action.assert.rule.param
short:
  v: Rule parameter template
definition:
  v: Each rule template can take one or more parameters for rule evaluation.
comment:
  v: The parameter value can be dynamic at runtime.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.setup.action.assert.rule.param
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.setup.action.assert.rule.param.id
path:
  v: TestScript.setup.action.assert.rule.param.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.rule.param.extension
path:
  v: TestScript.setup.action.assert.rule.param.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.rule.param.modifierExtension
path:
  v: TestScript.setup.action.assert.rule.param.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.setup.action.assert.rule.param.name
path:
  v: TestScript.setup.action.assert.rule.param.name
short:
  v: Parameter name matching external assert rule parameter
definition:
  v: Descriptive name for this parameter that matches the external assert rule parameter name.
comment:
  v: The external rule template would be looking for the parameter by this name.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.rule.param.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.rule.param.value
path:
  v: TestScript.setup.action.assert.rule.param.value
short:
  v: Parameter value defined either explicitly or dynamically
definition:
  v: The value for the parameter that will be passed on to the external rule template.
comment:
  v: This value overwrites the value (if any) specified in TestScript.rule.param.value. The param value can be a string-representation of a number, string, or boolean that is expected. Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before supplying this value to the external rule template.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.rule.param.value
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.ruleset
path:
  v: TestScript.setup.action.assert.ruleset
short:
  v: The reference to a TestScript.ruleset
definition:
  v: The TestScript.ruleset this assert will evaluate.
comment:
  v: Each rule within a ruleset should get evaluated by test engines as a separate assertion. The impact of negative rule evaluation on test script execution is the same as an assertion failure which is descibed elsewhere in the TestScript resource. If the first rule within the ruleset results in a failed assertion, then test engines do not have to evaluate the rest of the rules within the ruleset.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.ruleset
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.setup.action.assert.ruleset.id
path:
  v: TestScript.setup.action.assert.ruleset.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.ruleset.extension
path:
  v: TestScript.setup.action.assert.ruleset.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.ruleset.modifierExtension
path:
  v: TestScript.setup.action.assert.ruleset.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.setup.action.assert.ruleset.rulesetId
path:
  v: TestScript.setup.action.assert.ruleset.rulesetId
short:
  v: Id of the TestScript.ruleset
definition:
  v: The TestScript.ruleset id value this assert will evaluate.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.ruleset.rulesetId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.setup.action.assert.ruleset.rule
path:
  v: TestScript.setup.action.assert.ruleset.rule
short:
  v: The referenced rule within the ruleset
definition:
  v: The referenced rule within the external ruleset template.
comment:
  v: This qualifies each param name so that a parameter with the same name can be used differently by the different rules with the ruleset.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.setup.action.assert.ruleset.rule
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.setup.action.assert.ruleset.rule.id
path:
  v: TestScript.setup.action.assert.ruleset.rule.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.ruleset.rule.extension
path:
  v: TestScript.setup.action.assert.ruleset.rule.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.ruleset.rule.modifierExtension
path:
  v: TestScript.setup.action.assert.ruleset.rule.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.setup.action.assert.ruleset.rule.ruleId
path:
  v: TestScript.setup.action.assert.ruleset.rule.ruleId
short:
  v: Id of referenced rule within the ruleset
definition:
  v: Id of the referenced rule within the external ruleset template.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.ruleset.rule.ruleId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.setup.action.assert.ruleset.rule.param
path:
  v: TestScript.setup.action.assert.ruleset.rule.param
short:
  v: Rule parameter template
definition:
  v: Each rule template can take one or more parameters for rule evaluation.
comment:
  v: The parameter value can be dynamic at runtime.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.setup.action.assert.ruleset.rule.param
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.setup.action.assert.ruleset.rule.param.id
path:
  v: TestScript.setup.action.assert.ruleset.rule.param.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.ruleset.rule.param.extension
path:
  v: TestScript.setup.action.assert.ruleset.rule.param.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.setup.action.assert.ruleset.rule.param.modifierExtension
path:
  v: TestScript.setup.action.assert.ruleset.rule.param.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.setup.action.assert.ruleset.rule.param.name
path:
  v: TestScript.setup.action.assert.ruleset.rule.param.name
short:
  v: Parameter name matching external assert ruleset rule parameter
definition:
  v: Descriptive name for this parameter that matches the external assert ruleset rule parameter name.
comment:
  v: The external rule template would be looking for the parameter by this name.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.ruleset.rule.param.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.ruleset.rule.param.value
path:
  v: TestScript.setup.action.assert.ruleset.rule.param.value
short:
  v: Parameter value defined either explicitly or dynamically
definition:
  v: The value for the parameter that will be passed on to the external ruleset rule template.
comment:
  v: This value overwrites the value (if any) specified in TestScript.ruleset.rule.param.value. The param value can be a string-representation of a number, string, or boolean that is expected. Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before supplying this value to the external rule template.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.ruleset.rule.param.value
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.sourceId
path:
  v: TestScript.setup.action.assert.sourceId
short:
  v: Fixture Id of source expression or headerField
definition:
  v: Fixture to evaluate the XPath/JSONPath expression or the headerField against.
comment:
  v: This can be a statically defined fixture (at the top of the testscript) or a dynamically set fixture created by responseId of the action.operation element.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.sourceId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.setup.action.assert.validateProfileId
path:
  v: TestScript.setup.action.assert.validateProfileId
short:
  v: Profile Id of validation profile reference
definition:
  v: The ID of the Profile to validate against.
comment:
  v: The ID of a Profile fixture. Asserts that the response is valid according to the Profile specified by validateProfileId.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.validateProfileId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id

id:
  v: TestScript.setup.action.assert.value
path:
  v: TestScript.setup.action.assert.value
short:
  v: The value to compare to
definition:
  v: The value to compare to.
comment:
  v: The string-representation of a number, string, or boolean that is expected. Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before comparing this value to the actual value.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.setup.action.assert.warningOnly
path:
  v: TestScript.setup.action.assert.warningOnly
short:
  v: Will this assert produce a warning only on error?
definition:
  v: Whether or not the test execution will produce a warning only on error for this assert.
comment:
  v: If this element is specified and it is true, then assertion failures can be logged by test engine but should not stop the test script execution from proceeding. There are likely cases where the spec is not clear on what should happen. If the spec says something is optional (maybe a response header for example), but a server doesn’t do it, we could choose to issue a warning.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.setup.action.assert.warningOnly
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
default value: Boolean
  v: false

id:
  v: TestScript.test
path:
  v: TestScript.test
short:
  v: A test in this script
definition:
  v: A test in this script.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestScript.test
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.test.id
path:
  v: TestScript.test.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.test.extension
path:
  v: TestScript.test.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.test.modifierExtension
path:
  v: TestScript.test.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.test.name
path:
  v: TestScript.test.name
short:
  v: Tracking/logging name of this test
definition:
  v: The name of this test used for tracking/logging purposes by test engines.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.test.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.test.description
path:
  v: TestScript.test.description
short:
  v: Tracking/reporting short description of the test
definition:
  v: A short description of the test used by test engines for tracking and reporting purposes.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.test.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestScript.test.action
path:
  v: TestScript.test.action
short:
  v: A test operation or assert to perform
definition:
  v: Action would contain either an operation or an assertion.
comment:
  v: An action should contain either an operation or an assertion but not both. It can contain any number of variables.
min:
  v: 1
max:
  v: *
base:
  path:
    v: TestScript.test.action
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: inv-2
  severity:
    v: error
  human:
    v: Test action SHALL contain either an operation or assert but not both.
  expression:
    v: operation.exists() xor assert.exists()
  xpath:
    v: (f:operation or f:assert) and not(f:operation and f:assert)
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript

id:
  v: TestScript.test.action.id
path:
  v: TestScript.test.action.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.test.action.extension
path:
  v: TestScript.test.action.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.test.action.modifierExtension
path:
  v: TestScript.test.action.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.test.action.operation
path:
  v: TestScript.test.action.operation
short:
  v: The setup operation to perform
definition:
  v: An operation would involve a REST request to a server.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.test.action.operation
  min:
    v: 0
  max:
    v: 1
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation
  l: TestScript.setup.action.operation
constraint:
  key:
    v: inv-8
  severity:
    v: error
  human:
    v: Test operation SHALL contain either sourceId or targetId or params or url.
  expression:
    v: sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))
  xpath:
    v: f:sourceId or (f:targetId or f:url or f:params) and (count(f:targetId) + count(f:url) + count(f:params) =1) or (f:type/f:code/@value='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript

id:
  v: TestScript.test.action.assert
path:
  v: TestScript.test.action.assert
short:
  v: The setup assertion to perform
definition:
  v: Evaluates the results of previous operations to determine if the server under test behaves appropriately.
comment:
  v: In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.test.action.assert
  min:
    v: 0
  max:
    v: 1
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.assert
  l: TestScript.setup.action.assert
constraint:
  key:
    v: inv-6
  severity:
    v: error
  human:
    v: Only a single assertion SHALL be present within test action assert element.
  expression:
    v: contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + resource.count() + responseCode.count() + response.count() + rule.count() + ruleset.count() + validateProfileId.count() <=1
  xpath:
    v: count(f:contentType) + count(f:expression) + count(f:headerField) + count(f:minimumId) + count(f:navigationLinks) + count(f:path) + count(f:requestMethod) + count(f:resource) + count(f:responseCode) + count(f:response) + count(f:rule) + count(f:ruleset) + count(f:validateProfileId) <=1
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript
constraint:
  key:
    v: inv-11
  severity:
    v: error
  human:
    v: Test action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither.
  expression:
    v: compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())
  xpath:
    v: (f:compareToSourceId and f:compareToSourceExpression) or (f:compareToSourceId and f:compareToSourcePath) or not(f:compareToSourceId or f:compareToSourceExpression or f:compareToSourcePath)
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript
constraint:
  key:
    v: inv-13
  severity:
    v: error
  human:
    v: Test action assert response and response and responseCode SHALL be empty when direction equals request
  expression:
    v: (response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response'
  xpath:
    v: ((count(f:response) + count(f:responseCode)) = 0 and (f:direction/@value='request')) or (count(f:direction) = 0) or (f:direction/@value='response')
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript

id:
  v: TestScript.teardown
path:
  v: TestScript.teardown
short:
  v: A series of required clean up steps
definition:
  v: A series of operations required to clean up after the all the tests are executed (successfully or otherwise).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestScript.teardown
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.teardown.id
path:
  v: TestScript.teardown.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.teardown.extension
path:
  v: TestScript.teardown.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.teardown.modifierExtension
path:
  v: TestScript.teardown.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.teardown.action
path:
  v: TestScript.teardown.action
short:
  v: One or more teardown operations to perform
definition:
  v: The teardown action will only contain an operation.
comment:
  v: An action should contain either an operation or an assertion but not both. It can contain any number of variables.
min:
  v: 1
max:
  v: *
base:
  path:
    v: TestScript.teardown.action
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: TestScript.teardown.action.id
path:
  v: TestScript.teardown.action.id
representation:
  v: xmlAttr
short:
  v: xml:id (or equivalent in JSON)
definition:
  v: unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.teardown.action.extension
path:
  v: TestScript.teardown.action.extension
short:
  v: Additional Content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: TestScript.teardown.action.modifierExtension
path:
  v: TestScript.teardown.action.modifierExtension
short:
  v: Extensions that cannot be ignored
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestScript.teardown.action.operation
path:
  v: TestScript.teardown.action.operation
short:
  v: The teardown operation to perform
definition:
  v: An operation would involve a REST request to a server.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestScript.teardown.action.operation
  min:
    v: 1
  max:
    v: 1
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation
  l: TestScript.setup.action.operation
constraint:
  key:
    v: inv-9
  severity:
    v: error
  human:
    v: Teardown operation SHALL contain either sourceId or targetId or params or url.
  expression:
    v: sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))
  xpath:
    v: f:sourceId or (f:targetId or f:url or (f:params and f:resource)) and (count(f:targetId) + count(f:url) + count(f:params) =1) or (f:type/f:code/@value='capabilities' or f:type/f:code/@value='search' or f:type/f:code/@value='transaction' or f:type/f:code/@value='history')
  source:
    v: http://hl7.org/fhir/StructureDefinition/TestScript
    l: TestScript

element:
  id:
    v: TestScript
  path:
    v: TestScript
element:
  id:
    v: TestScript.metadata.capability.capabilities.extension
  path:
    v: TestScript.metadata.capability.capabilities.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: TestScript.metadata.capability.capabilities.extension:capabilities
  path:
    v: TestScript.metadata.capability.capabilities.extension
  slice name:
    v: capabilities
  short:
    v: R4: capabilities additional types
  definition:
    v: R4: `TestScript.metadata.capability.capabilities` additional types (canonical(http://hl7.org/fhir/StructureDefinition/CapabilityStatement)) additional types from child elements (value)
  comment:
    v: Element `TestScript.metadata.capability.capabilities` is mapped to FHIR STU3 element `TestScript.metadata.capability.capabilities` as `SourceIsBroaderThanTarget`. The mappings for `TestScript.metadata.capability.capabilities` do not cover the following types: canonical. The mappings for `TestScript.metadata.capability.capabilities` do not cover the following types based on type expansion: value. The conformance statement of the server has to contain at a minimum the contents of the reference pointed to by this element.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.metadata.capability.capabilities|0.1.0
      l: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.metadata.capability.capabilities
element:
  id:
    v: TestScript.setup.action.operation.extension
  path:
    v: TestScript.setup.action.operation.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: TestScript.setup.action.operation.extension:method
  path:
    v: TestScript.setup.action.operation.extension
  slice name:
    v: method
  short:
    v: R4: delete | get | options | patch | post | put | head (new)
  definition:
    v: R4: `TestScript.setup.action.operation.method` (new:code)
  comment:
    v: Element `TestScript.setup.action.operation.method` has a context of TestScript.setup.action.operation based on following the parent source element upwards and mapping to `TestScript`. Element `TestScript.setup.action.operation.method` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The primary purpose of the explicit HTTP method is support of HTTP POST method invocation of the FHIR search. Other uses will include support of negative testing.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.operation.method|0.1.0
      l: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.operation.method
element:
  id:
    v: TestScript.setup.action.operation.resource.extension
  path:
    v: TestScript.setup.action.operation.resource.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: TestScript.setup.action.operation.resource.extension:resource
  path:
    v: TestScript.setup.action.operation.resource.extension
  slice name:
    v: resource
  short:
    v: R4: resource
  definition:
    v: R4: `TestScript.setup.action.operation.resource`
  comment:
    v: Element `TestScript.setup.action.operation.resource` is mapped to FHIR STU3 element `TestScript.setup.action.operation.resource` as `SourceIsBroaderThanTarget`. If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.operation.resource|0.1.0
      l: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.operation.resource
element:
  id:
    v: TestScript.setup.action.assert.requestMethod.extension
  path:
    v: TestScript.setup.action.assert.requestMethod.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 0
  max:
    v: *
element:
  id:
    v: TestScript.setup.action.assert.requestMethod.extension:requestMethod
  path:
    v: TestScript.setup.action.assert.requestMethod.extension
  slice name:
    v: requestMethod
  short:
    v: R4: delete | get | options | patch | post | put | head
  definition:
    v: R4: `TestScript.setup.action.assert.requestMethod`
  comment:
    v: Element `TestScript.setup.action.assert.requestMethod` is mapped to FHIR STU3 element `TestScript.setup.action.assert.requestMethod` as `SourceIsBroaderThanTarget`. If "requestMethod" is specified then it will be used in place of "value". The "requestMethod" will evaluate against the last operation's request HTTP operation.
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension

id:
  v: TestScript.setup.action.assert.resource.extension
path:
  v: TestScript.setup.action.assert.resource.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: TestScript.setup.action.assert.resource.extension:resource
path:
  v: TestScript.setup.action.assert.resource.extension
slice name:
  v: resource
short:
  v: R4: resource
definition:
  v: R4: `TestScript.setup.action.assert.resource`
comment:
  v: Element `TestScript.setup.action.assert.resource` is mapped to FHIR STU3 element `TestScript.setup.action.assert.resource` as `SourceIsBroaderThanTarget`. This will be expected resource type in response body e.g. in read, vread, search, etc. See http://build.fhir.org/resourcelist.html for complete list of resource types; e.g. <assert > <resourceType value="Patient" </assert>.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.assert.resource|0.1.0
    l: http://hl7.org/fhir/4.0/StructureDefinition/extension-TestScript.setup.action.assert.resource