TestCases
type: StructureDefinition
node role: treeRoot
id:
  v: TestCases
meta:
  last updated:
    v: 2021-01-02T08:58:31.578+11:00
text:
  status:
    v: extensions
  div:
    v: English Generated Narrative: StructureDefinition TestCases Last updated: 2021-01-02 08:58:31+1100 Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> TestCases C 0..* CanonicalResource Tests to be executed by a Test Runner that knows the tests Elements defined in Ancestors:id, meta, implicitRules, language, <a href="http://hl7.org/fhir/R5/domainresource.html" title="A human-readable narrative that contains a summary of the resource and can 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.">text, contained, <a href="http://hl7.org/fhir/R5/domainresource.html" title="May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.">extension, <a href="http://hl7.org/fhir/R5/domainresource.html" title="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 and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, 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 …
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-category
    l: structuredefinition-category
  value: String
    v: Clinical.Request & Response
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: draft
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
    l: structuredefinition-fmm
  value: Integer
    v: 1
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category
    l: structuredefinition-security-category
  value: Code
    v: business
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: fhir
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/entered-in-error-status
    l: entered-in-error-status
  value: Code
    v: .status = entered-in-error
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/template
    l: template
  value: String
    v: CanonicalResource
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-interface
    l: structuredefinition-interface
  value: Boolean
    v: true
url:
  v: http://hl7.org/fhir/StructureDefinition/TestCases
  l: TestCases
identifier:
  system:
    v: urn:ietf:rfc:3986
    l: 3986
  value:
    v: urn:oid:2.16.840.1.113883.4.642.40.1.42.64
version:
  v: 0.8.0
name:
  v: TestCases
title:
  v: Test Cases
status:
  v: draft
date:
  v: 2021-01-02T08:58:31+11:00
publisher:
  v: HL7 International / FHIR Infrastructure
contact:
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: A plan for executing testing on an artifact or specifications
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
fhir version:
  v: 5.0.0
mapping:
  identity:
    v: workflow
  uri:
    v: http://hl7.org/fhir/workflow
    l: workflow
  name:
    v: Workflow Pattern
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/fivews
    l: fivews
  name:
    v: FiveWs Pattern Mapping
mapping:
  identity:
    v: objimpl
  uri:
    v: http://hl7.org/fhir/object-implementation
    l: object-implementation
  name:
    v: Object Implementation Information
kind:
  v: logical
abstract:
  v: false
type:
  v: TestCases
  l: TestCases
base definition:
  v: http://hl7.org/fhir/StructureDefinition/CanonicalResource
  l: CanonicalResource
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 5.0.0
  element:
    id:
      v: TestCases
    extension:
      url:
        v: http://hl7.org/fhir/build/StructureDefinition/svg
        l: http://hl7.org/fhir/build/StructureDefinition/svg
      value: Code
        v: 0,0
    path:
      v: TestCases
    short:
      v: Tests to be executed by a Test Runner that knows the tests
    definition:
      v: A set of test specifications that are able to be executed by a TestRunner that knows how to interpret the tests and execute them.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: CanonicalResource
      min:
        v: 1
      max:
        v: 1
    constraint:
      key:
        v: cnl-0
      severity:
        v: warning
      human:
        v: Name should be usable as an identifier for the module by machine processing applications such as code generation
      expression:
        v: name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')
      source:
        v: http://hl7.org/fhir/StructureDefinition/CanonicalResource
        l: CanonicalResource
    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()
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error

v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource

v: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()

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()
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  l: DomainResource

key:
  v: dom-5
severity:
  v: error
human:
  v: If a resource is contained in another resource, it SHALL NOT have a security label
expression:
  v: contained.meta.security.empty()
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  l: DomainResource

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice
    l: elementdefinition-bestpractice
  value: Boolean
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation
    l: elementdefinition-bestpractice-explanation
  value: Markdown
    v: When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time.
key:
  v: dom-6
severity:
  v: warning
human:
  v: A resource should have narrative for robust management
expression:
  v: text.`div`.exists()
source:
  v: http://hl7.org/fhir/StructureDefinition/DomainResource
  l: DomainResource

v: false

v: false

v: false

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

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

id:
  v: TestCases.id
path:
  v: TestCases.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: Within the context of the FHIR RESTful interactions, the resource has an id except for cases like the create and conditional update. Otherwise, the use of the resouce id depends on the given use case.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: id
      l: id
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: TestCases.meta
path:
  v: TestCases.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 might 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true

id:
  v: TestCases.implicitRules
path:
  v: TestCases.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. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
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. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of its narrative along with other profiles, value sets, etc.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation
is summary:
  v: true

id:
  v: TestCases.language
path:
  v: TestCases.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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: required
  description:
    v: IETF language tag for a human language
  value set:
    v: http://hl7.org/fhir/ValueSet/all-languages|5.0.0
    l: http://hl7.org/fhir/ValueSet/all-languages
  additional:
    purpose:
      v: starter
    value set:
      v: http://hl7.org/fhir/ValueSet/languages|5.0.0
      l: http://hl7.org/fhir/ValueSet/languages

id:
  v: TestCases.text
path:
  v: TestCases.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 can 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 a 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 information 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-6
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: TestCases.contained
path:
  v: TestCases.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, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning.
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. Contained resources may have profiles and tags in their meta elements, but SHALL NOT have security labels.
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
condition:
  v: dom-2
condition:
  v: dom-4
condition:
  v: dom-3
condition:
  v: dom-5
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestCases.extension
path:
  v: TestCases.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. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can 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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  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()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestCases.modifierExtension
path:
  v: TestCases.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 and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R5/extensibility.html#modifierExtension).
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
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  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()
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: TestCases.url
path:
  v: TestCases.url
short:
  v: Canonical identifier for this test plan, represented as a URI (globally unique)
definition:
  v: An absolute URI that is used to identify this test plan when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this test plan is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test plan is stored on different servers.
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. The determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author. Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). In some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.
requirements:
  v: Allows the test plan to be referenced by a single globally unique identifier.
alias:
  v: url
alias:
  v: authoritative-url
alias:
  v: destination
alias:
  v: identity
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.url
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
constraint:
  key:
    v: cnl-1
  severity:
    v: warning
  human:
    v: URL should not contain | or # - these characters make processing canonical references problematic
  expression:
    v: exists() implies matches('^[^|# ]+$')
  source:
    v: http://hl7.org/fhir/StructureDefinition/CanonicalResource
    l: CanonicalResource
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.url
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier

id:
  v: TestCases.identifier
path:
  v: TestCases.identifier
short:
  v: Business identifier for the test plan
definition:
  v: A formal identifier that is used to identify this test plan 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, and can then identify this {{title}} 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: *
base:
  path:
    v: CanonicalResource.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.identifier
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.identifier
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: TestCases.version
path:
  v: TestCases.version
short:
  v: Business version of the test plan
definition:
  v: The identifier that is used to identify this version of the test plan when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test plan 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 plan instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the test plan with the format [url]|[version]. The version SHOULD NOT contain a '#' - see [Business Version](resource.html#bv-format).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.version
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.version
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.version

id:
  v: TestCases.versionAlgorithm[x]
path:
  v: TestCases.versionAlgorithm[x]
short:
  v: How to compare versions
definition:
  v: Indicates the mechanism used to compare versions to determine which is more current.
comment:
  v: If set as a string, this is a FHIRPath expression that has two additional context variables passed in - %version1 and %version2 and will return a negative number if version1 is newer, a positive number if version2 and a 0 if the version ordering can't be successfully be determined.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.versionAlgorithm[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
type:
  code:
    v: Coding
    l: Coding
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/ValueSet/version-algorithm
    l: version-algorithm

id:
  v: TestCases.name
path:
  v: TestCases.name
short:
  v: Name for this test plan (computer friendly)
definition:
  v: A natural language name identifying the test plan. 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 alphanumeric type name to ensure that it is machine-processing friendly.
requirements:
  v: Support code generation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
condition:
  v: cnl-0
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.name

id:
  v: TestCases.title
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.title
short:
  v: Name for this test plan (human friendly)
definition:
  v: A short, descriptive, user-friendly title for the test plan.
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: CanonicalResource.title
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.title

id:
  v: TestCases.status
path:
  v: TestCases.status
short:
  v: draft | active | retired | unknown
definition:
  v: The status of this test plan. Enables tracking the life-cycle of the content.
comment:
  v: Allows filtering of test plans that are appropriate for use versus not. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
requirements:
  v: Enables tracking the life-cycle of the content and filtering of {{title}}s that are appropriate for use versus not.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: CanonicalResource.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not use a retired {{title}} without due consideration
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: PublicationStatus
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: required
  description:
    v: The lifecycle status of an artifact.
  value set:
    v: http://hl7.org/fhir/ValueSet/publication-status
    l: publication-status
mapping:
  identity:
    v: workflow
  map:
    v: Definition.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status

id:
  v: TestCases.experimental
path:
  v: TestCases.experimental
short:
  v: For testing only - never for real usage
definition:
  v: A Boolean value to indicate that this test plan is authored for testing purposes (or education/evaluation/marketing) and no version of this resource will ever be intended for genuine usage.
comment:
  v: Allows filtering of test plans that are appropriate for use versus not. Experimental resources might include example instances in implementation guides, instances created solely for testing purposes, etc. If experimental is 'true' for any version of a resource, it should be true for all versions of the resource. (If experimental changes, then it is being misused or a resource that was never intended for real-world use has unexpectedly changed its purpose.). Experimental resources are not expected to be stable and may well have breaking changes without a corresponding change to the 'version' element.
requirements:
  v: Enables experimental content to be developed following the same lifecycle that would be used for a production-level test plan.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.experimental
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
    l: boolean
meaning when missing:
  v: If absent, this resource is treated as though it is not experimental.
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.experimental
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: TestCases.date
path:
  v: TestCases.date
short:
  v: Date last changed
definition:
  v: The date (and optionally time) when the test plan was last significantly changed. The date must change 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 plan changes.
comment:
  v: The date is often not tracked until the resource is published, but may be present on draft content. Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the test plan. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
alias:
  v: Revision Date
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.date
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded

id:
  v: TestCases.publisher
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.publisher
short:
  v: Name of the publisher/steward (organization or individual)
definition:
  v: The name of the organization or individual responsible for the release and ongoing maintenance of the test plan.
comment:
  v: Usually an organization but may be an individual. The publisher (or steward) of the test plan is the organization or individual primarily responsible for the maintenance and upkeep of the test plan. 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 plan. This item SHOULD be populated unless the information is available from context.
requirements:
  v: Helps establish the "authority/credibility" of the test plan. May also allow for contact.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.publisher
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.publisher
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness

id:
  v: TestCases.contact
path:
  v: TestCases.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. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
min:
  v: 0
max:
  v: *
base:
  path:
    v: CanonicalResource.contact
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: ContactDetail
    l: ContactDetail
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.contact

id:
  v: TestCases.description
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.description
short:
  v: Natural language description of the test plan
definition:
  v: A free text natural language description of the test plan from a consumer's perspective.
comment:
  v: This description can be used to capture details such as 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 plan 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 test plan is presumed to be the predominant language in the place the test plan was created).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.description

id:
  v: TestCases.useContext
path:
  v: TestCases.useContext
short:
  v: The context that 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 contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate test plan instances.
comment:
  v: When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.
requirements:
  v: Assist in searching for appropriate content.
min:
  v: 0
max:
  v: *
base:
  path:
    v: CanonicalResource.useContext
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: UsageContext
    l: UsageContext
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.useContext

id:
  v: TestCases.jurisdiction
path:
  v: TestCases.jurisdiction
short:
  v: Intended jurisdiction where the test plan applies (if applicable)
definition:
  v: A legal or geographic region in which the test plan is intended to be used.
comment:
  v: It may be possible for the test plan to be used in jurisdictions other than those for which it was originally designed or intended. DEPRECATION NOTE: For consistency, implementations are encouraged to migrate to using the new 'jurisdiction' code in the useContext element. (I.e. useContext.code indicating http://terminology.hl7.org/CodeSystem/usage-context-type#jurisdiction and useContext.valueCodeableConcept indicating the jurisdiction.)
min:
  v: 0
max:
  v: *
base:
  path:
    v: CanonicalResource.jurisdiction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Jurisdiction
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: extensible
  description:
    v: Countries and regions within which this artifact is targeted for use.
  value set:
    v: http://hl7.org/fhir/ValueSet/jurisdiction
    l: jurisdiction
mapping:
  identity:
    v: workflow
  map:
    v: Definition.jurisdiction

id:
  v: TestCases.purpose
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.purpose
short:
  v: Why this test plan is defined
definition:
  v: Explanation of why this test plan is needed and why it has been designed as it has.
comment:
  v: This element does not describe the usage of the test plan 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 plan.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.purpose
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.purpose
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: TestCases.copyright
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.copyright
short:
  v: Use and/or publishing restrictions
definition:
  v: A copyright statement relating to the test plan and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test plan. The short copyright declaration (e.g. (c) '2015+ xyz organization' should be sent in the copyrightLabel element.
comment:
  v: The short copyright declaration (e.g. (c) '2015+ xyz organization' should be sent in the copyrightLabel element.
requirements:
  v: Consumers must be able to determine any legal restrictions on the use of the test plan and/or its content.
alias:
  v: License
alias:
  v: Restrictions
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.copyright
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: markdown
    l: markdown
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: workflow
  map:
    v: Definition.copyright
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: TestCases.copyrightLabel
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.copyrightLabel
short:
  v: Copyright holder and year(s)
definition:
  v: A short string (<50 characters), suitable for inclusion in a page footer that identifies the copyright holder, effective period, and optionally whether rights are resctricted. (e.g. 'All rights reserved', 'Some rights reserved').
comment:
  v: The (c) symbol should NOT be included in this string. It will be added by software when rendering the notation. Full details about licensing, restrictions, warrantees, etc. goes in the more general 'copyright' element.
requirements:
  v: Defines the content expected to be rendered in all representations of the artifact.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: CanonicalResource.copyrightLabel
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
must support:
  v: false
is modifier:
  v: false
is summary:
  v: false

id:
  v: TestCases.scope
path:
  v: TestCases.scope
short:
  v: The scope - what these test cases are testing
definition:
  v: The scope indicates what kind of systems these test cases are intended to test.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.scope
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.scope.reference
path:
  v: TestCases.scope.reference
short:
  v: A reference to what is being tested
definition:
  v: A reference to what is being tested.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.scope.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ActorDefinition
    l: ActorDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImplementationGuide
    l: ImplementationGuide
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureDefinition
    l: StructureDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CapabilityStatement
    l: CapabilityStatement
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Requirements
    l: Requirements

id:
  v: TestCases.scope.description
path:
  v: TestCases.scope.description
short:
  v: Description of what the scope is exists / what is being tested
definition:
  v: Description of what the scope is does / what is being tested.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.scope.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.dependency
path:
  v: TestCases.dependency
short:
  v: Test cases that must be passed before these test cases are meaningful to execute
definition:
  v: Another set of test cases that must be passed before these test cases are meaningful to execute. These test cases prove functionality that these tests require to execute.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.dependency
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.dependency.reference
path:
  v: TestCases.dependency.reference
short:
  v: The Test Cases
definition:
  v: The test cases.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestCases.dependency.reference
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/TestCases
    l: TestCases

id:
  v: TestCases.dependency.description
path:
  v: TestCases.dependency.description
short:
  v: Description of what the dependency exists / why it was defined
definition:
  v: Description of what this mode does / why it was defined. This should explain to a tester why the .
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.dependency.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.runner
path:
  v: TestCases.runner
short:
  v: URL Documentation for a runner that executes these tests
definition:
  v: URL of documentation that explains how a runner would read these tests, and use them to actually test out a tool.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestCases.runner
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: url
    l: url
is summary:
  v: true

id:
  v: TestCases.mode
path:
  v: TestCases.mode
short:
  v: A mode that can be passed to runner - affects test content
definition:
  v: A mode that can be passed to a runner running these these tests, that affects test content and influences how the tests are executed or evaulated (or even if they run).
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.mode
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.mode.code
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.mode.code
short:
  v: The code that identifies the mode
definition:
  v: The code by which the mode is identified when passed to runner. This code is used to select which suite and tests are run, and which parameters and inputs are used. Codes are entirely at the descretion of the TestCases, but typically 'advanced' or 'general' are the kind of codes that could be used.
comment:
  v: The code should be a simple alphanumeric type name to ensure that it is machine-processing friendly.
requirements:
  v: Allows the runner to select which tests and parameters are relevant for this mode.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestCases.mode.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.mode.description
path:
  v: TestCases.mode.description
short:
  v: Description of what this mode exists / why it was defined
definition:
  v: Description of what this mode does / why it was defined. This should explain to a tester when they should use the mode.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.mode.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.parameter
path:
  v: TestCases.parameter
short:
  v: Parameter defined for all tests
definition:
  v: A parameter passed to the runner when executing tests. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.parameter
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.parameter.name
path:
  v: TestCases.parameter.name
short:
  v: Name per Runner Definition
definition:
  v: Name for the parameter as defined by the runner definition.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestCases.parameter.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.parameter.value[x]
path:
  v: TestCases.parameter.value[x]
short:
  v: Value of this parameter
definition:
  v: The value of the parameter. If the value is an Expression, the definition of the runner describes what kind of expressions are allowed and the features/capabilities that they can make use of.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestCases.parameter.value[x]
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: integer
    l: integer
type:
  code:
    v: decimal
    l: decimal
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: uri
    l: uri
type:
  code:
    v: Coding
    l: Coding
type:
  code:
    v: Quantity
    l: Quantity
type:
  code:
    v: Expression
    l: Expression

id:
  v: TestCases.parameter.mode
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.parameter.mode
short:
  v: A mode that must be true for this parameter to be used
definition:
  v: If this mode is not passed to the runner, then this parameter will not be used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.parameter.mode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If no modes are listed, the parameter is always used, unless there is a parameter with the same name that is selected by mode

id:
  v: TestCases.suite
path:
  v: TestCases.suite
short:
  v: A suite of tests that share a common set up
definition:
  v: A suite of tests that all share a common set up, and can be executed as a group.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.suite
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.suite.name
path:
  v: TestCases.suite.name
short:
  v: The name of this suite - unique in the TestCases resource
definition:
  v: The name by which this suite is known by in the test system. The name must be unique in the amongst the suites.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestCases.suite.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.description
path:
  v: TestCases.suite.description
short:
  v: Description of what this suite does / why it was defined
definition:
  v: Description of what this suite does / why it was defined. This should explain to a tester what they should know when deciding which tests to run.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.mode
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.suite.mode
short:
  v: Mode required to run this suite
definition:
  v: If this mode is not passed to the runner, then this suite will not be run.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.mode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If no modes are listed, the suite is always executed

id:
  v: TestCases.suite.input
path:
  v: TestCases.suite.input
short:
  v: Resources used in the tests in this suite
definition:
  v: The resources used in the tests in this suite. How exactly they are used depends on the definition of the runner .
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.suite.input
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Base
    l: Base
constraint:
  key:
    v: tp-1
  severity:
    v: error
  human:
    v: Either a file, or a resource, but not both
  expression:
    v: file.exists() xor resource.exists()

id:
  v: TestCases.suite.input.name
path:
  v: TestCases.suite.input.name
short:
  v: A name for this resource (per runner definition)
definition:
  v: A name that identifies this resource. The runner definition defines whether there must be a name, and what names there are.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.input.name
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.input.file
path:
  v: TestCases.suite.input.file
short:
  v: A file containing a resource used in the tests
definition:
  v: A file containing a resource used in the tests.
comment:
  v: Filename is relative to the folder/directory containing this TestCases
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.input.file
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.input.resource
path:
  v: TestCases.suite.input.resource
short:
  v: An inline resource used in the tests
definition:
  v: An inline resource used in the tests. How exactly it is used depends on the definition of the runner.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.input.resource
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Resource
    l: Resource

id:
  v: TestCases.suite.input.mode
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.suite.input.mode
short:
  v: A mode that must be true for this resource to be used
definition:
  v: If this mode is not passed to the runner, then this resource will not be used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.input.mode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If no modes are listed, the resource is always used, unless there is another entry with the same name that is selected by mode

id:
  v: TestCases.suite.parameter
path:
  v: TestCases.suite.parameter
short:
  v: Parameter defined by the suite
definition:
  v: A parameter passed to the runner when executing tests. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.suite.parameter
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.parameter
  l: TestCases.parameter

id:
  v: TestCases.suite.test
path:
  v: TestCases.suite.test
short:
  v: A test in the test suite
definition:
  v: An actual test in the test suite.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.suite.test
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.suite.test.name
path:
  v: TestCases.suite.test.name
short:
  v: The name of this test - unique in the suite
definition:
  v: The name by which this test is known by in the test system. The name must be unique in the suite.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: TestCases.suite.test.name
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.test.description
path:
  v: TestCases.suite.test.description
short:
  v: Description of what this test does / why it was defined
definition:
  v: Description of what this test does / why it was defined. This should explain to a tester what they should know when looking at failing test results.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.test.description
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.test.operation
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.suite.test.operation
short:
  v: Operation that is executed during this test (per definition of runner)
definition:
  v: A code that identifies the operation executed for this test. One of the codes defined in the definition of the runner.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.test.operation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code

id:
  v: TestCases.suite.test.mode
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.suite.test.mode
short:
  v: Mode required to run this test
definition:
  v: If this mode is not passed to the runner, then this test will not be run.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.test.mode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If no modes are listed, the test is always executed

id:
  v: TestCases.suite.test.parameter
path:
  v: TestCases.suite.test.parameter
short:
  v: Parameter defined by the test
definition:
  v: A parameter passed to the runner when executing tests. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.suite.test.parameter
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.parameter
  l: TestCases.parameter

id:
  v: TestCases.suite.test.input
path:
  v: TestCases.suite.test.input
short:
  v: Resources used when executing this test (per runner definition)
definition:
  v: The resources used when executing this test. How exactly they are used depends on the definition of the runner.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.suite.test.input
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.suite.input
  l: TestCases.suite.input

id:
  v: TestCases.suite.test.expected
path:
  v: TestCases.suite.test.expected
short:
  v: Resources expected as output from this test (per runner definition, often Matchetypes)
definition:
  v: Resources expected as output from this test. Often, but not always, these resources are Matchetype resources. How exactly it is used depends on the definition of the runner. How exactly it is used depends on the definition of the runner, but the expectation is that these are the expected output, to which the actual output is compared.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.suite.test.expected
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.suite.input
  l: TestCases.suite.input

id:
  v: TestCases.suite.test.assertion
path:
  v: TestCases.suite.test.assertion
short:
  v: Assertions that can be executed against the output of the tests
definition:
  v: One or more assertions that can be executed against the output of the tests. These may be used with matchetypes to make rules about content the matchetypes leave open.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.suite.test.assertion
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Base
    l: Base
constraint:
  key:
    v: tp-2
  severity:
    v: error
  human:
    v: At least an expression or a human readable rule must exist
  expression:
    v: expression.exists() or human.exists()

id:
  v: TestCases.suite.test.assertion.focus
path:
  v: TestCases.suite.test.assertion.focus
short:
  v: Which output the assertion is tested on (by name, if there is more than one)
definition:
  v: Resources expected as output from this test. Often, but not always, these resources are Matchetype resources.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.test.assertion.focus
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.test.assertion.severity
path:
  v: TestCases.suite.test.assertion.severity
short:
  v: fatal | error | warning | information | success; fatal+error = fail
definition:
  v: Resources expected as output from this test. Only error and fatal assertions are considered to cause a test to fail. Often, but not always, these resources are Matchetype resources. How exactly it is used depends on the definition of the runner.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.test.assertion.severity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  strength:
    v: required
  description:
    v: The severity of the assertion
  value set:
    v: http://hl7.org/fhir/ValueSet/issue-severity|5.0.0
    l: http://hl7.org/fhir/ValueSet/issue-severity

id:
  v: TestCases.suite.test.assertion.expression
path:
  v: TestCases.suite.test.assertion.expression
short:
  v: Technical Expression of the assertion
definition:
  v: Resources expected as output from this test. Often, but not always, these resources are Matchetype resources. How exactly it is used depends on the definition of the runner.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.test.assertion.expression
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Expression
    l: Expression

id:
  v: TestCases.suite.test.assertion.human
path:
  v: TestCases.suite.test.assertion.human
short:
  v: Human readable description of the assertion
definition:
  v: A human readable description of the assertion.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.test.assertion.human
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.test.assertion.mode
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.suite.test.assertion.mode
short:
  v: A mode that must be true for this assertion to apply
definition:
  v: If this mode is not passed to the runner, then this assertion will not be used.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: TestCases.suite.test.assertion.mode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If no modes are listed, the assertion is always used, unless there is another assertion with the same name that is selected by mode

id:
  v: TestCases.suite.suite
path:
  v: TestCases.suite.suite
short:
  v: A nested suite of tests
definition:
  v: A nested set of tests.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.suite.suite
  min:
    v: 0
  max:
    v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.suite
  l: TestCases.suite

id:
  v: TestCases.suite.plan
path:
  v: TestCases.suite.plan
short:
  v: A nested set of test plans
definition:
  v: A nested set of test plans that run within the context of this suite. Typically, the runner must be the same in the nested test plans.
comment:
  v: This is a reference to allow for direct local file references etc, but since TestCases is a CanonicalResource, it can also be resolved as a canonical reference.
min:
  v: 0
max:
  v: *
base:
  path:
    v: TestCases.suite.plan
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/TestCases
    l: TestCases

element:
  id:
    v: TestCases
  extension:
    url:
      v: http://hl7.org/fhir/build/StructureDefinition/svg
      l: http://hl7.org/fhir/build/StructureDefinition/svg
    value: Code
      v: 0,0
  path:
    v: TestCases
  short:
    v: Tests to be executed by a Test Runner that knows the tests
  definition:
    v: A set of test specifications that are able to be executed by a TestRunner that knows how to interpret the tests and execute them.
  min:
    v: 0
  max:
    v: *
  constraint:
    key:
      v: cnl-0
    severity:
      v: warning
    human:
      v: Name should be usable as an identifier for the module by machine processing applications such as code generation
    expression:
      v: name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')
    source:
      v: http://hl7.org/fhir/StructureDefinition/TestCases
      l: TestCases
  mapping:
    identity:
      v: w5
    map:
      v: conformance.misc
element:
  id:
    v: TestCases.url
  path:
    v: TestCases.url
  short:
    v: Canonical identifier for this test plan, represented as a URI (globally unique)
  definition:
    v: An absolute URI that is used to identify this test plan when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this test plan is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test plan is stored on different servers.
  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. The determination of when to create a new version of a resource (same url, new version) vs. defining a new artifact is up to the author. Considerations for making this decision are found in [Technical and Business Versions](resource.html#versions). In some cases, the resource can no longer be found at the stated url, but the url itself cannot change. Implementations can use the [meta.source](resource.html#meta) element to indicate where the current master source of the resource can be found.
  requirements:
    v: Allows the test plan to be referenced by a single globally unique identifier.
  alias:
    v: url
  alias:
    v: authoritative-url
  alias:
    v: destination
  alias:
    v: identity
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: uri
      l: uri
  constraint:
    key:
      v: cnl-1
    severity:
      v: warning
    human:
      v: URL should not contain | or # - these characters make processing canonical references problematic
    expression:
      v: exists() implies matches('^[^|# ]+$')
    source:
      v: http://hl7.org/fhir/StructureDefinition/CanonicalResource
      l: CanonicalResource
  is summary:
    v: true
  mapping:
    identity:
      v: workflow
    map:
      v: Definition.url
  mapping:
    identity:
      v: w5
    map:
      v: FiveWs.identifier
element:
  id:
    v: TestCases.identifier
  path:
    v: TestCases.identifier
  short:
    v: Business identifier for the test plan
  definition:
    v: A formal identifier that is used to identify this test plan when it is represented in other formats, or referenced in a specification, model, design or an instance.
  requirements:
    v: Allows externally provided and/or usable business identifiers to be easily associated with the module.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: Identifier
      l: Identifier
  is summary:
    v: true
  mapping:
    identity:
      v: workflow
    map:
      v: Definition.identifier
  mapping:
    identity:
      v: w5
    map:
      v: FiveWs.identifier
  mapping:
    identity:
      v: objimpl
    map:
      v: no-gen-base
element:
  id:
    v: TestCases.version
  path:
    v: TestCases.version
  short:
    v: Business version of the test plan
  definition:
    v: The identifier that is used to identify this version of the test plan when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test plan 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 plan instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the test plan with the format [url]|[version]. The version SHOULD NOT contain a '#' - see [Business Version](resource.html#bv-format).
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  is summary:
    v: true
  mapping:
    identity:
      v: workflow
    map:
      v: Definition.version
  mapping:
    identity:
      v: w5
    map:
      v: FiveWs.version
element:
  id:
    v: TestCases.versionAlgorithm[x]
  path:
    v: TestCases.versionAlgorithm[x]
  short:
    v: How to compare versions
  definition:
    v: Indicates the mechanism used to compare versions to determine which is more current.
  comment:
    v: If set as a string, this is a FHIRPath expression that has two additional context variables passed in - %version1 and %version2 and will return a negative number if version1 is newer, a positive number if version2 and a 0 if the version ordering can't be successfully be determined.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: string
      l: string
  type:
    code:
      v: Coding
      l: Coding
  is summary:
    v: true
  binding:
    strength:
      v: extensible
    value set:
      v: http://hl7.org/fhir/ValueSet/version-algorithm
      l: version-algorithm
element:
  id:
    v: TestCases.name
  path:
    v: TestCases.name
  short:
    v: Name for this test plan (computer friendly)
  definition:
    v: A natural language name identifying the test plan. 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 alphanumeric type name to ensure that it is machine-processing friendly.
  requirements:
    v: Support code generation.
  min:
    v: 0

v: 1

code:
  v: string
  l: string

v: cnl-0

v: true

identity:
  v: workflow
map:
  v: Definition.name

id:
  v: TestCases.title
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.title
short:
  v: Name for this test plan (human friendly)
definition:
  v: A short, descriptive, user-friendly title for the test plan.
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
type:
  code:
    v: string
    l: string
mapping:
  identity:
    v: workflow
  map:
    v: Definition.title

id:
  v: TestCases.status
path:
  v: TestCases.status
short:
  v: draft | active | retired | unknown
definition:
  v: The status of this test plan. Enables tracking the life-cycle of the content.
comment:
  v: Allows filtering of test plans that are appropriate for use versus not. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
    l: code
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not use a retired {{title}} without due consideration
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: PublicationStatus
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: required
  description:
    v: The lifecycle status of an artifact.
  value set:
    v: http://hl7.org/fhir/ValueSet/publication-status
    l: publication-status
mapping:
  identity:
    v: workflow
  map:
    v: Definition.status
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.status

id:
  v: TestCases.experimental
path:
  v: TestCases.experimental
short:
  v: For testing only - never for real usage
definition:
  v: A Boolean value to indicate that this test plan is authored for testing purposes (or education/evaluation/marketing) and no version of this resource will ever be intended for genuine usage.
comment:
  v: Allows filtering of test plans that are appropriate for use versus not. Experimental resources might include example instances in implementation guides, instances created solely for testing purposes, etc. If experimental is 'true' for any version of a resource, it should be true for all versions of the resource. (If experimental changes, then it is being misused or a resource that was never intended for real-world use has unexpectedly changed its purpose.). Experimental resources are not expected to be stable and may well have breaking changes without a corresponding change to the 'version' element.
requirements:
  v: Enables experimental content to be developed following the same lifecycle that would be used for a production-level test plan.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
    l: boolean
meaning when missing:
  v: If absent, this resource is treated as though it is not experimental.
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.experimental
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.class

id:
  v: TestCases.date
path:
  v: TestCases.date
short:
  v: Date last changed
definition:
  v: The date (and optionally time) when the test plan was last significantly changed. The date must change 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 plan changes.
comment:
  v: The date is often not tracked until the resource is published, but may be present on draft content. Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the test plan. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
alias:
  v: Revision Date
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.date
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.recorded

id:
  v: TestCases.publisher
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.publisher
short:
  v: Name of the publisher/steward (organization or individual)
definition:
  v: The name of the organization or individual responsible for the release and ongoing maintenance of the test plan.
comment:
  v: Usually an organization but may be an individual. The publisher (or steward) of the test plan is the organization or individual primarily responsible for the maintenance and upkeep of the test plan. 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 plan. This item SHOULD be populated unless the information is available from context.
requirements:
  v: Helps establish the "authority/credibility" of the test plan. May also allow for contact.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.publisher
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.witness

id:
  v: TestCases.contact
path:
  v: TestCases.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. See guidance around (not) making local changes to elements [here](canonicalresource.html#localization).
min:
  v: 0
max:
  v: *
type:
  code:
    v: ContactDetail
    l: ContactDetail
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.contact

id:
  v: TestCases.description
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.description
short:
  v: Natural language description of the test plan
definition:
  v: A free text natural language description of the test plan from a consumer's perspective.
comment:
  v: This description can be used to capture details such as 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 plan 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 test plan is presumed to be the predominant language in the place the test plan was created).
min:
  v: 0
max:
  v: 1
type:
  code:
    v: markdown
    l: markdown
mapping:
  identity:
    v: workflow
  map:
    v: Definition.description

id:
  v: TestCases.useContext
path:
  v: TestCases.useContext
short:
  v: The context that 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 contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate test plan instances.
comment:
  v: When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.
requirements:
  v: Assist in searching for appropriate content.
min:
  v: 0
max:
  v: *
type:
  code:
    v: UsageContext
    l: UsageContext
is summary:
  v: true
mapping:
  identity:
    v: workflow
  map:
    v: Definition.useContext

id:
  v: TestCases.jurisdiction
path:
  v: TestCases.jurisdiction
short:
  v: Intended jurisdiction where the test plan applies (if applicable)
definition:
  v: A legal or geographic region in which the test plan is intended to be used.
comment:
  v: It may be possible for the test plan to be used in jurisdictions other than those for which it was originally designed or intended. DEPRECATION NOTE: For consistency, implementations are encouraged to migrate to using the new 'jurisdiction' code in the useContext element. (I.e. useContext.code indicating http://terminology.hl7.org/CodeSystem/usage-context-type#jurisdiction and useContext.valueCodeableConcept indicating the 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
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
      l: elementdefinition-isCommonBinding
    value: Boolean
      v: true
  strength:
    v: extensible
  description:
    v: Countries and regions within which this artifact is targeted for use.
  value set:
    v: http://hl7.org/fhir/ValueSet/jurisdiction
    l: jurisdiction
mapping:
  identity:
    v: workflow
  map:
    v: Definition.jurisdiction

id:
  v: TestCases.purpose
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.purpose
short:
  v: Why this test plan is defined
definition:
  v: Explanation of why this test plan is needed and why it has been designed as it has.
comment:
  v: This element does not describe the usage of the test plan 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 plan.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: markdown
    l: markdown
mapping:
  identity:
    v: workflow
  map:
    v: Definition.purpose
mapping:
  identity:
    v: w5
  map:
    v: FiveWs.why[x]
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: TestCases.copyright
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.copyright
short:
  v: Use and/or publishing restrictions
definition:
  v: A copyright statement relating to the test plan and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test plan. The short copyright declaration (e.g. (c) '2015+ xyz organization' should be sent in the copyrightLabel element.
requirements:
  v: Consumers must be able to determine any legal restrictions on the use of the test plan and/or its content.
alias:
  v: License
alias:
  v: Restrictions
min:
  v: 0
max:
  v: 1
type:
  code:
    v: markdown
    l: markdown
mapping:
  identity:
    v: workflow
  map:
    v: Definition.copyright
mapping:
  identity:
    v: objimpl
  map:
    v: no-gen-base

id:
  v: TestCases.copyrightLabel
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable
    l: elementdefinition-translatable
  value: Boolean
    v: true
path:
  v: TestCases.copyrightLabel
short:
  v: Copyright holder and year(s)
definition:
  v: A short string (<50 characters), suitable for inclusion in a page footer that identifies the copyright holder, effective period, and optionally whether rights are resctricted. (e.g. 'All rights reserved', 'Some rights reserved').
comment:
  v: The (c) symbol should NOT be included in this string. It will be added by software when rendering the notation. Full details about licensing, restrictions, warrantees, etc. goes in the more general 'copyright' element.
requirements:
  v: Defines the content expected to be rendered in all representations of the artifact.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.scope
path:
  v: TestCases.scope
short:
  v: The scope - what these test cases are testing
definition:
  v: The scope indicates what kind of systems these test cases are intended to test.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.scope.reference
path:
  v: TestCases.scope.reference
short:
  v: A reference to what is being tested
definition:
  v: A reference to what is being tested.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ActorDefinition
    l: ActorDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/ImplementationGuide
    l: ImplementationGuide
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureDefinition
    l: StructureDefinition
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/CapabilityStatement
    l: CapabilityStatement
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Requirements
    l: Requirements

id:
  v: TestCases.scope.description
path:
  v: TestCases.scope.description
short:
  v: Description of what the scope is exists / what is being tested
definition:
  v: Description of what the scope is does / what is being tested.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.dependency
path:
  v: TestCases.dependency
short:
  v: Test cases that must be passed before these test cases are meaningful to execute
definition:
  v: Another set of test cases that must be passed before these test cases are meaningful to execute. These test cases prove functionality that these tests require to execute.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.dependency.reference
path:
  v: TestCases.dependency.reference
short:
  v: The Test Cases
definition:
  v: The test cases.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: canonical
    l: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/TestCases
    l: TestCases

id:
  v: TestCases.dependency.description
path:
  v: TestCases.dependency.description
short:
  v: Description of what the dependency exists / why it was defined
definition:
  v: Description of what this mode does / why it was defined. This should explain to a tester why the .
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.runner
path:
  v: TestCases.runner
short:
  v: URL Documentation for a runner that executes these tests
definition:
  v: URL of documentation that explains how a runner would read these tests, and use them to actually test out a tool.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: url
    l: url
is summary:
  v: true

id:
  v: TestCases.mode
path:
  v: TestCases.mode
short:
  v: A mode that can be passed to runner - affects test content
definition:
  v: A mode that can be passed to a runner running these these tests, that affects test content and influences how the tests are executed or evaulated (or even if they run).
min:
  v: 0
max:
  v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.mode.code
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.mode.code
short:
  v: The code that identifies the mode
definition:
  v: The code by which the mode is identified when passed to runner. This code is used to select which suite and tests are run, and which parameters and inputs are used. Codes are entirely at the descretion of the TestCases, but typically 'advanced' or 'general' are the kind of codes that could be used.
comment:
  v: The code should be a simple alphanumeric type name to ensure that it is machine-processing friendly.
requirements:
  v: Allows the runner to select which tests and parameters are relevant for this mode.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.mode.description
path:
  v: TestCases.mode.description
short:
  v: Description of what this mode exists / why it was defined
definition:
  v: Description of what this mode does / why it was defined. This should explain to a tester when they should use the mode.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.parameter
path:
  v: TestCases.parameter
short:
  v: Parameter defined for all tests
definition:
  v: A parameter passed to the runner when executing tests. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.parameter.name
path:
  v: TestCases.parameter.name
short:
  v: Name per Runner Definition
definition:
  v: Name for the parameter as defined by the runner definition.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.parameter.value[x]
path:
  v: TestCases.parameter.value[x]
short:
  v: Value of this parameter
definition:
  v: The value of the parameter. If the value is an Expression, the definition of the runner describes what kind of expressions are allowed and the features/capabilities that they can make use of.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string
type:
  code:
    v: boolean
    l: boolean
type:
  code:
    v: integer
    l: integer
type:
  code:
    v: decimal
    l: decimal
type:
  code:
    v: dateTime
    l: dateTime
type:
  code:
    v: uri
    l: uri
type:
  code:
    v: Coding
    l: Coding
type:
  code:
    v: Quantity
    l: Quantity
type:
  code:
    v: Expression
    l: Expression

id:
  v: TestCases.parameter.mode
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.parameter.mode
short:
  v: A mode that must be true for this parameter to be used
definition:
  v: If this mode is not passed to the runner, then this parameter will not be used.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If no modes are listed, the parameter is always used, unless there is a parameter with the same name that is selected by mode

id:
  v: TestCases.suite
path:
  v: TestCases.suite
short:
  v: A suite of tests that share a common set up
definition:
  v: A suite of tests that all share a common set up, and can be executed as a group.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.suite.name
path:
  v: TestCases.suite.name
short:
  v: The name of this suite - unique in the TestCases resource
definition:
  v: The name by which this suite is known by in the test system. The name must be unique in the amongst the suites.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.description
path:
  v: TestCases.suite.description
short:
  v: Description of what this suite does / why it was defined
definition:
  v: Description of what this suite does / why it was defined. This should explain to a tester what they should know when deciding which tests to run.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.mode
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.suite.mode
short:
  v: Mode required to run this suite
definition:
  v: If this mode is not passed to the runner, then this suite will not be run.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If no modes are listed, the suite is always executed

id:
  v: TestCases.suite.input
path:
  v: TestCases.suite.input
short:
  v: Resources used in the tests in this suite
definition:
  v: The resources used in the tests in this suite. How exactly they are used depends on the definition of the runner .
min:
  v: 0
max:
  v: *
type:
  code:
    v: Base
    l: Base
constraint:
  key:
    v: tp-1
  severity:
    v: error
  human:
    v: Either a file, or a resource, but not both
  expression:
    v: file.exists() xor resource.exists()

id:
  v: TestCases.suite.input.name
path:
  v: TestCases.suite.input.name
short:
  v: A name for this resource (per runner definition)
definition:
  v: A name that identifies this resource. The runner definition defines whether there must be a name, and what names there are.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.input.file
path:
  v: TestCases.suite.input.file
short:
  v: A file containing a resource used in the tests
definition:
  v: A file containing a resource used in the tests.
comment:
  v: Filename is relative to the folder/directory containing this TestCases
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.input.resource
path:
  v: TestCases.suite.input.resource
short:
  v: An inline resource used in the tests
definition:
  v: An inline resource used in the tests. How exactly it is used depends on the definition of the runner.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Resource
    l: Resource

id:
  v: TestCases.suite.input.mode
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.suite.input.mode
short:
  v: A mode that must be true for this resource to be used
definition:
  v: If this mode is not passed to the runner, then this resource will not be used.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If no modes are listed, the resource is always used, unless there is another entry with the same name that is selected by mode

id:
  v: TestCases.suite.parameter
path:
  v: TestCases.suite.parameter
short:
  v: Parameter defined by the suite
definition:
  v: A parameter passed to the runner when executing tests. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner.
min:
  v: 0
max:
  v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.parameter
  l: TestCases.parameter

id:
  v: TestCases.suite.test
path:
  v: TestCases.suite.test
short:
  v: A test in the test suite
definition:
  v: An actual test in the test suite.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Base
    l: Base

id:
  v: TestCases.suite.test.name
path:
  v: TestCases.suite.test.name
short:
  v: The name of this test - unique in the suite
definition:
  v: The name by which this test is known by in the test system. The name must be unique in the suite.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.test.description
path:
  v: TestCases.suite.test.description
short:
  v: Description of what this test does / why it was defined
definition:
  v: Description of what this test does / why it was defined. This should explain to a tester what they should know when looking at failing test results.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.test.operation
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.suite.test.operation
short:
  v: Operation that is executed during this test (per definition of runner)
definition:
  v: A code that identifies the operation executed for this test. One of the codes defined in the definition of the runner.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code

id:
  v: TestCases.suite.test.mode
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.suite.test.mode
short:
  v: Mode required to run this test
definition:
  v: If this mode is not passed to the runner, then this test will not be run.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If no modes are listed, the test is always executed

id:
  v: TestCases.suite.test.parameter
path:
  v: TestCases.suite.test.parameter
short:
  v: Parameter defined by the test
definition:
  v: A parameter passed to the runner when executing tests. Which parameters are valid, and how exactly the parameter is used are used depends on the definition of the runner.
min:
  v: 0
max:
  v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.parameter
  l: TestCases.parameter

id:
  v: TestCases.suite.test.input
path:
  v: TestCases.suite.test.input
short:
  v: Resources used when executing this test (per runner definition)
definition:
  v: The resources used when executing this test. How exactly they are used depends on the definition of the runner.
min:
  v: 0
max:
  v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.suite.input
  l: TestCases.suite.input

id:
  v: TestCases.suite.test.expected
path:
  v: TestCases.suite.test.expected
short:
  v: Resources expected as output from this test (per runner definition, often Matchetypes)
definition:
  v: Resources expected as output from this test. Often, but not always, these resources are Matchetype resources. How exactly it is used depends on the definition of the runner. How exactly it is used depends on the definition of the runner, but the expectation is that these are the expected output, to which the actual output is compared.
min:
  v: 0
max:
  v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.suite.input
  l: TestCases.suite.input

id:
  v: TestCases.suite.test.assertion
path:
  v: TestCases.suite.test.assertion
short:
  v: Assertions that can be executed against the output of the tests
definition:
  v: One or more assertions that can be executed against the output of the tests. These may be used with matchetypes to make rules about content the matchetypes leave open.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Base
    l: Base
constraint:
  key:
    v: tp-2
  severity:
    v: error
  human:
    v: At least an expression or a human readable rule must exist
  expression:
    v: expression.exists() or human.exists()

id:
  v: TestCases.suite.test.assertion.focus
path:
  v: TestCases.suite.test.assertion.focus
short:
  v: Which output the assertion is tested on (by name, if there is more than one)
definition:
  v: Resources expected as output from this test. Often, but not always, these resources are Matchetype resources.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.test.assertion.severity
path:
  v: TestCases.suite.test.assertion.severity
short:
  v: fatal | error | warning | information | success; fatal+error = fail
definition:
  v: Resources expected as output from this test. Only error and fatal assertions are considered to cause a test to fail. Often, but not always, these resources are Matchetype resources. How exactly it is used depends on the definition of the runner.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
binding:
  strength:
    v: required
  description:
    v: The severity of the assertion
  value set:
    v: http://hl7.org/fhir/ValueSet/issue-severity|5.0.0
    l: http://hl7.org/fhir/ValueSet/issue-severity

id:
  v: TestCases.suite.test.assertion.expression
path:
  v: TestCases.suite.test.assertion.expression
short:
  v: Technical Expression of the assertion
definition:
  v: Resources expected as output from this test. Often, but not always, these resources are Matchetype resources. How exactly it is used depends on the definition of the runner.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Expression
    l: Expression

id:
  v: TestCases.suite.test.assertion.human
path:
  v: TestCases.suite.test.assertion.human
short:
  v: Human readable description of the assertion
definition:
  v: A human readable description of the assertion.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: TestCases.suite.test.assertion.mode
extension:
  url:
    v: http://hl7.org/fhir/build/StructureDefinition/no-binding
    l: no-binding
  value: Boolean
    v: true
path:
  v: TestCases.suite.test.assertion.mode
short:
  v: A mode that must be true for this assertion to apply
definition:
  v: If this mode is not passed to the runner, then this assertion will not be used.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
    l: code
meaning when missing:
  v: If no modes are listed, the assertion is always used, unless there is another assertion with the same name that is selected by mode

id:
  v: TestCases.suite.suite
path:
  v: TestCases.suite.suite
short:
  v: A nested suite of tests
definition:
  v: A nested set of tests.
min:
  v: 0
max:
  v: *
content reference:
  v: http://hl7.org/fhir/StructureDefinition/TestCases#TestCases.suite
  l: TestCases.suite

id:
  v: TestCases.suite.plan
path:
  v: TestCases.suite.plan
short:
  v: A nested set of test plans
definition:
  v: A nested set of test plans that run within the context of this suite. Typically, the runner must be the same in the nested test plans.
comment:
  v: This is a reference to allow for direct local file references etc, but since TestCases is a CanonicalResource, it can also be resolved as a canonical reference.
min:
  v: 0
max:
  v: *
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/TestCases
    l: TestCases