FHIR Testing IG, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0-SNAPSHOT built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-testing-ig/ and changes regularly. See the Directory of published versions
| Page standards status: Trial-use | Maturity Level: 4 |
Definitions for the TestScript resource
Guidance on how to interpret the contents of this table can be foundhere
| 0. TestScript | |
| Definition | A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification. Common Interface declaration for conformance and knowledge artifact resources. |
| Short | Describes a set of testsCommon Interface declaration for definitional resources |
| Control | 1..1 |
| Is Modifier | false |
| Must Support | false |
| Summary | false |
| Invariants | cnl-0: Name should be usable as an identifier for the module by machine processing applications such as code generation (name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')) dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources (contained.contained.empty()) dom-3: 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 (contained.where((('#'+id.trace('id') in %resource.descendants().select(reference | as(uri))) or descendants().where(reference='#' | as(uri)='#').exists()).not()).trace('unmatched', id).empty()) dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated (contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()) dom-5: If a resource is contained in another resource, it SHALL NOT have a security label (contained.meta.security.empty()) dom-6: A resource should have narrative for robust management (text.`div`.exists()) |
| 2. TestScript.id | |
| Definition | The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. |
| Short | Logical id of this artifact |
| Comments | 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. |
| Control | 0..1 |
| Type | id |
| Is Modifier | false |
| Must Support | false |
| Summary | true |
| 4. TestScript.meta | |
| Definition | 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. |
| Short | Metadata about the resource |
| Control | 0..1 |
| Type | Meta |
| Is Modifier | false |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 6. TestScript.implicitRules | |
| Definition | 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. |
| Short | A set of rules under which this content was created |
| Comments | 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. |
| Control | 0..1 |
| Type | uri |
| Is Modifier | true because This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 8. TestScript.language | |
| Definition | The base language in which the resource is written. |
| Short | Language of the resource content |
| Comments | 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). |
| Control | 0..1 |
| Binding | The codes SHALL be taken from AllLanguageshttp://hl7.org/fhir/ValueSet/all-languages|6.0.0-ballot3 (required to http://hl7.org/fhir/ValueSet/all-languages|6.0.0-ballot3)IETF language tag for a human language |
| Type | code |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 10. TestScript.text | |
| Definition | 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. |
| Short | Text summary of the resource, for human interpretation |
| Comments | 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. |
| Control | 0..1 This element is affected by the following invariants: dom-6 |
| Type | Narrative |
| Is Modifier | false |
| Must Support | false |
| Summary | false |
| Alternate Names | narrative, html, xhtml, display |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 12. TestScript.contained | |
| Definition | 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. |
| Short | Contained, inline Resources |
| Comments | 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. Contained resources may be a resource type defined in the FHIR specification, or an additional resource. |
| Control | 0..* This element is affected by the following invariants: dom-2, dom-4, dom-3, dom-5 |
| Type | Resource |
| Is Modifier | false |
| Must Support | false |
| Summary | false |
| Alternate Names | inline resources, anonymous resources, contained resources |
| 14. TestScript.extension | |
| Definition | 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Must Support | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 16. TestScript.modifierExtension | |
| Definition | 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). |
| Short | Extensions that cannot be ignored |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them |
| Must Support | false |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 18. TestScript.url | |
| Definition | An absolute URI that is used to identify this test script 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 script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers. An absolute URI that is used to identify this {{title}} 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 {{title}} is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the {{title}} is stored on different servers. |
| Short | Canonical identifier for this test script, represented as a URI (globally unique)Canonical identifier for this {{title}}, represented as an absolute URI (globally unique) |
| Comments | 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. 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 element to indicate where the current master source of the resource can be found. 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. 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 element to indicate where the current master source of the resource can be found. |
| Control | 0..1 |
| Type | uri |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Requirements | Allows the test script to be referenced by a single globally unique identifier. Allows the {{title}} to be referenced by a single globally unique identifier. |
| Alternate Names | url, authoritative-url, destination, identity |
| Invariants | cnl-1: URL should not contain | or # - these characters make processing canonical references problematic (exists() implies matches('^[^|# ]+$')) ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 20. TestScript.identifier | |
| Definition | A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance. A formal identifier that is used to identify this {{title}} when it is represented in other formats, or referenced in a specification, model, design or an instance. |
| Short | Additional identifier for the test scriptAdditional identifier for the {{title}} |
| Note | This is a business identifier, not a resource identifier (see discussion) |
| Control | 0..* |
| Type | Identifier |
| Is Modifier | false |
| Must Support | false |
| Summary | true |
| Requirements | Allows externally provided and/or usable business identifiers to be easily associated with the module. Allows externally provided and/or usable business identifiers to be easily associated with the {{title}}. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 22. TestScript.version | |
| Definition | The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. The identifier that is used to identify this version of the {{title}} when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the {{title}} 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 without additional knowledge. (See the versionAlgorithm element.) |
| Short | Business version of the test scriptBusiness version of the {{title}} |
| Comments | There may be different test script instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the test script with the format [url]|[version]. The version SHOULD NOT contain a '#' - see Business Version. There may be different {{title}}s that have the same url 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 {{title}} with the format [url]|[version]. The version SHOULD NOT contain a '#' - see Business Version. |
| Note | This is a business version Id, not a resource version Id (see discussion) |
| Control | 0..1 |
| Type | string |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 24. TestScript.versionAlgorithm[x] | |
| Definition | Indicates the mechanism used to compare versions to determine which is more current. |
| Short | How to compare versions |
| Comments | 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. |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from VersionAlgorithmhttp://hl7.org/fhir/ValueSet/version-algorithm|6.0.0-ballot3 (extensible to http://hl7.org/fhir/ValueSet/version-algorithm) |
| Type | Choice of: string, Coding |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 26. TestScript.name | |
| Definition | A natural language name identifying the test script. This name should be usable as an identifier for the module by machine processing applications such as code generation. A natural language name identifying the {{title}}. This name should be usable as an identifier for the resource by machine processing applications such as code generation. |
| Short | Name for this test script (computer friendly)Name for this {{title}} (computer friendly) |
| Comments | 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. The name is not expected to be globally unique. The name should be a simple alphanumeric type no-whitespace name to ensure that it is machine-processing friendly. |
| Control | 10..1 This element is affected by the following invariants: cnl-0 |
| Type | string |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Requirements | Support code generation. Supports code generation. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 28. TestScript.title | |
| Definition | A short, descriptive, user-friendly title for the test script. A short, descriptive, user-friendly title for the {{title}}. |
| Short | Name for this test script (human friendly)Name for this {{title}} (human friendly) |
| Comments | This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc. |
| Control | 0..1 |
| Type | string |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 30. TestScript.status | |
| Definition | The status of this test script. Enables tracking the life-cycle of the content. The current state of this {{title}}. |
| Short | draft | active | retired | unknown |
| Comments | Allows filtering of test scripts that are appropriate for use versus not. See guidance around (not) making local changes to elements here. A nominal state-transition diagram can be found in the Definition pattern documentation. Unknown does not represent 'other' - one of the defined statuses must apply. Unknown is used when the authoring system is not sure what the current status is. See guidance around (not) making local changes to elements here. If a server wishes to reflect whether a given canonical resource is 'supported' or 'enabled' on that server, this is NOT done with status. Instead, expose support for the resource using a 'feature' in the server's CapabilityStatement. (Not all supported canonical resources will necessarily be searchable on a server, and availability of a canonical resource in a search result does not imply support of the resource for any particular usage.) |
| Control | 1..1 |
| Binding | The codes SHALL be taken from PublicationStatushttp://hl7.org/fhir/ValueSet/publication-status|6.0.0-ballot3 (required to http://hl7.org/fhir/ValueSet/publication-status)The lifecycle status of an artifact. |
| Type | code |
| Is Modifier | true because This is labeled as "Is Modifier" because applications should not use a retired {{title}} without due consideration |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Requirements | Enables tracking the life-cycle of the content and filtering of {{title}}s that are appropriate for use versus not. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 32. TestScript.experimental | |
| Definition | A Boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing) and no version of this resource will ever be intended for genuine usage. A Boolean value to indicate that this {{title}} is authored for testing purposes (or education/evaluation/marketing) and no version of this resource will ever be intended for genuine usage |
| Short | For testing only - never for real usage |
| Comments | Allows filtering of test scripts that are appropriate for use versus not.. Experimental resources might include example instances in implementation guides, instances created solely for testing purposes, etc Allows filtering of {{title}}s 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. |
| Control | 0..1 |
| Type | boolean |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Requirements | Enables experimental content to be developed following the same lifecycle that would be used for a production-level test script. Enables experimental content to be developed following the same lifecycle that would be used for a production-level {{title}}. |
| Meaning if Missing | If absent, this resource is treated as though it is not experimental. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 34. TestScript.date | |
| Definition | The date (and optionally time) when the test script 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 script changes. The date (and optionally time) when the {{title}} 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 {{title}} changes. |
| Short | Date last changed |
| Comments | 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 script. 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. 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 {{title}}. 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. |
| Control | 0..1 |
| Type | dateTime |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Alternate Names | Revision Date |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 36. TestScript.publisher | |
| Definition | The name of the organization or individual responsible for the release and ongoing maintenance of the test script. The name of the organization or individual responsible for the release and ongoing maintenance of the {{title}}. |
| Short | Name of the publisher/steward (organization or individual) |
| Comments | Usually an organization but may be an individual. The publisher (or steward) of the test script is the organization or individual primarily responsible for the maintenance and upkeep of the test script. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the test script. This item SHOULD be populated unless the information is available from context. Usually an organization but may be an individual. The publisher (or steward) of the {{title}} is the organization or individual primarily responsible for the maintenance and upkeep of the {{title}}. 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 {{title}}. This item SHOULD be populated unless the information is available from context. |
| Control | 0..1 |
| Type | string |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Requirements | Helps establish the "authority/credibility" of the test script. May also allow for contact. Helps establish the "authority/credibility" of the {{title}}. May also allow for contact. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 38. TestScript.contact | |
| Definition | Contact details to assist a user in finding and communicating with the publisher. |
| Short | Contact details for the publisher |
| Comments | May be a web site, an email address, a telephone number, etc. See guidance around (not) making local changes to elements here. |
| Control | 0..* |
| Type | ContactDetail |
| Is Modifier | false |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 40. TestScript.description | |
| Definition | A free text natural language description of the test script from a consumer's perspective. A free text natural language description of the {{title}} from a consumer's perspective. |
| Short | Natural language description of the test scriptNatural language description of the {{title}} |
| Comments | 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 script as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the test script is presumed to be the predominant language in the place the test script was created). 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 {{title}} as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context. |
| Control | 0..1 |
| Type | markdown |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 42. TestScript.useContext | |
| Definition | 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 script instances. 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 {{title}}s. |
| Short | The context that the content is intended to support |
| Comments | When multiple useContexts are specified, there is no expectation that all or any of the contexts apply. When multiple useContexts are specified, there is no expectation that all or even any of the contexts apply. |
| Control | 0..* |
| Type | UsageContext |
| Is Modifier | false |
| Must Support | false |
| Summary | true |
| Requirements | Assist in searching for appropriate content. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 44. TestScript.jurisdiction | |
| Definition | A legal or geographic region in which the test script is intended to be used. A legal or geographic region in which the {{title}} is intended to be used. |
| Short | Intended jurisdiction for test script (if applicable)Intended jurisdiction for {{title}} (if applicable) |
| Comments | It may be possible for the test script 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.) It may be possible for the {{title}} 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.) |
| Control | 0..* |
| Binding | Unless not suitable, these codes SHALL be taken from JurisdictionValueSethttp://hl7.org/fhir/ValueSet/jurisdiction|6.0.0-ballot3 (extensible to http://hl7.org/fhir/ValueSet/jurisdiction)Countries and regions within which this artifact is targeted for use. |
| Type | CodeableConcept |
| Is Modifier | false |
| Must Support | false |
| Standard Status | Deprecated (from Normative) |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 46. TestScript.purpose | |
| Definition | Explanation of why this test script is needed and why it has been designed as it has. Explanation of why this {{title}} is needed and why it has been designed as it has. |
| Short | Why this test script is definedWhy this {{title}} is defined |
| Comments | This element does not describe the usage of the test script. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this test script. This element does not describe the usage of the {{title}}. 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 {{title}}. |
| Control | 0..1 |
| Type | markdown |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 48. TestScript.copyright | |
| Definition | A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script. A copyright statement relating to the {{title}} and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the {{title}}. |
| Short | Use and/or publishing restrictions |
| Comments | The short copyright declaration (e.g. (c) '2015+ xyz organization' should be sent in the copyrightLabel element. |
| Control | 0..1 |
| Type | markdown |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | false |
| Requirements | Consumers must be able to determine any legal restrictions on the use of the test script and/or its content. Consumers must be able to determine any legal restrictions on the use of the {{title}} and/or its content. |
| Alternate Names | License, Restrictions |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 50. TestScript.copyrightLabel | |
| Definition | 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'). |
| Short | Copyright holder and year(s) |
| Comments | 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. |
| Control | 0..1 |
| Type | string |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | false |
| Requirements | Defines the content expected to be rendered in all representations of the artifact. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 52. TestScript.testSystem | |
| Definition | An abstract server used in operations within this test script in the origin element. |
| Short | An abstract server representing a client or sender in a message exchange |
| Comments | The purpose of this element is to define the profile of an origin element used elsewhere in the script. Test engines could then use the origin-profile mapping to offer a filtered list of test systems that can serve as the sender for the interaction. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 54. TestScript.testSystem.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 56. TestScript.testSystem.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.testSystem.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 58. TestScript.testSystem.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 60. TestScript.testSystem.index | |
| Definition | Number for the test system that is unique within this test script. Referenced by operation.origin and/or operation.destination. |
| Short | The index of the abstract test system |
| Comments | A given test system index (e.g. 1) can appear only once in the list (e.g. Origin 1 cannot be specified twice ... once as actor A and again as actor B within the same script as that could get confusing during test configuration). Different test system indices could play the same actor in the same test script. The operation.origin and/or operation.destination values defined elsewhere in the test script must be one of these test system indices. |
| Control | 1..1 |
| Type | positiveInt |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 62. TestScript.testSystem.title | |
| Definition | A short human-friendly label for the test system that is unique within this test script and may be used when rendering the script. |
| Short | Label for the test system |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 64. TestScript.testSystem.actor | |
| Definition | Reference to requirements that must be satisfied by the test system. |
| Short | Features met by the test system |
| Control | 0..* |
| Type | canonical(ActorDefinition, CapabilityStatement) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 66. TestScript.testSystem.description | |
| Definition | Additional information about the role and capabilities of the systems that would participate in this portion of the script. |
| Short | Formatted information of this test system |
| Control | 0..1 |
| Type | markdown |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 68. TestScript.testSystem.url | |
| Definition | The explicit url path of the test system used in this test script. If populated, the test engine is not expected to prompt for or accept external input of this value. |
| Short | The url path of this test system |
| Comments | This value represents the host location for an origin test system or the base url for a destination test system. |
| Control | 0..1 |
| Type | url |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 70. TestScript.metadata | |
| Definition | The required capability must exist and are assumed to function correctly on the FHIR server being tested. |
| Short | Required capability that is assumed to function correctly on the FHIR server being tested |
| Control | 0..1 |
| Type | BackboneElement |
| Invariants | tst-1: TestScript metadata capability SHALL contain required or validated or both. (capability.required.exists() or capability.validated.exists()) ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 72. TestScript.metadata.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 74. TestScript.metadata.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.metadata.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 76. TestScript.metadata.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 78. TestScript.metadata.link | |
| Definition | A link to the FHIR specification that this test is covering. |
| Short | Links to the FHIR specification |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 80. TestScript.metadata.link.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 82. TestScript.metadata.link.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.metadata.link.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 84. TestScript.metadata.link.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 86. TestScript.metadata.link.url | |
| Definition | URL to a particular requirement or feature within the FHIR specification. |
| Short | URL to the specification |
| Control | 1..1 |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 88. TestScript.metadata.link.description | |
| Definition | Short description of the link. |
| Short | Short description |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 90. TestScript.metadata.capability | |
| Definition | Capabilities that must exist and are assumed to function correctly on the FHIR server being tested. |
| Short | Capabilities that are assumed to function correctly on the FHIR server being tested |
| Comments | When the metadata capabilities section is defined at TestScript.metadata, and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then all the tests in the TestScript are skipped. The "metadata.capabilities.required" and "metadata.capabilities.validated" elements only indicate whether the capabilities are the primary focus of the test script or not. They do not impact the skipping logic. Capabilities whose "metadata.capabilities.validated" flag is true are the primary focus of the test script. |
| Control | 1..* This element is affected by the following invariants: tst-1 |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 92. TestScript.metadata.capability.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 94. TestScript.metadata.capability.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.metadata.capability.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 96. TestScript.metadata.capability.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 98. TestScript.metadata.capability.required | |
| Definition | Whether or not the test execution will require the given capabilities of the server in order for this test script to execute. |
| Short | Are the capabilities required? |
| Control | 1..1 This element is affected by the following invariants: tst-1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 100. TestScript.metadata.capability.validated | |
| Definition | Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute. |
| Short | Are the capabilities validated? |
| Control | 1..1 This element is affected by the following invariants: tst-1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 102. TestScript.metadata.capability.description | |
| Definition | Description of the capabilities that this test script is requiring the server to support. |
| Short | The expected capabilities of the server |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 104. TestScript.metadata.capability.origin | |
| Definition | Which origin server these requirements apply to. |
| Short | Which origin server these requirements apply to |
| Control | 0..* |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 106. TestScript.metadata.capability.destination | |
| Definition | Which server these requirements apply to. |
| Short | Which server these requirements apply to |
| Control | 0..1 |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 108. TestScript.metadata.capability.link | |
| Definition | Links to the FHIR specification that describes this interaction and the resources involved in more detail. |
| Short | Links to the FHIR specification |
| Control | 0..* |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 110. TestScript.metadata.capability.capabilities | |
| Definition | Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped. |
| Short | Required Capability Statement |
| Comments | The conformance statement of the server has to contain at a minimum the contents of the reference pointed to by this element. |
| Control | 1..1 |
| Type | canonical(CapabilityStatement) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 112. TestScript.scope | |
| Definition | The scope indicates a conformance artifact that is tested by the test(s) within this test case and the expectation of the test outcome(s) as well as the intended test phase inclusion. |
| Short | Indication of the artifact(s) that are tested by this test case |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 114. TestScript.scope.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 116. TestScript.scope.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.scope.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 118. TestScript.scope.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 120. TestScript.scope.artifact | |
| Definition | The specific conformance artifact being tested. The canonical reference can be version-specific. |
| Short | The specific conformance artifact being tested |
| Control | 1..1 |
| Type | canonical(Resource) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 122. TestScript.scope.conformance | |
| Definition | The expectation of whether the test must pass for the system to be considered conformant with the artifact: required - all tests are expected to pass, optional - all test are expected to pass but non-pass status may be allowed, strict - all tests are expected to pass and warnings are treated as a failure. |
| Short | required | optional | strict |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from TestScriptScopeConformanceTypehttp://hl7.org/fhir/ValueSet/testscript-scope-conformance-codes (extensible to http://hl7.org/fhir/ValueSet/testscript-scope-conformance-codes)The expectation of whether the test must pass for the system to be considered conformant with the artifact. |
| Type | CodeableConcept |
| Meaning if Missing | required |
| 124. TestScript.scope.phase | |
| Definition | The phase of testing for this artifact: unit - development / implementation phase, integration - internal system to system phase, production - live system to system phase (Note, this may involve pii/phi data). |
| Short | unit | integration | production |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from TestScriptScopePhaseTypehttp://hl7.org/fhir/ValueSet/testscript-scope-phase-codes (extensible to http://hl7.org/fhir/ValueSet/testscript-scope-phase-codes)The phase of testing for this artifact. |
| Type | CodeableConcept |
| Meaning if Missing | unit |
| 126. TestScript.fixture | |
| Definition | Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute. |
| Short | Fixture in the test script - by reference (uri) |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 128. TestScript.fixture.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 130. TestScript.fixture.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.fixture.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 132. TestScript.fixture.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 134. TestScript.fixture.autocreate | |
| Definition | Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section. |
| Short | Whether or not to implicitly create the fixture during setup |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 136. TestScript.fixture.autodelete | |
| Definition | Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section. |
| Short | Whether or not to implicitly delete the fixture during teardown |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 138. TestScript.fixture.resource | |
| Definition | Reference to the resource (containing the contents of the resource needed for operations). This is allowed to be a Parameters resource. |
| Short | Reference of the resource |
| Comments | See the Resource List for complete list of resource types. |
| Control | 0..1 |
| Type | Reference(Resource) |
| 140. TestScript.fixture.expression | |
| Definition | The expression for a specific element to extract from the fixture body. |
| Short | The expression against the fixture to extract the required element |
| Comments | If expression is defined then the evaluated element from the fixture will become the fixture contents. A test engine is expected to minimally support the expression languages: text/fhirpath, application/xml and application/json. |
| Control | 0..1 |
| Type | Expression |
| 142. TestScript.profile | |
| Definition | Reference to the profile to be used for validation. |
| Short | Reference of the validation profile |
| Comments | See the Resource List for complete list of resource types. |
| Control | 0..* |
| Type | canonical(StructureDefinition) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 144. TestScript.variable | |
| Definition | Variable is set based either on element value in response body or on header field value in the response headers. |
| Short | Placeholder for evaluated elements |
| Comments | Variables would be set based either on XPath/JSONPath expressions against fixtures (static and response), or headerField evaluations against response headers. If variable evaluates to nodelist or anything other than a primitive value, then test engine would report an error. Variables would be used to perform clean replacements in "operation.params", "operation.requestHeader.value", and "operation.url" element values during operation calls and in "assert.value" during assertion evaluations. This limits the places that test engines would need to look for placeholders "${}". Variables are scoped to the whole script. They are NOT evaluated at declaration. They are evaluated by test engine when used for substitutions in "operation.params", "operation.requestHeader.value", and "operation.url" element values during operation calls and in "assert.value" during assertion evaluations. See example testscript-search.xml. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | tst-2: Variable can only contain one of expression, headerField or path. ((expression.empty() and headerField.empty() and path.empty()) or (expression.empty() and (headerField.exists() xor path.exists())) or (headerField.empty() and (expression.exists() xor path.exists())) or (path.empty() and (expression.exists() xor headerField.exists()))) ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 146. TestScript.variable.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 148. TestScript.variable.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.variable.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 150. TestScript.variable.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 152. TestScript.variable.name | |
| Definition | Descriptive name for this variable. |
| Short | Descriptive name for this variable |
| Comments | Placeholders would contain the variable name wrapped in ${} in "operation.params", "operation.requestHeader.value", and "operation.url" elements. These placeholders would need to be replaced by the variable value before the operation is executed. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 154. TestScript.variable.defaultValue | |
| Definition | A default, hard-coded, or user-defined value for this variable. |
| Short | Default, hard-coded, or user-defined value for this variable |
| Comments | The purpose of this element is to allow for a pre-defined value that can be used as a default or as an override value. Test engines can optionally use this as a placeholder for user-defined execution time values. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 156. TestScript.variable.description | |
| Definition | A free text natural language description of the variable and its purpose. |
| Short | Natural language description of the variable |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 158. TestScript.variable.expression | |
| Definition | The expression for a specific value to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. |
| Short | The expression against the fixture body |
| Comments | If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define any combination of expression, headerField and path. A test engine is expected to minimally support the expression languages: text/fhirpath, application/xml and application/json. |
| Control | 0..1 This element is affected by the following invariants: tst-2 |
| Type | Expression |
| 160. TestScript.variable.headerField | |
| Definition | Will be used to grab the HTTP header field value from the headers that sourceId is pointing to. |
| Short | HTTP header field name for source |
| Comments | If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define both headerField and path. |
| Control | 0..1 This element is affected by the following invariants: tst-2 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 162. TestScript.variable.hint | |
| Definition | Displayable text string with hint help information to the user when entering a default value. |
| Short | Hint help text for default value to enter |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 164. TestScript.variable.path | |
| Definition | XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. |
| Short | XPath or JSONPath against the fixture body |
| Comments | If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define any combination of expression, headerField and path. |
| Control | 0..1 This element is affected by the following invariants: tst-2 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Standard Status | Deprecated (from Normative) |
| 166. TestScript.variable.sourceId | |
| Definition | Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable. |
| Short | Fixture Id of source expression or headerField within this variable |
| Comments | This can be a statically defined fixture (at the top of the TestScript) or a dynamically set fixture created by responseId of the |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 168. TestScript.setup | |
| Definition | A series of required setup operations before tests are executed. |
| Short | A series of required setup operations before tests are executed |
| Control | 0..1 |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 170. TestScript.setup.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 172. TestScript.setup.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 174. TestScript.setup.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 176. TestScript.setup.action | |
| Definition | Action would contain either a common or operation or an assertion. |
| Short | A setup common or operation or assert to perform |
| Comments | An action should contain only one of either a common or operation or an assertion. It can contain any number of variables. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | tst-3: Setup action SHALL contain only one of either a common or an operation or an assert. (common.exists() xor operation.exists() xor assert.exists()) ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 178. TestScript.setup.action.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 180. TestScript.setup.action.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 182. TestScript.setup.action.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 184. TestScript.setup.action.common | |
| Definition | Links or references to common collection(s) of actions in this or an external TestScript instance. |
| Short | Links or references to common collection(s) of actions |
| Control | 0..1 This element is affected by the following invariants: tst-3 |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 186. TestScript.setup.action.common.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 188. TestScript.setup.action.common.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.common.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 190. TestScript.setup.action.common.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 192. TestScript.setup.action.common.testScript | |
| Definition | Canonical reference providing traceability to the common TestScript instance containing the commonKey. |
| Short | Canonical reference to the common TestScript instance |
| Comments | If not defined, this TestScript instance is the container of the setup common key. |
| Control | 0..1 |
| Type | canonical(Test Script) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 194. TestScript.setup.action.common.keyRef | |
| Definition | Common key reference that identifies the common collection of actions to perform as defined the this or the common testScript. |
| Short | Common key reference that identifies the common collection of actions to perform |
| Control | 1..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 196. TestScript.setup.action.common.parameter | |
| Definition | Optional named parameter(s) to provide input values to the identified common collection of actions from this or an external TestScript. |
| Short | Parameter(s) to convey input values to the identified common collection of actions |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 198. TestScript.setup.action.common.parameter.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 200. TestScript.setup.action.common.parameter.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.common.parameter.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 202. TestScript.setup.action.common.parameter.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 204. TestScript.setup.action.common.parameter.name | |
| Definition | The name of this parameter from the identified common collection of actions from this or an external TestScript. |
| Short | Name of the parameter from the identified common collection of actions |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 206. TestScript.setup.action.common.parameter.value | |
| Definition | The value to assign to this parameter from the identified common collection of actions from this or an external TestScript. |
| Short | Value to assign to the parameter from the identified common collection of actions |
| Comments | The value data type is a generic string where the expectation is the actual value may be assigned to any action.opertion or action.assert element. The FHIR test engine must correctly assign the value to the target element's data type. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 208. TestScript.setup.action.operation | |
| Definition | The operation to perform. |
| Short | The setup operation to perform |
| Control | 0..1 This element is affected by the following invariants: tst-3 |
| Type | BackboneElement |
| Invariants | tst-4: Setup operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history'))) ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 210. TestScript.setup.action.operation.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 212. TestScript.setup.action.operation.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.operation.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 214. TestScript.setup.action.operation.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 216. TestScript.setup.action.operation.type | |
| Definition | Server interaction or operation type. |
| Short | The operation code type that will be executed |
| Comments | See the list of server interactions. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Binding | Unless not suitable, these codes SHALL be taken from TestScriptOperationCodehttp://hl7.org/fhir/ValueSet/testscript-operation-codes (extensible to http://hl7.org/fhir/ValueSet/testscript-operation-codes)FHIR Operation Code Types |
| Type | Coding |
| 218. TestScript.setup.action.operation.resource | |
| Definition | The type of the FHIR resource. See the resource list. Data type of uri is needed when non-HL7 artifacts are identified. |
| Short | Resource type |
| Comments | If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from ConcreteFHIRTypeshttp://hl7.org/fhir/ValueSet/concrete-fhir-types (extensible to http://hl7.org/fhir/ValueSet/concrete-fhir-types)A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types. |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 220. TestScript.setup.action.operation.label | |
| Definition | The label would be used for tracking/logging purposes by test engines. |
| Short | Tracking/logging operation label |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 222. TestScript.setup.action.operation.description | |
| Definition | The description would be used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting operation description |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 224. TestScript.setup.action.operation.accept | |
| Definition | The mime-type to use for RESTful operation in the 'Accept' header. |
| Short | Mime type to accept in the payload of the response, with charset etc |
| Comments | If this is specified, then test engine shall set the 'Accept' header to the corresponding value. If you'd like to explicitly set the 'Accept' to some other value then use the 'requestHeader' element. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from SupplementedMimeTypeshttp://hl7.org/fhir/ValueSet/supplemented-mimetypes (required to http://hl7.org/fhir/ValueSet/supplemented-mimetypes)The mime type of an attachment. Any valid mime type is allowed (BCP 13; RFCs 2045, 2046, 2047, 4288, 4289 and 2049), and also |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Example | General: application/fhir+xml |
| 226. TestScript.setup.action.operation.contentType | |
| Definition | The mime-type to use for RESTful operation in the 'Content-Type' header. |
| Short | Mime type of the request payload contents, with charset etc |
| Comments | If this is specified, then test engine shall set the 'Content-Type' header to the corresponding value. If you'd like to explicitly set the 'Content-Type' to some other value then use the 'requestHeader' element. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from SupplementedMimeTypeshttp://hl7.org/fhir/ValueSet/supplemented-mimetypes (required to http://hl7.org/fhir/ValueSet/supplemented-mimetypes)The mime type of an attachment. Any valid mime type is allowed (BCP 13; RFCs 2045, 2046, 2047, 4288, 4289 and 2049), and also |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Example | General: application/fhir+xml |
| 228. TestScript.setup.action.operation.destination | |
| Definition | The test system where the request message is destined. Must be one of the test system indices listed in TestScript.testSystem section. |
| Short | Server responding to the request |
| Comments | If multiple TestScript.testSystem elements are defined and operation.destination is undefined, the test engine will report an error as it cannot determine what destination test system to use for the exchange. |
| Control | 0..1 |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 230. TestScript.setup.action.operation.encodeRequestUrl | |
| Definition | Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths. |
| Short | Whether or not to send the request url in encoded format |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 232. TestScript.setup.action.operation.method | |
| Definition | The HTTP method the test engine MUST use for this operation regardless of any other operation details. |
| Short | delete | get | options | patch | post | put | head |
| Comments | The primary purpose of the explicit HTTP method is support of HTTP POST method invocation of the FHIR search. Other uses will include support of negative testing. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from TestScriptRequestMethodCodehttp://hl7.org/fhir/ValueSet/http-operations (required to http://hl7.org/fhir/ValueSet/http-operations)The allowable request method or HTTP operation codes. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 234. TestScript.setup.action.operation.origin | |
| Definition | The test system where the request message originates. Must be one of the test system indices listed in TestScript.testSystem section. |
| Short | Server initiating the request |
| Comments | If absent, the test engine will send the message. When present, the test engine will not send the request message but will wait for the request message to be sent from this test system. |
| Control | 0..1 |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 236. TestScript.setup.action.operation.params | |
| Definition | Path plus parameters after [type]. Used to set parts of the request URL explicitly. |
| Short | Explicitly defined path parameters |
| Comments | If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. Test engines would append whatever is specified for "params" to the URL after the resource type without tampering with the string (beyond encoding the URL for HTTP). The "params" element does not correspond exactly to "search parameters". Nor is it the "path". It corresponds to the part of the URL that comes after the [type] (when "resource" element is specified); e.g. It corresponds to "/[id]/_history/[vid] {?_format=[mime-type]}" in the following operation: GET [base]/[type]/[id]/_history/[vid] {?_format=[mime-type]} Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 238. TestScript.setup.action.operation.requestHeader | |
| Definition | Header elements would be used to set HTTP headers. |
| Short | Each operation can have one or more header elements |
| Comments | This gives control to test-script writers to set headers explicitly based on test requirements. It will allow for testing using: - "If-Modified-Since" and "If-None-Match" headers. "If-Match" header. See Conditional Create using "If-None-Exist". See Invalid "Content-Type" header for negative testing. - etc. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 240. TestScript.setup.action.operation.requestHeader.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 242. TestScript.setup.action.operation.requestHeader.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.operation.requestHeader.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 244. TestScript.setup.action.operation.requestHeader.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 246. TestScript.setup.action.operation.requestHeader.field | |
| Definition | The HTTP header field e.g. "Accept". |
| Short | HTTP header field name |
| Comments | If header element is specified, then field is required. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 248. TestScript.setup.action.operation.requestHeader.value | |
| Definition | The value of the header e.g. "application/fhir+xml". |
| Short | HTTP headerfield value |
| Comments | If header element is specified, then value is required. No conversions will be done by the test engine e.g. "xml" to "application/fhir+xml". The values will be set in HTTP headers "as-is". Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 250. TestScript.setup.action.operation.requestId | |
| Definition | The fixture id (maybe new) to map to the request. |
| Short | Fixture Id of mapped request |
| Comments | If a requestId is supplied, then the resulting request (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by "requestId". If requestId is not specified, it is the test engine's responsibility to store the request and use it as the requestId in subsequent assertions when assertion path and/or headerField is specified, direction is equal to request, and the requestId in not specified. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 252. TestScript.setup.action.operation.responseId | |
| Definition | The fixture id (maybe new) to map to the response. |
| Short | Fixture Id of mapped response |
| Comments | If a responseId is supplied, and the server responds, then the resulting response (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by "responseId". If responseId is not specified, it is the test engine's responsibility to store the response and use it as the responseId in subsequent assertions when assertion path and/or headerField is specified and the responseId is not specified. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 254. TestScript.setup.action.operation.sourceId | |
| Definition | The id of the fixture used as the body of a PUT or POST request. |
| Short | Fixture Id of body for PUT and POST requests |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 256. TestScript.setup.action.operation.targetId | |
| Definition | Id of fixture used for extracting the [id], [type], and [vid] for GET requests. |
| Short | Id of fixture used for extracting the [id], [type], and [vid] for GET requests |
| Comments | If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 258. TestScript.setup.action.operation.url | |
| Definition | Complete request URL. |
| Short | Request URL |
| Comments | Used to set the request URL explicitly. If "url" element is defined, then "targetId", "resource", and "params" elements will be ignored. Test engines would use whatever is specified in "url" without tampering with the string (beyond encoding the URL for HTTP). Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 260. TestScript.setup.action.assert | |
| Definition | Evaluates the results of previous operations to determine if the server under test behaves appropriately. |
| Short | The assertion to perform |
| Comments | In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine. |
| Control | 0..1 This element is affected by the following invariants: tst-3 |
| Type | BackboneElement |
| Invariants | tst-5: Setup action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. (compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())) tst-6: Setup action assert response and responseCode SHALL be empty when direction equals request ((response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response') tst-7: A setup action assert SHALL define a singular assertion function and prevent overlapping assertion functionality. (extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + requestURL.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <= 1)) tst-8: A setup action assert SHALL not allow the use of operator and value with minimumId, navigationLinks or validateProfileId. (extension.exists() or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 0) or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 1 and operator.count() + value.count() = 0)) ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 262. TestScript.setup.action.assert.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 264. TestScript.setup.action.assert.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.assert.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 266. TestScript.setup.action.assert.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 268. TestScript.setup.action.assert.label | |
| Definition | The label would be used for tracking/logging purposes by test engines. |
| Short | Tracking/logging assertion label |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 270. TestScript.setup.action.assert.key | |
| Definition | The key that identifies this assert (unique within this TestScript). |
| Short | Key that identifies this assert |
| Comments | This may be referenced by downstream assert.evaluateBasedOn for conditional evaluation by the test engine. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 272. TestScript.setup.action.assert.evaluateBasedOn | |
| Definition | A list of zero or more assert.key references to conditionally determine if this assert will be evaluated. |
| Short | Zero or more assert.key references |
| Comments | This may reference upstream assert.key value(s) for conditional evaluation of this assert by the test engine. |
| Control | 0..* |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 274. TestScript.setup.action.assert.description | |
| Definition | The description would be used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting assertion description |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 276. TestScript.setup.action.assert.direction | |
| Definition | The direction to use for the assertion. |
| Short | response | request |
| Comments | If the direction is specified as "response" (the default), then the processing of this assert is against the received response message. If the direction is specified as "request", then the processing of this assert is against the sent request message. |
| Control | 0..1 This element is affected by the following invariants: tst-6 |
| Binding | The codes SHALL be taken from AssertionDirectionTypehttp://hl7.org/fhir/ValueSet/assert-direction-codes (required to http://hl7.org/fhir/ValueSet/assert-direction-codes)The direction to use for assertions. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 278. TestScript.setup.action.assert.compareToSourceId | |
| Definition | Id of the source fixture used as the contents to be evaluated by either the "assert.compareToSourceExpression" or "assert.compareToSourcePath" definition. |
| Short | Id of the source fixture to be evaluated |
| Control | 0..1 This element is affected by the following invariants: tst-5 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 280. TestScript.setup.action.assert.compareToSourceExpression | |
| Definition | The expression for a specific value to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. |
| Short | The expression to evaluate against the source fixture |
| Comments | The expression to be evaluated against the expected fixture to compare to. Ignored if "assert.value" is used. The evaluation will be done before the assertion is evaluated. |
| Control | 0..1 This element is affected by the following invariants: tst-5 |
| Type | Expression |
| 282. TestScript.setup.action.assert.compareToSourcePath | |
| Definition | XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. |
| Short | XPath or JSONPath expression to evaluate against the source fixture |
| Comments | The XPath or JSONPath expression to be evaluated against the expected fixture to compare to. Ignored if "assert.value" is used. The evaluation will be done before the assertion is evaluated. |
| Control | 0..1 This element is affected by the following invariants: tst-5 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Standard Status | Deprecated (from Normative) |
| 284. TestScript.setup.action.assert.contentType | |
| Definition | The mime-type contents to compare against the request or response message 'Content-Type' header. |
| Short | Mime type to compare against the 'Content-Type' header |
| Comments | If this is specified, then test engine shall confirm that the content-type of the last operation's headers is set to this value. If "assert.sourceId" element is specified, then the evaluation will be done against the headers mapped to that sourceId (and not the last operation's headers). If you'd like to have more control over the string, then use 'assert.headerField' instead. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Binding | The codes SHALL be taken from SupplementedMimeTypeshttp://hl7.org/fhir/ValueSet/supplemented-mimetypes (required to http://hl7.org/fhir/ValueSet/supplemented-mimetypes)The mime type of an attachment. Any valid mime type is allowed (BCP 13; RFCs 2045, 2046, 2047, 4288, 4289 and 2049), and also |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Example | General: application/fhir+xml |
| 286. TestScript.setup.action.assert.defaultManualCompletion | |
| Definition | The default manual completion outcome applied to this assertion. |
| Short | fail | pass | skip | stop |
| Comments | Manual completion is used to pause the test engine execution and evaluation allowing an external review of the defined assert condition. The defaultManualCompletion defines the default manual completion outcome applied if one of the enumerated values is not applied. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from AssertionManualCompletionTypehttp://hl7.org/fhir/ValueSet/assert-manual-completion-codes (required to http://hl7.org/fhir/ValueSet/assert-manual-completion-codes)The default type of manual completion to use for assertion. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Meaning if Missing | If defaultManualCompletion is not specified, then the default manual completion outcome will be 'skip'. |
| 288. TestScript.setup.action.assert.expression | |
| Definition | The expression to be evaluated against the request or response message contents - HTTP headers and payload. |
| Short | The expression to be evaluated |
| Comments | If both "expression" and a "fixtureId" are specified, then the expression will be evaluated against the request or response body mapped to the fixtureId. If "expression" is specified and a "fixtureId" is not, then the expression will be evaluated against the response body of the last operation. Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions. The expression can be evaluated as either a path to a specific value or as a boolean expression against the given sourceId. When the expression evaluates to a boolean, the assert.value element is not used. See Testing FHIR Use Expressions. A test engine is expected to minimally support the expression languages: text/fhirpath, application/xml and application/json. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | Expression |
| 290. TestScript.setup.action.assert.headerField | |
| Definition | The HTTP header field name e.g. 'Location'. |
| Short | HTTP header field name |
| Comments | If "headerField" is specified then "value" must be specified. If "sourceId" is not specified, then "headerField" will be evaluated against the last operation's response headers. Test engines are to keep track of the last operation's response body and response headers. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 292. TestScript.setup.action.assert.minimumId | |
| Definition | The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId. |
| Short | Fixture Id of minimum content resource |
| Comments | Asserts that the response contains all the element/content in another fixture pointed to by minimumId. This can be a statically defined fixture or one that is dynamically set via responseId. See Testing FHIR Use minimumId for a more complete description of the test engine's comparison logic. |
| Control | 0..1 This element is affected by the following invariants: tst-7, tst-8 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 294. TestScript.setup.action.assert.navigationLinks | |
| Definition | Whether or not the test execution performs validation on the bundle navigation links. |
| Short | Perform validation on navigation links? |
| Comments | Asserts that the Bundle contains first, last, and next links. |
| Control | 0..1 This element is affected by the following invariants: tst-7, tst-8 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 296. TestScript.setup.action.assert.operator | |
| Definition | The operator type defines the conditional behavior of the assert. |
| Short | equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval | manualEval |
| Comments | Operators are useful for both positive and negative testing. If operator is not specified, then the default conditional behavior is implemented as defined in Testing FHIR Assertions. |
| Control | 0..1 This element is affected by the following invariants: tst-8 |
| Binding | The codes SHALL be taken from AssertionOperatorTypehttp://hl7.org/fhir/ValueSet/assert-operator-codes (required to http://hl7.org/fhir/ValueSet/assert-operator-codes)The type of operator to use for assertions. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Meaning if Missing | If operator is not specified, then the default conditional behavior is implemented as defined in the Testing FHIR page Assertions table - see Comments. |
| 298. TestScript.setup.action.assert.path | |
| Definition | The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server. |
| Short | XPath or JSONPath expression |
| Comments | If both "path" and a "fixtureId" are specified, then the path will be evaluated against the request or response body mapped to the fixtureId. If "path" is specified and a "fixtureId" is not, then the path will be evaluated against the response body of the last operation. Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Standard Status | Deprecated (from Normative) |
| 300. TestScript.setup.action.assert.requestMethod | |
| Definition | The request method or HTTP operation code to compare against that used by the client system under test. |
| Short | delete | get | options | patch | post | put | head |
| Comments | If "requestMethod" is specified then it will be used in place of "value". The "requestMethod" will evaluate against the last operation's request HTTP operation. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Binding | The codes SHALL be taken from TestScriptRequestMethodCodehttp://hl7.org/fhir/ValueSet/http-operations (required to http://hl7.org/fhir/ValueSet/http-operations)The allowable request method or HTTP operation codes. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 302. TestScript.setup.action.assert.requestURL | |
| Definition | The value to use in a comparison against the request URL path string. |
| Short | Request URL comparison value |
| Comments | If "requestURL" is specified then it will be used in place of "value". The "requestURL" will evaluate against the last operation's full request URL path string. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 304. TestScript.setup.action.assert.resource | |
| Definition | The type of the resource. See the resource list. |
| Short | Resource type |
| Comments | This will be expected resource type in response body e.g. in read, vread, search, etc. See the Resource List for complete list of resource types; e.g. <assert > <resourceType value="Patient" </assert>. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Binding | Unless not suitable, these codes SHALL be taken from ConcreteFHIRTypeshttp://hl7.org/fhir/ValueSet/concrete-fhir-types (extensible to http://hl7.org/fhir/ValueSet/concrete-fhir-types)A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types. |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 306. TestScript.setup.action.assert.response | |
| Definition | continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported. |
| Short | continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported |
| Comments | This is a shorter way of achieving similar verifications via "assert.responseCode". If you need more control, then use "assert.responseCode" e.g. <assert> <contentType value="json" /> <response value="okay"/> </assert>. |
| Control | 0..1 This element is affected by the following invariants: tst-6, tst-7 |
| Binding | The codes SHALL be taken from AssertionResponseTypeshttp://hl7.org/fhir/ValueSet/assert-response-code-types (required to http://hl7.org/fhir/ValueSet/assert-response-code-types)The response code to expect in the response. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 308. TestScript.setup.action.assert.responseCode | |
| Definition | The value of the HTTP response code to be tested. |
| Short | HTTP response code to test |
| Comments | To be used with "operator" attribute value. Asserts that the response code equals this value if "operator" is not specified. If the operator is "in" or "notIn" then the responseCode would be a comma-separated list of values e.g. "200,201". Otherwise, it's expected to be a numeric value. If "fixture" is not specified, then the "responseBodyId" value of the last operation is assumed. |
| Control | 0..1 This element is affected by the following invariants: tst-6, tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 310. TestScript.setup.action.assert.sourceId | |
| Definition | Fixture to evaluate the XPath/JSONPath expression or the headerField against. |
| Short | Fixture Id of source expression or headerField |
| Comments | This can be a statically defined fixture (at the top of the testscript) or a dynamically set fixture created by responseId of the action.operation element. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 312. TestScript.setup.action.assert.stopTestOnFail | |
| Definition | Whether or not the current test execution will stop on failure for this assert. |
| Short | If this assert fails, will the current test execution stop? |
| Comments | If this element is specified and it is true, then assertion failures should not stop the current test execution from proceeding. |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 314. TestScript.setup.action.assert.validateProfileId | |
| Definition | The ID of the Profile to validate against. |
| Short | Profile Id of validation profile reference |
| Comments | The ID of a Profile fixture. Asserts that the response is valid according to the Profile specified by validateProfileId. |
| Control | 0..1 This element is affected by the following invariants: tst-7, tst-8 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 316. TestScript.setup.action.assert.value | |
| Definition | The value to compare to. |
| Short | The value to compare to |
| Comments | The string-representation of a number, string, or boolean that is expected. Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before comparing this value to the actual value. |
| Control | 0..1 This element is affected by the following invariants: tst-8 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 318. TestScript.setup.action.assert.warningOnly | |
| Definition | Whether or not the test execution will produce a warning only on error for this assert. |
| Short | Will this assert produce a warning only on error? |
| Comments | If this element is specified and it is true, then assertion failures can be logged by test engine but should not stop the test script execution from proceeding. There are likely cases where the spec is not clear on what should happen. If the spec says something is optional (maybe a response header for example), but a server doesn’t do it, we could choose to issue a warning. |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 320. TestScript.setup.action.assert.requirement | |
| Definition | Links or references providing traceability to the testing requirements for this assert. |
| Short | Links or references to the testing requirements |
| Comments | TestScript and TestReport instances are typically (and expected to be) based on known, defined test requirements and documentation. These links provide traceability from the executable/executed TestScript and TestReport tests to these requirements. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 322. TestScript.setup.action.assert.requirement.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 324. TestScript.setup.action.assert.requirement.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.assert.requirement.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 326. TestScript.setup.action.assert.requirement.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 328. TestScript.setup.action.assert.requirement.reference | |
| Definition | Canonical reference providing traceability to the testing requirement for this assert. |
| Short | Canonical reference to the Requirements instance |
| Control | 1..1 |
| Type | canonical(Requirements) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 330. TestScript.setup.action.assert.requirement.key | |
| Definition | Requirements.statement.key that identifies the statement that this assert satisfies. |
| Short | Requirements statement key identifier |
| Control | 1..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 332. TestScript.test | |
| Definition | A test in this script. |
| Short | A test in this script |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 334. TestScript.test.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 336. TestScript.test.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.test.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 338. TestScript.test.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 340. TestScript.test.name | |
| Definition | The name of this test used for tracking/logging purposes by test engines. |
| Short | Tracking/logging name of this test |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 342. TestScript.test.description | |
| Definition | A short description of the test used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting short description of the test |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 344. TestScript.test.action | |
| Definition | Action would contain either an operation or an assertion. |
| Short | A test operation or assert to perform |
| Comments | An action should contain either an operation or an assertion but not both. It can contain any number of variables. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | tst-9: Test action SHALL contain only one of either a common or an operation or an assert. (common.exists() xor operation.exists() xor assert.exists()) ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 346. TestScript.test.action.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 348. TestScript.test.action.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.test.action.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 350. TestScript.test.action.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 352. TestScript.test.action.common | |
| Definition | Links or references to common collection(s) of actions in this or an external TestScript instance. |
| Short | Links or references to common collection(s) of actions |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.common |
| 354. TestScript.test.action.operation | |
| Definition | An operation would involve a REST request to a server. |
| Short | The setup operation to perform |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation |
| Invariants | tst-10: Test operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))) |
| 356. TestScript.test.action.assert | |
| Definition | Evaluates the results of previous operations to determine if the server under test behaves appropriately. |
| Short | The setup assertion to perform |
| Comments | In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine. |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.assert |
| Invariants | tst-11: Test action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. (compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())) tst-12: Test action assert response and response and responseCode SHALL be empty when direction equals request ((response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response') tst-13: A test action assert SHALL define a singular assertion function and prevent overlapping assertion functionality. (extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + requestURL.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <= 1)) tst-14: A test action assert SHALL not allow the use of operator and value with minimumId, navigationLinks or validateProfileId. (extension.exists() or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 0) or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 1 and operator.count() + value.count() = 0)) |
| 358. TestScript.teardown | |
| Definition | A series of operations required to clean up after all the tests are executed (successfully or otherwise). |
| Short | A series of required clean up steps |
| Control | 0..1 |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 360. TestScript.teardown.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 362. TestScript.teardown.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.teardown.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 364. TestScript.teardown.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 366. TestScript.teardown.action | |
| Definition | The teardown action will only contain an operation. |
| Short | One or more teardown operations to perform |
| Comments | An action should contain either an operation or an assertion but not both. It can contain any number of variables. |
| Control | 1..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 368. TestScript.teardown.action.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 370. TestScript.teardown.action.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.teardown.action.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 372. TestScript.teardown.action.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 374. TestScript.teardown.action.common | |
| Definition | Links or references to common collection(s) of actions in this or an external TestScript instance. Action asserts SHALL be ignored for the TestScript.teardown. |
| Short | Links or references to common collection(s) of actions |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.common |
| 376. TestScript.teardown.action.operation | |
| Definition | An operation would involve a REST request to a server. |
| Short | The teardown operation to perform |
| Control | 1..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation |
| Invariants | tst-15: Teardown operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))) |
| 378. TestScript.common | |
| Definition | A common collection of actions that can be re-used in a TestScript. |
| Short | A common collection of actions in this script |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 380. TestScript.common.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 382. TestScript.common.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.common.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 384. TestScript.common.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 386. TestScript.common.key | |
| Definition | Key that identifies this common collection of actions (unique within this resource). |
| Short | Key that identifies this common collection of actions |
| Control | 1..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 388. TestScript.common.name | |
| Definition | The name of this this common collection of actions used for tracking/logging purposes by test engines. |
| Short | Tracking/logging name of this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 390. TestScript.common.description | |
| Definition | A short description of this common collection of actions used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting short description of this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 392. TestScript.common.parameter | |
| Definition | Optional named parameter(s) to provide input values to this common collection of actions from this or an external TestScript. |
| Short | Parameter(s) to convey input values to this common collection of actions in this script |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 394. TestScript.common.parameter.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 396. TestScript.common.parameter.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.common.parameter.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 398. TestScript.common.parameter.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 400. TestScript.common.parameter.name | |
| Definition | The name of this parameter that will referenced in this common collection of actions using the TestScript variable nomenclature '${name}. |
| Short | Tracking/logging name of this parameter to be used in this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 402. TestScript.common.parameter.description | |
| Definition | An optional short description of this parameter to be used this common collection of actions used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting short description of this parameter to be used this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 404. TestScript.common.action | |
| Definition | An action will contain either an operation or an assertion but not both. |
| Short | A common operation or assert that can be re-used in this script |
| Control | 1..* |
| Type | BackboneElement |
| Invariants | tst-16: Common action SHALL contain either an operation or assert but not both. (operation.exists() xor assert.exists()) ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 406. TestScript.common.action.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | idstring |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 408. TestScript.common.action.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.common.action.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 410. TestScript.common.action.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 412. TestScript.common.action.operation | |
| Definition | An operation would involve a REST request to a server. |
| Short | The common operation that can be re-used in this script |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation |
| Invariants | tst-17: Common operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))) |
| 414. TestScript.common.action.assert | |
| Definition | Evaluates the results of previous operations to determine if the server under test behaves appropriately. |
| Short | The common assertion to perform |
| Comments | In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine. |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.assert |
| Invariants | tst-18: Common action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. (compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists())) tst-19: Common action assert response and response and responseCode SHALL be empty when direction equals request ((response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response') tst-20: A common action assert SHALL define a singular assertion function and prevent overlapping assertion functionality. (extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + requestURL.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <= 1)) tst-21: A common action assert SHALL not allow the use of operator and value with minimumId, navigationLinks or validateProfileId. (extension.exists() or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 0) or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 1 and operator.count() + value.count() = 0)) |
Guidance on how to interpret the contents of this table can be foundhere
| 0. TestScript | |
| Definition | A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification. |
| Short | Describes a set of tests |
| Control | 1..1 |
| Invariants | cnl-0: Name should be usable as an identifier for the module by machine processing applications such as code generation (name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$')) |
| 2. TestScript.url | |
| Definition | An absolute URI that is used to identify this test script 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 script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers. |
| Short | Canonical identifier for this test script, represented as a URI (globally unique) |
| Comments | 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. 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 element to indicate where the current master source of the resource can be found. |
| Control | 0..1 |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Requirements | Allows the test script to be referenced by a single globally unique identifier. |
| Alternate Names | url, authoritative-url, destination, identity |
| 4. TestScript.identifier | |
| Definition | A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance. |
| Short | Additional identifier for the test script |
| Note | This is a business identifier, not a resource identifier (see discussion) |
| Control | 0..* |
| Type | Identifier |
| Requirements | Allows externally provided and/or usable business identifiers to be easily associated with the module. |
| 6. TestScript.version | |
| Definition | The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. |
| Short | Business version of the test script |
| Comments | There may be different test script instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the test script with the format [url]|[version]. The version SHOULD NOT contain a '#' - see Business Version. |
| Note | This is a business version Id, not a resource version Id (see discussion) |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 8. TestScript.versionAlgorithm[x] | |
| Definition | Indicates the mechanism used to compare versions to determine which is more current. |
| Short | How to compare versions |
| Comments | 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. |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from VersionAlgorithm (extensible to http://hl7.org/fhir/ValueSet/version-algorithm) |
| Type | Choice of: string, Coding |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 10. TestScript.name | |
| Definition | A natural language name identifying the test script. This name should be usable as an identifier for the module by machine processing applications such as code generation. |
| Short | Name for this test script (computer friendly) |
| Comments | 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. |
| Control | 1..1 This element is affected by the following invariants: cnl-0 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Requirements | Support code generation. |
| 12. TestScript.title | |
| Definition | A short, descriptive, user-friendly title for the test script. |
| Short | Name for this test script (human friendly) |
| Comments | This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 14. TestScript.status | |
| Definition | The status of this test script. Enables tracking the life-cycle of the content. |
| Short | draft | active | retired | unknown |
| Comments | Allows filtering of test scripts that are appropriate for use versus not. See guidance around (not) making local changes to elements here. |
| Control | 1..1 |
| Binding | The codes SHALL be taken from PublicationStatus (required to http://hl7.org/fhir/ValueSet/publication-status)The lifecycle status of an artifact. |
| Type | code |
| Is Modifier | true because This is labeled as "Is Modifier" because applications should not use a retired {{title}} without due consideration |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 16. TestScript.experimental | |
| Definition | A Boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing) and no version of this resource will ever be intended for genuine usage. |
| Short | For testing only - never for real usage |
| Comments | Allows filtering of test scripts that are appropriate for use versus not.. Experimental resources might include example instances in implementation guides, instances created solely for testing purposes, etc |
| Control | 0..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Requirements | Enables experimental content to be developed following the same lifecycle that would be used for a production-level test script. |
| Meaning if Missing | If absent, this resource is treated as though it is not experimental. |
| 18. TestScript.date | |
| Definition | The date (and optionally time) when the test script 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 script changes. |
| Short | Date last changed |
| Comments | 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 script. 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. |
| Control | 0..1 |
| Type | dateTime |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Alternate Names | Revision Date |
| 20. TestScript.publisher | |
| Definition | The name of the organization or individual responsible for the release and ongoing maintenance of the test script. |
| Short | Name of the publisher/steward (organization or individual) |
| Comments | Usually an organization but may be an individual. The publisher (or steward) of the test script is the organization or individual primarily responsible for the maintenance and upkeep of the test script. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the test script. This item SHOULD be populated unless the information is available from context. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Requirements | Helps establish the "authority/credibility" of the test script. May also allow for contact. |
| 22. TestScript.contact | |
| Definition | Contact details to assist a user in finding and communicating with the publisher. |
| Short | Contact details for the publisher |
| Comments | May be a web site, an email address, a telephone number, etc. See guidance around (not) making local changes to elements here. |
| Control | 0..* |
| Type | ContactDetail |
| 24. TestScript.description | |
| Definition | A free text natural language description of the test script from a consumer's perspective. |
| Short | Natural language description of the test script |
| Comments | 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 script as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the test script is presumed to be the predominant language in the place the test script was created). |
| Control | 0..1 |
| Type | markdown |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 26. TestScript.useContext | |
| Definition | 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 script instances. |
| Short | The context that the content is intended to support |
| Comments | When multiple useContexts are specified, there is no expectation that all or any of the contexts apply. |
| Control | 0..* |
| Type | UsageContext |
| Requirements | Assist in searching for appropriate content. |
| 28. TestScript.jurisdiction | |
| Definition | A legal or geographic region in which the test script is intended to be used. |
| Short | Intended jurisdiction for test script (if applicable) |
| Comments | It may be possible for the test script 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.) |
| Control | 0..* |
| Binding | Unless not suitable, these codes SHALL be taken from JurisdictionValueSet (extensible to http://hl7.org/fhir/ValueSet/jurisdiction)Countries and regions within which this artifact is targeted for use. |
| Type | CodeableConcept |
| Standard Status | Deprecated (from Deprecated) |
| 30. TestScript.purpose | |
| Definition | Explanation of why this test script is needed and why it has been designed as it has. |
| Short | Why this test script is defined |
| Comments | This element does not describe the usage of the test script. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this test script. |
| Control | 0..1 |
| Type | markdown |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 32. TestScript.copyright | |
| Definition | A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script. |
| Short | Use and/or publishing restrictions |
| Control | 0..1 |
| Type | markdown |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Requirements | Consumers must be able to determine any legal restrictions on the use of the test script and/or its content. |
| Alternate Names | License, Restrictions |
| 34. TestScript.copyrightLabel | |
| Definition | 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'). |
| Short | Copyright holder and year(s) |
| Comments | 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. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Requirements | Defines the content expected to be rendered in all representations of the artifact. |
| 36. TestScript.testSystem | |
| Definition | An abstract server used in operations within this test script in the origin element. |
| Short | An abstract server representing a client or sender in a message exchange |
| Comments | The purpose of this element is to define the profile of an origin element used elsewhere in the script. Test engines could then use the origin-profile mapping to offer a filtered list of test systems that can serve as the sender for the interaction. |
| Control | 0..* |
| Type | BackboneElement |
| 38. TestScript.testSystem.index | |
| Definition | Number for the test system that is unique within this test script. Referenced by operation.origin and/or operation.destination. |
| Short | The index of the abstract test system |
| Comments | A given test system index (e.g. 1) can appear only once in the list (e.g. Origin 1 cannot be specified twice ... once as actor A and again as actor B within the same script as that could get confusing during test configuration). Different test system indices could play the same actor in the same test script. The operation.origin and/or operation.destination values defined elsewhere in the test script must be one of these test system indices. |
| Control | 1..1 |
| Type | positiveInt |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 40. TestScript.testSystem.title | |
| Definition | A short human-friendly label for the test system that is unique within this test script and may be used when rendering the script. |
| Short | Label for the test system |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 42. TestScript.testSystem.actor | |
| Definition | Reference to requirements that must be satisfied by the test system. |
| Short | Features met by the test system |
| Control | 0..* |
| Type | canonical(ActorDefinition, CapabilityStatement) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 44. TestScript.testSystem.description | |
| Definition | Additional information about the role and capabilities of the systems that would participate in this portion of the script. |
| Short | Formatted information of this test system |
| Control | 0..1 |
| Type | markdown |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 46. TestScript.testSystem.url | |
| Definition | The explicit url path of the test system used in this test script. If populated, the test engine is not expected to prompt for or accept external input of this value. |
| Short | The url path of this test system |
| Comments | This value represents the host location for an origin test system or the base url for a destination test system. |
| Control | 0..1 |
| Type | url |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 48. TestScript.metadata | |
| Definition | The required capability must exist and are assumed to function correctly on the FHIR server being tested. |
| Short | Required capability that is assumed to function correctly on the FHIR server being tested |
| Control | 0..1 |
| Type | BackboneElement |
| Invariants | tst-1: TestScript metadata capability SHALL contain required or validated or both. (capability.required.exists() or capability.validated.exists()) |
| 50. TestScript.metadata.link | |
| Definition | A link to the FHIR specification that this test is covering. |
| Short | Links to the FHIR specification |
| Control | 0..* |
| Type | BackboneElement |
| 52. TestScript.metadata.link.url | |
| Definition | URL to a particular requirement or feature within the FHIR specification. |
| Short | URL to the specification |
| Control | 1..1 |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 54. TestScript.metadata.link.description | |
| Definition | Short description of the link. |
| Short | Short description |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 56. TestScript.metadata.capability | |
| Definition | Capabilities that must exist and are assumed to function correctly on the FHIR server being tested. |
| Short | Capabilities that are assumed to function correctly on the FHIR server being tested |
| Comments | When the metadata capabilities section is defined at TestScript.metadata, and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then all the tests in the TestScript are skipped. The "metadata.capabilities.required" and "metadata.capabilities.validated" elements only indicate whether the capabilities are the primary focus of the test script or not. They do not impact the skipping logic. Capabilities whose "metadata.capabilities.validated" flag is true are the primary focus of the test script. |
| Control | 1..* This element is affected by the following invariants: tst-1 |
| Type | BackboneElement |
| 58. TestScript.metadata.capability.required | |
| Definition | Whether or not the test execution will require the given capabilities of the server in order for this test script to execute. |
| Short | Are the capabilities required? |
| Control | 1..1 This element is affected by the following invariants: tst-1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 60. TestScript.metadata.capability.validated | |
| Definition | Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute. |
| Short | Are the capabilities validated? |
| Control | 1..1 This element is affected by the following invariants: tst-1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 62. TestScript.metadata.capability.description | |
| Definition | Description of the capabilities that this test script is requiring the server to support. |
| Short | The expected capabilities of the server |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 64. TestScript.metadata.capability.origin | |
| Definition | Which origin server these requirements apply to. |
| Short | Which origin server these requirements apply to |
| Control | 0..* |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 66. TestScript.metadata.capability.destination | |
| Definition | Which server these requirements apply to. |
| Short | Which server these requirements apply to |
| Control | 0..1 |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 68. TestScript.metadata.capability.link | |
| Definition | Links to the FHIR specification that describes this interaction and the resources involved in more detail. |
| Short | Links to the FHIR specification |
| Control | 0..* |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 70. TestScript.metadata.capability.capabilities | |
| Definition | Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped. |
| Short | Required Capability Statement |
| Comments | The conformance statement of the server has to contain at a minimum the contents of the reference pointed to by this element. |
| Control | 1..1 |
| Type | canonical(CapabilityStatement) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 72. TestScript.scope | |
| Definition | The scope indicates a conformance artifact that is tested by the test(s) within this test case and the expectation of the test outcome(s) as well as the intended test phase inclusion. |
| Short | Indication of the artifact(s) that are tested by this test case |
| Control | 0..* |
| Type | BackboneElement |
| 74. TestScript.scope.artifact | |
| Definition | The specific conformance artifact being tested. The canonical reference can be version-specific. |
| Short | The specific conformance artifact being tested |
| Control | 1..1 |
| Type | canonical(Resource) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 76. TestScript.scope.conformance | |
| Definition | The expectation of whether the test must pass for the system to be considered conformant with the artifact: required - all tests are expected to pass, optional - all test are expected to pass but non-pass status may be allowed, strict - all tests are expected to pass and warnings are treated as a failure. |
| Short | required | optional | strict |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from TestScriptScopeConformanceType (extensible to http://hl7.org/fhir/ValueSet/testscript-scope-conformance-codes)The expectation of whether the test must pass for the system to be considered conformant with the artifact. |
| Type | CodeableConcept |
| Meaning if Missing | required |
| 78. TestScript.scope.phase | |
| Definition | The phase of testing for this artifact: unit - development / implementation phase, integration - internal system to system phase, production - live system to system phase (Note, this may involve pii/phi data). |
| Short | unit | integration | production |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from TestScriptScopePhaseType (extensible to http://hl7.org/fhir/ValueSet/testscript-scope-phase-codes)The phase of testing for this artifact. |
| Type | CodeableConcept |
| Meaning if Missing | unit |
| 80. TestScript.fixture | |
| Definition | Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute. |
| Short | Fixture in the test script - by reference (uri) |
| Control | 0..* |
| Type | BackboneElement |
| 82. TestScript.fixture.autocreate | |
| Definition | Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section. |
| Short | Whether or not to implicitly create the fixture during setup |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 84. TestScript.fixture.autodelete | |
| Definition | Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section. |
| Short | Whether or not to implicitly delete the fixture during teardown |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 86. TestScript.fixture.resource | |
| Definition | Reference to the resource (containing the contents of the resource needed for operations). This is allowed to be a Parameters resource. |
| Short | Reference of the resource |
| Comments | See the Resource List for complete list of resource types. |
| Control | 0..1 |
| Type | Reference(Resource) |
| 88. TestScript.fixture.expression | |
| Definition | The expression for a specific element to extract from the fixture body. |
| Short | The expression against the fixture to extract the required element |
| Comments | If expression is defined then the evaluated element from the fixture will become the fixture contents. A test engine is expected to minimally support the expression languages: text/fhirpath, application/xml and application/json. |
| Control | 0..1 |
| Type | Expression |
| 90. TestScript.profile | |
| Definition | Reference to the profile to be used for validation. |
| Short | Reference of the validation profile |
| Comments | See the Resource List for complete list of resource types. |
| Control | 0..* |
| Type | canonical(StructureDefinition) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 92. TestScript.variable | |
| Definition | Variable is set based either on element value in response body or on header field value in the response headers. |
| Short | Placeholder for evaluated elements |
| Comments | Variables would be set based either on XPath/JSONPath expressions against fixtures (static and response), or headerField evaluations against response headers. If variable evaluates to nodelist or anything other than a primitive value, then test engine would report an error. Variables would be used to perform clean replacements in "operation.params", "operation.requestHeader.value", and "operation.url" element values during operation calls and in "assert.value" during assertion evaluations. This limits the places that test engines would need to look for placeholders "${}". Variables are scoped to the whole script. They are NOT evaluated at declaration. They are evaluated by test engine when used for substitutions in "operation.params", "operation.requestHeader.value", and "operation.url" element values during operation calls and in "assert.value" during assertion evaluations. See example testscript-search.xml. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | tst-2: Variable can only contain one of expression, headerField or path. ((expression.empty() and headerField.empty() and path.empty()) or (expression.empty() and (headerField.exists() xor path.exists())) or (headerField.empty() and (expression.exists() xor path.exists())) or (path.empty() and (expression.exists() xor headerField.exists()))) |
| 94. TestScript.variable.name | |
| Definition | Descriptive name for this variable. |
| Short | Descriptive name for this variable |
| Comments | Placeholders would contain the variable name wrapped in ${} in "operation.params", "operation.requestHeader.value", and "operation.url" elements. These placeholders would need to be replaced by the variable value before the operation is executed. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 96. TestScript.variable.defaultValue | |
| Definition | A default, hard-coded, or user-defined value for this variable. |
| Short | Default, hard-coded, or user-defined value for this variable |
| Comments | The purpose of this element is to allow for a pre-defined value that can be used as a default or as an override value. Test engines can optionally use this as a placeholder for user-defined execution time values. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 98. TestScript.variable.description | |
| Definition | A free text natural language description of the variable and its purpose. |
| Short | Natural language description of the variable |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 100. TestScript.variable.expression | |
| Definition | The expression for a specific value to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. |
| Short | The expression against the fixture body |
| Comments | If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define any combination of expression, headerField and path. A test engine is expected to minimally support the expression languages: text/fhirpath, application/xml and application/json. |
| Control | 0..1 This element is affected by the following invariants: tst-2 |
| Type | Expression |
| 102. TestScript.variable.headerField | |
| Definition | Will be used to grab the HTTP header field value from the headers that sourceId is pointing to. |
| Short | HTTP header field name for source |
| Comments | If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define both headerField and path. |
| Control | 0..1 This element is affected by the following invariants: tst-2 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 104. TestScript.variable.hint | |
| Definition | Displayable text string with hint help information to the user when entering a default value. |
| Short | Hint help text for default value to enter |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 106. TestScript.variable.path | |
| Definition | XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. |
| Short | XPath or JSONPath against the fixture body |
| Comments | If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define any combination of expression, headerField and path. |
| Control | 0..1 This element is affected by the following invariants: tst-2 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Standard Status | Deprecated (from Normative) |
| 108. TestScript.variable.sourceId | |
| Definition | Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable. |
| Short | Fixture Id of source expression or headerField within this variable |
| Comments | This can be a statically defined fixture (at the top of the TestScript) or a dynamically set fixture created by responseId of the |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 110. TestScript.setup | |
| Definition | A series of required setup operations before tests are executed. |
| Short | A series of required setup operations before tests are executed |
| Control | 0..1 |
| Type | BackboneElement |
| 112. TestScript.setup.action | |
| Definition | Action would contain either a common or operation or an assertion. |
| Short | A setup common or operation or assert to perform |
| Comments | An action should contain only one of either a common or operation or an assertion. It can contain any number of variables. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | tst-3: Setup action SHALL contain only one of either a common or an operation or an assert. (common.exists() xor operation.exists() xor assert.exists()) |
| 114. TestScript.setup.action.common | |
| Definition | Links or references to common collection(s) of actions in this or an external TestScript instance. |
| Short | Links or references to common collection(s) of actions |
| Control | 0..1 This element is affected by the following invariants: tst-3 |
| Type | BackboneElement |
| 116. TestScript.setup.action.common.testScript | |
| Definition | Canonical reference providing traceability to the common TestScript instance containing the commonKey. |
| Short | Canonical reference to the common TestScript instance |
| Comments | If not defined, this TestScript instance is the container of the setup common key. |
| Control | 0..1 |
| Type | canonical(Test Script) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 118. TestScript.setup.action.common.keyRef | |
| Definition | Common key reference that identifies the common collection of actions to perform as defined the this or the common testScript. |
| Short | Common key reference that identifies the common collection of actions to perform |
| Control | 1..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 120. TestScript.setup.action.common.parameter | |
| Definition | Optional named parameter(s) to provide input values to the identified common collection of actions from this or an external TestScript. |
| Short | Parameter(s) to convey input values to the identified common collection of actions |
| Control | 0..* |
| Type | BackboneElement |
| 122. TestScript.setup.action.common.parameter.name | |
| Definition | The name of this parameter from the identified common collection of actions from this or an external TestScript. |
| Short | Name of the parameter from the identified common collection of actions |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 124. TestScript.setup.action.common.parameter.value | |
| Definition | The value to assign to this parameter from the identified common collection of actions from this or an external TestScript. |
| Short | Value to assign to the parameter from the identified common collection of actions |
| Comments | The value data type is a generic string where the expectation is the actual value may be assigned to any action.opertion or action.assert element. The FHIR test engine must correctly assign the value to the target element's data type. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 126. TestScript.setup.action.operation | |
| Definition | The operation to perform. |
| Short | The setup operation to perform |
| Control | 0..1 This element is affected by the following invariants: tst-3 |
| Type | BackboneElement |
| Invariants | tst-4: Setup operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history'))) |
| 128. TestScript.setup.action.operation.type | |
| Definition | Server interaction or operation type. |
| Short | The operation code type that will be executed |
| Comments | See the list of server interactions. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Binding | Unless not suitable, these codes SHALL be taken from TestScriptOperationCode (extensible to http://hl7.org/fhir/ValueSet/testscript-operation-codes)FHIR Operation Code Types |
| Type | Coding |
| 130. TestScript.setup.action.operation.resource | |
| Definition | The type of the FHIR resource. See the resource list. Data type of uri is needed when non-HL7 artifacts are identified. |
| Short | Resource type |
| Comments | If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from ConcreteFHIRTypes (extensible to http://hl7.org/fhir/ValueSet/concrete-fhir-types)A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types. |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 132. TestScript.setup.action.operation.label | |
| Definition | The label would be used for tracking/logging purposes by test engines. |
| Short | Tracking/logging operation label |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 134. TestScript.setup.action.operation.description | |
| Definition | The description would be used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting operation description |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 136. TestScript.setup.action.operation.accept | |
| Definition | The mime-type to use for RESTful operation in the 'Accept' header. |
| Short | Mime type to accept in the payload of the response, with charset etc |
| Comments | If this is specified, then test engine shall set the 'Accept' header to the corresponding value. If you'd like to explicitly set the 'Accept' to some other value then use the 'requestHeader' element. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from SupplementedMimeTypes (required to http://hl7.org/fhir/ValueSet/supplemented-mimetypes)The mime type of an attachment. Any valid mime type is allowed (BCP 13; RFCs 2045, 2046, 2047, 4288, 4289 and 2049), and also |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Example | General: application/fhir+xml |
| 138. TestScript.setup.action.operation.contentType | |
| Definition | The mime-type to use for RESTful operation in the 'Content-Type' header. |
| Short | Mime type of the request payload contents, with charset etc |
| Comments | If this is specified, then test engine shall set the 'Content-Type' header to the corresponding value. If you'd like to explicitly set the 'Content-Type' to some other value then use the 'requestHeader' element. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from SupplementedMimeTypes (required to http://hl7.org/fhir/ValueSet/supplemented-mimetypes)The mime type of an attachment. Any valid mime type is allowed (BCP 13; RFCs 2045, 2046, 2047, 4288, 4289 and 2049), and also |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Example | General: application/fhir+xml |
| 140. TestScript.setup.action.operation.destination | |
| Definition | The test system where the request message is destined. Must be one of the test system indices listed in TestScript.testSystem section. |
| Short | Server responding to the request |
| Comments | If multiple TestScript.testSystem elements are defined and operation.destination is undefined, the test engine will report an error as it cannot determine what destination test system to use for the exchange. |
| Control | 0..1 |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 142. TestScript.setup.action.operation.encodeRequestUrl | |
| Definition | Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths. |
| Short | Whether or not to send the request url in encoded format |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 144. TestScript.setup.action.operation.method | |
| Definition | The HTTP method the test engine MUST use for this operation regardless of any other operation details. |
| Short | delete | get | options | patch | post | put | head |
| Comments | The primary purpose of the explicit HTTP method is support of HTTP POST method invocation of the FHIR search. Other uses will include support of negative testing. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from TestScriptRequestMethodCode (required to http://hl7.org/fhir/ValueSet/http-operations)The allowable request method or HTTP operation codes. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 146. TestScript.setup.action.operation.origin | |
| Definition | The test system where the request message originates. Must be one of the test system indices listed in TestScript.testSystem section. |
| Short | Server initiating the request |
| Comments | If absent, the test engine will send the message. When present, the test engine will not send the request message but will wait for the request message to be sent from this test system. |
| Control | 0..1 |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 148. TestScript.setup.action.operation.params | |
| Definition | Path plus parameters after [type]. Used to set parts of the request URL explicitly. |
| Short | Explicitly defined path parameters |
| Comments | If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. Test engines would append whatever is specified for "params" to the URL after the resource type without tampering with the string (beyond encoding the URL for HTTP). The "params" element does not correspond exactly to "search parameters". Nor is it the "path". It corresponds to the part of the URL that comes after the [type] (when "resource" element is specified); e.g. It corresponds to "/[id]/_history/[vid] {?_format=[mime-type]}" in the following operation: GET [base]/[type]/[id]/_history/[vid] {?_format=[mime-type]} Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 150. TestScript.setup.action.operation.requestHeader | |
| Definition | Header elements would be used to set HTTP headers. |
| Short | Each operation can have one or more header elements |
| Comments | This gives control to test-script writers to set headers explicitly based on test requirements. It will allow for testing using: - "If-Modified-Since" and "If-None-Match" headers. "If-Match" header. See Conditional Create using "If-None-Exist". See Invalid "Content-Type" header for negative testing. - etc. |
| Control | 0..* |
| Type | BackboneElement |
| 152. TestScript.setup.action.operation.requestHeader.field | |
| Definition | The HTTP header field e.g. "Accept". |
| Short | HTTP header field name |
| Comments | If header element is specified, then field is required. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 154. TestScript.setup.action.operation.requestHeader.value | |
| Definition | The value of the header e.g. "application/fhir+xml". |
| Short | HTTP headerfield value |
| Comments | If header element is specified, then value is required. No conversions will be done by the test engine e.g. "xml" to "application/fhir+xml". The values will be set in HTTP headers "as-is". Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 156. TestScript.setup.action.operation.requestId | |
| Definition | The fixture id (maybe new) to map to the request. |
| Short | Fixture Id of mapped request |
| Comments | If a requestId is supplied, then the resulting request (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by "requestId". If requestId is not specified, it is the test engine's responsibility to store the request and use it as the requestId in subsequent assertions when assertion path and/or headerField is specified, direction is equal to request, and the requestId in not specified. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 158. TestScript.setup.action.operation.responseId | |
| Definition | The fixture id (maybe new) to map to the response. |
| Short | Fixture Id of mapped response |
| Comments | If a responseId is supplied, and the server responds, then the resulting response (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by "responseId". If responseId is not specified, it is the test engine's responsibility to store the response and use it as the responseId in subsequent assertions when assertion path and/or headerField is specified and the responseId is not specified. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 160. TestScript.setup.action.operation.sourceId | |
| Definition | The id of the fixture used as the body of a PUT or POST request. |
| Short | Fixture Id of body for PUT and POST requests |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 162. TestScript.setup.action.operation.targetId | |
| Definition | Id of fixture used for extracting the [id], [type], and [vid] for GET requests. |
| Short | Id of fixture used for extracting the [id], [type], and [vid] for GET requests |
| Comments | If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 164. TestScript.setup.action.operation.url | |
| Definition | Complete request URL. |
| Short | Request URL |
| Comments | Used to set the request URL explicitly. If "url" element is defined, then "targetId", "resource", and "params" elements will be ignored. Test engines would use whatever is specified in "url" without tampering with the string (beyond encoding the URL for HTTP). Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 166. TestScript.setup.action.assert | |
| Definition | Evaluates the results of previous operations to determine if the server under test behaves appropriately. |
| Short | The assertion to perform |
| Comments | In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine. |
| Control | 0..1 This element is affected by the following invariants: tst-3 |
| Type | BackboneElement |
| Invariants | tst-5: Setup action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. (compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists()))tst-6: Setup action assert response and responseCode SHALL be empty when direction equals request ( (response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response')tst-7: A setup action assert SHALL define a singular assertion function and prevent overlapping assertion functionality. ( extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + requestURL.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <= 1))tst-8: A setup action assert SHALL not allow the use of operator and value with minimumId, navigationLinks or validateProfileId. ( extension.exists() or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 0) or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 1 and operator.count() + value.count() = 0)) |
| 168. TestScript.setup.action.assert.label | |
| Definition | The label would be used for tracking/logging purposes by test engines. |
| Short | Tracking/logging assertion label |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 170. TestScript.setup.action.assert.key | |
| Definition | The key that identifies this assert (unique within this TestScript). |
| Short | Key that identifies this assert |
| Comments | This may be referenced by downstream assert.evaluateBasedOn for conditional evaluation by the test engine. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 172. TestScript.setup.action.assert.evaluateBasedOn | |
| Definition | A list of zero or more assert.key references to conditionally determine if this assert will be evaluated. |
| Short | Zero or more assert.key references |
| Comments | This may reference upstream assert.key value(s) for conditional evaluation of this assert by the test engine. |
| Control | 0..* |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 174. TestScript.setup.action.assert.description | |
| Definition | The description would be used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting assertion description |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 176. TestScript.setup.action.assert.direction | |
| Definition | The direction to use for the assertion. |
| Short | response | request |
| Comments | If the direction is specified as "response" (the default), then the processing of this assert is against the received response message. If the direction is specified as "request", then the processing of this assert is against the sent request message. |
| Control | 0..1 This element is affected by the following invariants: tst-6 |
| Binding | The codes SHALL be taken from AssertionDirectionType (required to http://hl7.org/fhir/ValueSet/assert-direction-codes)The direction to use for assertions. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 178. TestScript.setup.action.assert.compareToSourceId | |
| Definition | Id of the source fixture used as the contents to be evaluated by either the "assert.compareToSourceExpression" or "assert.compareToSourcePath" definition. |
| Short | Id of the source fixture to be evaluated |
| Control | 0..1 This element is affected by the following invariants: tst-5 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 180. TestScript.setup.action.assert.compareToSourceExpression | |
| Definition | The expression for a specific value to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. |
| Short | The expression to evaluate against the source fixture |
| Comments | The expression to be evaluated against the expected fixture to compare to. Ignored if "assert.value" is used. The evaluation will be done before the assertion is evaluated. |
| Control | 0..1 This element is affected by the following invariants: tst-5 |
| Type | Expression |
| 182. TestScript.setup.action.assert.compareToSourcePath | |
| Definition | XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. |
| Short | XPath or JSONPath expression to evaluate against the source fixture |
| Comments | The XPath or JSONPath expression to be evaluated against the expected fixture to compare to. Ignored if "assert.value" is used. The evaluation will be done before the assertion is evaluated. |
| Control | 0..1 This element is affected by the following invariants: tst-5 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Standard Status | Deprecated (from Normative) |
| 184. TestScript.setup.action.assert.contentType | |
| Definition | The mime-type contents to compare against the request or response message 'Content-Type' header. |
| Short | Mime type to compare against the 'Content-Type' header |
| Comments | If this is specified, then test engine shall confirm that the content-type of the last operation's headers is set to this value. If "assert.sourceId" element is specified, then the evaluation will be done against the headers mapped to that sourceId (and not the last operation's headers). If you'd like to have more control over the string, then use 'assert.headerField' instead. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Binding | The codes SHALL be taken from SupplementedMimeTypes (required to http://hl7.org/fhir/ValueSet/supplemented-mimetypes)The mime type of an attachment. Any valid mime type is allowed (BCP 13; RFCs 2045, 2046, 2047, 4288, 4289 and 2049), and also |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Example | General: application/fhir+xml |
| 186. TestScript.setup.action.assert.defaultManualCompletion | |
| Definition | The default manual completion outcome applied to this assertion. |
| Short | fail | pass | skip | stop |
| Comments | Manual completion is used to pause the test engine execution and evaluation allowing an external review of the defined assert condition. The defaultManualCompletion defines the default manual completion outcome applied if one of the enumerated values is not applied. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from AssertionManualCompletionType (required to http://hl7.org/fhir/ValueSet/assert-manual-completion-codes)The default type of manual completion to use for assertion. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Meaning if Missing | If defaultManualCompletion is not specified, then the default manual completion outcome will be 'skip'. |
| 188. TestScript.setup.action.assert.expression | |
| Definition | The expression to be evaluated against the request or response message contents - HTTP headers and payload. |
| Short | The expression to be evaluated |
| Comments | If both "expression" and a "fixtureId" are specified, then the expression will be evaluated against the request or response body mapped to the fixtureId. If "expression" is specified and a "fixtureId" is not, then the expression will be evaluated against the response body of the last operation. Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions. The expression can be evaluated as either a path to a specific value or as a boolean expression against the given sourceId. When the expression evaluates to a boolean, the assert.value element is not used. See Testing FHIR Use Expressions. A test engine is expected to minimally support the expression languages: text/fhirpath, application/xml and application/json. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | Expression |
| 190. TestScript.setup.action.assert.headerField | |
| Definition | The HTTP header field name e.g. 'Location'. |
| Short | HTTP header field name |
| Comments | If "headerField" is specified then "value" must be specified. If "sourceId" is not specified, then "headerField" will be evaluated against the last operation's response headers. Test engines are to keep track of the last operation's response body and response headers. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 192. TestScript.setup.action.assert.minimumId | |
| Definition | The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId. |
| Short | Fixture Id of minimum content resource |
| Comments | Asserts that the response contains all the element/content in another fixture pointed to by minimumId. This can be a statically defined fixture or one that is dynamically set via responseId. See Testing FHIR Use minimumId for a more complete description of the test engine's comparison logic. |
| Control | 0..1 This element is affected by the following invariants: tst-7, tst-8 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 194. TestScript.setup.action.assert.navigationLinks | |
| Definition | Whether or not the test execution performs validation on the bundle navigation links. |
| Short | Perform validation on navigation links? |
| Comments | Asserts that the Bundle contains first, last, and next links. |
| Control | 0..1 This element is affected by the following invariants: tst-7, tst-8 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 196. TestScript.setup.action.assert.operator | |
| Definition | The operator type defines the conditional behavior of the assert. |
| Short | equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval | manualEval |
| Comments | Operators are useful for both positive and negative testing. If operator is not specified, then the default conditional behavior is implemented as defined in Testing FHIR Assertions. |
| Control | 0..1 This element is affected by the following invariants: tst-8 |
| Binding | The codes SHALL be taken from AssertionOperatorType (required to http://hl7.org/fhir/ValueSet/assert-operator-codes)The type of operator to use for assertions. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Meaning if Missing | If operator is not specified, then the default conditional behavior is implemented as defined in the Testing FHIR page Assertions table - see Comments. |
| 198. TestScript.setup.action.assert.path | |
| Definition | The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server. |
| Short | XPath or JSONPath expression |
| Comments | If both "path" and a "fixtureId" are specified, then the path will be evaluated against the request or response body mapped to the fixtureId. If "path" is specified and a "fixtureId" is not, then the path will be evaluated against the response body of the last operation. Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Standard Status | Deprecated (from Normative) |
| 200. TestScript.setup.action.assert.requestMethod | |
| Definition | The request method or HTTP operation code to compare against that used by the client system under test. |
| Short | delete | get | options | patch | post | put | head |
| Comments | If "requestMethod" is specified then it will be used in place of "value". The "requestMethod" will evaluate against the last operation's request HTTP operation. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Binding | The codes SHALL be taken from TestScriptRequestMethodCode (required to http://hl7.org/fhir/ValueSet/http-operations)The allowable request method or HTTP operation codes. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 202. TestScript.setup.action.assert.requestURL | |
| Definition | The value to use in a comparison against the request URL path string. |
| Short | Request URL comparison value |
| Comments | If "requestURL" is specified then it will be used in place of "value". The "requestURL" will evaluate against the last operation's full request URL path string. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 204. TestScript.setup.action.assert.resource | |
| Definition | The type of the resource. See the resource list. |
| Short | Resource type |
| Comments | This will be expected resource type in response body e.g. in read, vread, search, etc. See the Resource List for complete list of resource types; e.g. <assert > <resourceType value="Patient" </assert>. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Binding | Unless not suitable, these codes SHALL be taken from ConcreteFHIRTypes (extensible to http://hl7.org/fhir/ValueSet/concrete-fhir-types)A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types. |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 206. TestScript.setup.action.assert.response | |
| Definition | continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported. |
| Short | continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported |
| Comments | This is a shorter way of achieving similar verifications via "assert.responseCode". If you need more control, then use "assert.responseCode" e.g. <assert> <contentType value="json" /> <response value="okay"/> </assert>. |
| Control | 0..1 This element is affected by the following invariants: tst-6, tst-7 |
| Binding | The codes SHALL be taken from AssertionResponseTypes (required to http://hl7.org/fhir/ValueSet/assert-response-code-types)The response code to expect in the response. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 208. TestScript.setup.action.assert.responseCode | |
| Definition | The value of the HTTP response code to be tested. |
| Short | HTTP response code to test |
| Comments | To be used with "operator" attribute value. Asserts that the response code equals this value if "operator" is not specified. If the operator is "in" or "notIn" then the responseCode would be a comma-separated list of values e.g. "200,201". Otherwise, it's expected to be a numeric value. If "fixture" is not specified, then the "responseBodyId" value of the last operation is assumed. |
| Control | 0..1 This element is affected by the following invariants: tst-6, tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 210. TestScript.setup.action.assert.sourceId | |
| Definition | Fixture to evaluate the XPath/JSONPath expression or the headerField against. |
| Short | Fixture Id of source expression or headerField |
| Comments | This can be a statically defined fixture (at the top of the testscript) or a dynamically set fixture created by responseId of the action.operation element. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 212. TestScript.setup.action.assert.stopTestOnFail | |
| Definition | Whether or not the current test execution will stop on failure for this assert. |
| Short | If this assert fails, will the current test execution stop? |
| Comments | If this element is specified and it is true, then assertion failures should not stop the current test execution from proceeding. |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 214. TestScript.setup.action.assert.validateProfileId | |
| Definition | The ID of the Profile to validate against. |
| Short | Profile Id of validation profile reference |
| Comments | The ID of a Profile fixture. Asserts that the response is valid according to the Profile specified by validateProfileId. |
| Control | 0..1 This element is affected by the following invariants: tst-7, tst-8 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 216. TestScript.setup.action.assert.value | |
| Definition | The value to compare to. |
| Short | The value to compare to |
| Comments | The string-representation of a number, string, or boolean that is expected. Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before comparing this value to the actual value. |
| Control | 0..1 This element is affected by the following invariants: tst-8 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 218. TestScript.setup.action.assert.warningOnly | |
| Definition | Whether or not the test execution will produce a warning only on error for this assert. |
| Short | Will this assert produce a warning only on error? |
| Comments | If this element is specified and it is true, then assertion failures can be logged by test engine but should not stop the test script execution from proceeding. There are likely cases where the spec is not clear on what should happen. If the spec says something is optional (maybe a response header for example), but a server doesn’t do it, we could choose to issue a warning. |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 220. TestScript.setup.action.assert.requirement | |
| Definition | Links or references providing traceability to the testing requirements for this assert. |
| Short | Links or references to the testing requirements |
| Comments | TestScript and TestReport instances are typically (and expected to be) based on known, defined test requirements and documentation. These links provide traceability from the executable/executed TestScript and TestReport tests to these requirements. |
| Control | 0..* |
| Type | BackboneElement |
| 222. TestScript.setup.action.assert.requirement.reference | |
| Definition | Canonical reference providing traceability to the testing requirement for this assert. |
| Short | Canonical reference to the Requirements instance |
| Control | 1..1 |
| Type | canonical(Requirements) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 224. TestScript.setup.action.assert.requirement.key | |
| Definition | Requirements.statement.key that identifies the statement that this assert satisfies. |
| Short | Requirements statement key identifier |
| Control | 1..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 226. TestScript.test | |
| Definition | A test in this script. |
| Short | A test in this script |
| Control | 0..* |
| Type | BackboneElement |
| 228. TestScript.test.name | |
| Definition | The name of this test used for tracking/logging purposes by test engines. |
| Short | Tracking/logging name of this test |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 230. TestScript.test.description | |
| Definition | A short description of the test used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting short description of the test |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 232. TestScript.test.action | |
| Definition | Action would contain either an operation or an assertion. |
| Short | A test operation or assert to perform |
| Comments | An action should contain either an operation or an assertion but not both. It can contain any number of variables. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | tst-9: Test action SHALL contain only one of either a common or an operation or an assert. (common.exists() xor operation.exists() xor assert.exists()) |
| 234. TestScript.test.action.common | |
| Definition | Links or references to common collection(s) of actions in this or an external TestScript instance. |
| Short | Links or references to common collection(s) of actions |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.common |
| 236. TestScript.test.action.operation | |
| Definition | An operation would involve a REST request to a server. |
| Short | The setup operation to perform |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation |
| Invariants | tst-10: Test operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))) |
| 238. TestScript.test.action.assert | |
| Definition | Evaluates the results of previous operations to determine if the server under test behaves appropriately. |
| Short | The setup assertion to perform |
| Comments | In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine. |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.assert |
| Invariants | tst-11: Test action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. (compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists()))tst-12: Test action assert response and response and responseCode SHALL be empty when direction equals request ( (response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response')tst-13: A test action assert SHALL define a singular assertion function and prevent overlapping assertion functionality. ( extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + requestURL.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <= 1))tst-14: A test action assert SHALL not allow the use of operator and value with minimumId, navigationLinks or validateProfileId. ( extension.exists() or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 0) or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 1 and operator.count() + value.count() = 0)) |
| 240. TestScript.teardown | |
| Definition | A series of operations required to clean up after all the tests are executed (successfully or otherwise). |
| Short | A series of required clean up steps |
| Control | 0..1 |
| Type | BackboneElement |
| 242. TestScript.teardown.action | |
| Definition | The teardown action will only contain an operation. |
| Short | One or more teardown operations to perform |
| Comments | An action should contain either an operation or an assertion but not both. It can contain any number of variables. |
| Control | 1..* |
| Type | BackboneElement |
| 244. TestScript.teardown.action.common | |
| Definition | Links or references to common collection(s) of actions in this or an external TestScript instance. Action asserts SHALL be ignored for the TestScript.teardown. |
| Short | Links or references to common collection(s) of actions |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.common |
| 246. TestScript.teardown.action.operation | |
| Definition | An operation would involve a REST request to a server. |
| Short | The teardown operation to perform |
| Control | 1..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation |
| Invariants | tst-15: Teardown operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))) |
| 248. TestScript.common | |
| Definition | A common collection of actions that can be re-used in a TestScript. |
| Short | A common collection of actions in this script |
| Control | 0..* |
| Type | BackboneElement |
| 250. TestScript.common.key | |
| Definition | Key that identifies this common collection of actions (unique within this resource). |
| Short | Key that identifies this common collection of actions |
| Control | 1..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 252. TestScript.common.name | |
| Definition | The name of this this common collection of actions used for tracking/logging purposes by test engines. |
| Short | Tracking/logging name of this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 254. TestScript.common.description | |
| Definition | A short description of this common collection of actions used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting short description of this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 256. TestScript.common.parameter | |
| Definition | Optional named parameter(s) to provide input values to this common collection of actions from this or an external TestScript. |
| Short | Parameter(s) to convey input values to this common collection of actions in this script |
| Control | 0..* |
| Type | BackboneElement |
| 258. TestScript.common.parameter.name | |
| Definition | The name of this parameter that will referenced in this common collection of actions using the TestScript variable nomenclature '${name}. |
| Short | Tracking/logging name of this parameter to be used in this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 260. TestScript.common.parameter.description | |
| Definition | An optional short description of this parameter to be used this common collection of actions used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting short description of this parameter to be used this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 262. TestScript.common.action | |
| Definition | An action will contain either an operation or an assertion but not both. |
| Short | A common operation or assert that can be re-used in this script |
| Control | 1..* |
| Type | BackboneElement |
| Invariants | tst-16: Common action SHALL contain either an operation or assert but not both. (operation.exists() xor assert.exists()) |
| 264. TestScript.common.action.operation | |
| Definition | An operation would involve a REST request to a server. |
| Short | The common operation that can be re-used in this script |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation |
| Invariants | tst-17: Common operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))) |
| 266. TestScript.common.action.assert | |
| Definition | Evaluates the results of previous operations to determine if the server under test behaves appropriately. |
| Short | The common assertion to perform |
| Comments | In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine. |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.assert |
| Invariants | tst-18: Common action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. (compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists()))tst-19: Common action assert response and response and responseCode SHALL be empty when direction equals request ( (response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response')tst-20: A common action assert SHALL define a singular assertion function and prevent overlapping assertion functionality. ( extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + requestURL.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <= 1))tst-21: A common action assert SHALL not allow the use of operator and value with minimumId, navigationLinks or validateProfileId. ( extension.exists() or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 0) or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 1 and operator.count() + value.count() = 0)) |
Guidance on how to interpret the contents of this table can be foundhere
| 0. TestScript | |
| Definition | A structured set of tests against a FHIR server or client implementation to determine compliance against the FHIR specification. |
| Short | Describes a set of tests |
| Control | 1..1 |
| Is Modifier | false |
| Must Support | false |
| Summary | false |
| Invariants | cnl-0: Name should be usable as an identifier for the module by machine processing applications such as code generation (name.exists() implies name.matches('^[A-Z]([A-Za-z0-9_]){1,254}$'))dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources ( contained.contained.empty())dom-3: 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 ( contained.where((('#'+id.trace('id') in %resource.descendants().select(reference | as(uri))) or descendants().where(reference='#' | as(uri)='#').exists()).not()).trace('unmatched', id).empty())dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated ( contained.meta.versionId.empty() and contained.meta.lastUpdated.empty())dom-5: If a resource is contained in another resource, it SHALL NOT have a security label ( contained.meta.security.empty())dom-6: A resource should have narrative for robust management ( text.`div`.exists()) |
| 2. TestScript.id | |
| Definition | The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. |
| Short | Logical id of this artifact |
| Comments | 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. |
| Control | 0..1 |
| Type | id |
| Is Modifier | false |
| Must Support | false |
| Summary | true |
| 4. TestScript.meta | |
| Definition | 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. |
| Short | Metadata about the resource |
| Control | 0..1 |
| Type | Meta |
| Is Modifier | false |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 6. TestScript.implicitRules | |
| Definition | 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. |
| Short | A set of rules under which this content was created |
| Comments | 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. |
| Control | 0..1 |
| Type | uri |
| Is Modifier | true because This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies its meaning or interpretation |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 8. TestScript.language | |
| Definition | The base language in which the resource is written. |
| Short | Language of the resource content |
| Comments | 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). |
| Control | 0..1 |
| Binding | The codes SHALL be taken from AllLanguages (required to http://hl7.org/fhir/ValueSet/all-languages|6.0.0-ballot3)IETF language tag for a human language |
| Type | code |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 10. TestScript.text | |
| Definition | 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. |
| Short | Text summary of the resource, for human interpretation |
| Comments | 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. |
| Control | 0..1 This element is affected by the following invariants: dom-6 |
| Type | Narrative |
| Is Modifier | false |
| Must Support | false |
| Summary | false |
| Alternate Names | narrative, html, xhtml, display |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 12. TestScript.contained | |
| Definition | 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. |
| Short | Contained, inline Resources |
| Comments | 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. Contained resources may be a resource type defined in the FHIR specification, or an additional resource. |
| Control | 0..* This element is affected by the following invariants: dom-2, dom-4, dom-3, dom-5 |
| Type | Resource |
| Is Modifier | false |
| Must Support | false |
| Summary | false |
| Alternate Names | inline resources, anonymous resources, contained resources |
| 14. TestScript.extension | |
| Definition | 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Must Support | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 16. TestScript.modifierExtension | |
| Definition | 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). |
| Short | Extensions that cannot be ignored |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them |
| Must Support | false |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 18. TestScript.url | |
| Definition | An absolute URI that is used to identify this test script 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 script is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the test script is stored on different servers. |
| Short | Canonical identifier for this test script, represented as a URI (globally unique) |
| Comments | 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. 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 element to indicate where the current master source of the resource can be found. |
| Control | 0..1 |
| Type | uri |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Requirements | Allows the test script to be referenced by a single globally unique identifier. |
| Alternate Names | url, authoritative-url, destination, identity |
| Invariants | cnl-1: URL should not contain | or # - these characters make processing canonical references problematic (exists() implies matches('^[^|# ]+$'))ele-1: All FHIR elements must have a @value or children ( hasValue() or (children().count() > id.count())) |
| 20. TestScript.identifier | |
| Definition | A formal identifier that is used to identify this test script when it is represented in other formats, or referenced in a specification, model, design or an instance. |
| Short | Additional identifier for the test script |
| Note | This is a business identifier, not a resource identifier (see discussion) |
| Control | 0..* |
| Type | Identifier |
| Is Modifier | false |
| Must Support | false |
| Summary | true |
| Requirements | Allows externally provided and/or usable business identifiers to be easily associated with the module. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 22. TestScript.version | |
| Definition | The identifier that is used to identify this version of the test script when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the test script author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence. |
| Short | Business version of the test script |
| Comments | There may be different test script instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the test script with the format [url]|[version]. The version SHOULD NOT contain a '#' - see Business Version. |
| Note | This is a business version Id, not a resource version Id (see discussion) |
| Control | 0..1 |
| Type | string |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 24. TestScript.versionAlgorithm[x] | |
| Definition | Indicates the mechanism used to compare versions to determine which is more current. |
| Short | How to compare versions |
| Comments | 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. |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from VersionAlgorithm (extensible to http://hl7.org/fhir/ValueSet/version-algorithm) |
| Type | Choice of: string, Coding |
| [x] Note | SeeChoice of Data Typesfor further information about how to use [x] |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 26. TestScript.name | |
| Definition | A natural language name identifying the test script. This name should be usable as an identifier for the module by machine processing applications such as code generation. |
| Short | Name for this test script (computer friendly) |
| Comments | 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. |
| Control | 1..1 This element is affected by the following invariants: cnl-0 |
| Type | string |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Requirements | Support code generation. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 28. TestScript.title | |
| Definition | A short, descriptive, user-friendly title for the test script. |
| Short | Name for this test script (human friendly) |
| Comments | This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc. |
| Control | 0..1 |
| Type | string |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 30. TestScript.status | |
| Definition | The status of this test script. Enables tracking the life-cycle of the content. |
| Short | draft | active | retired | unknown |
| Comments | Allows filtering of test scripts that are appropriate for use versus not. See guidance around (not) making local changes to elements here. |
| Control | 1..1 |
| Binding | The codes SHALL be taken from PublicationStatus (required to http://hl7.org/fhir/ValueSet/publication-status)The lifecycle status of an artifact. |
| Type | code |
| Is Modifier | true because This is labeled as "Is Modifier" because applications should not use a retired {{title}} without due consideration |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Requirements | Enables tracking the life-cycle of the content and filtering of {{title}}s that are appropriate for use versus not. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 32. TestScript.experimental | |
| Definition | A Boolean value to indicate that this test script is authored for testing purposes (or education/evaluation/marketing) and no version of this resource will ever be intended for genuine usage. |
| Short | For testing only - never for real usage |
| Comments | Allows filtering of test scripts that are appropriate for use versus not.. Experimental resources might include example instances in implementation guides, instances created solely for testing purposes, etc |
| Control | 0..1 |
| Type | boolean |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Requirements | Enables experimental content to be developed following the same lifecycle that would be used for a production-level test script. |
| Meaning if Missing | If absent, this resource is treated as though it is not experimental. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 34. TestScript.date | |
| Definition | The date (and optionally time) when the test script 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 script changes. |
| Short | Date last changed |
| Comments | 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 script. 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. |
| Control | 0..1 |
| Type | dateTime |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Alternate Names | Revision Date |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 36. TestScript.publisher | |
| Definition | The name of the organization or individual responsible for the release and ongoing maintenance of the test script. |
| Short | Name of the publisher/steward (organization or individual) |
| Comments | Usually an organization but may be an individual. The publisher (or steward) of the test script is the organization or individual primarily responsible for the maintenance and upkeep of the test script. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the test script. This item SHOULD be populated unless the information is available from context. |
| Control | 0..1 |
| Type | string |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | true |
| Requirements | Helps establish the "authority/credibility" of the test script. May also allow for contact. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 38. TestScript.contact | |
| Definition | Contact details to assist a user in finding and communicating with the publisher. |
| Short | Contact details for the publisher |
| Comments | May be a web site, an email address, a telephone number, etc. See guidance around (not) making local changes to elements here. |
| Control | 0..* |
| Type | ContactDetail |
| Is Modifier | false |
| Must Support | false |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 40. TestScript.description | |
| Definition | A free text natural language description of the test script from a consumer's perspective. |
| Short | Natural language description of the test script |
| Comments | 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 script as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the test script is presumed to be the predominant language in the place the test script was created). |
| Control | 0..1 |
| Type | markdown |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 42. TestScript.useContext | |
| Definition | 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 script instances. |
| Short | The context that the content is intended to support |
| Comments | When multiple useContexts are specified, there is no expectation that all or any of the contexts apply. |
| Control | 0..* |
| Type | UsageContext |
| Is Modifier | false |
| Must Support | false |
| Summary | true |
| Requirements | Assist in searching for appropriate content. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 44. TestScript.jurisdiction | |
| Definition | A legal or geographic region in which the test script is intended to be used. |
| Short | Intended jurisdiction for test script (if applicable) |
| Comments | It may be possible for the test script 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.) |
| Control | 0..* |
| Binding | Unless not suitable, these codes SHALL be taken from JurisdictionValueSet (extensible to http://hl7.org/fhir/ValueSet/jurisdiction)Countries and regions within which this artifact is targeted for use. |
| Type | CodeableConcept |
| Is Modifier | false |
| Must Support | false |
| Standard Status | Deprecated (from Normative) |
| Summary | true |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 46. TestScript.purpose | |
| Definition | Explanation of why this test script is needed and why it has been designed as it has. |
| Short | Why this test script is defined |
| Comments | This element does not describe the usage of the test script. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this test script. |
| Control | 0..1 |
| Type | markdown |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | false |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 48. TestScript.copyright | |
| Definition | A copyright statement relating to the test script and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the test script. |
| Short | Use and/or publishing restrictions |
| Comments | The short copyright declaration (e.g. (c) '2015+ xyz organization' should be sent in the copyrightLabel element. |
| Control | 0..1 |
| Type | markdown |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | false |
| Requirements | Consumers must be able to determine any legal restrictions on the use of the test script and/or its content. |
| Alternate Names | License, Restrictions |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 50. TestScript.copyrightLabel | |
| Definition | 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'). |
| Short | Copyright holder and year(s) |
| Comments | 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. |
| Control | 0..1 |
| Type | string |
| Is Modifier | false |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Must Support | false |
| Summary | false |
| Requirements | Defines the content expected to be rendered in all representations of the artifact. |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 52. TestScript.testSystem | |
| Definition | An abstract server used in operations within this test script in the origin element. |
| Short | An abstract server representing a client or sender in a message exchange |
| Comments | The purpose of this element is to define the profile of an origin element used elsewhere in the script. Test engines could then use the origin-profile mapping to offer a filtered list of test systems that can serve as the sender for the interaction. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 54. TestScript.testSystem.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 56. TestScript.testSystem.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.testSystem.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 58. TestScript.testSystem.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 60. TestScript.testSystem.index | |
| Definition | Number for the test system that is unique within this test script. Referenced by operation.origin and/or operation.destination. |
| Short | The index of the abstract test system |
| Comments | A given test system index (e.g. 1) can appear only once in the list (e.g. Origin 1 cannot be specified twice ... once as actor A and again as actor B within the same script as that could get confusing during test configuration). Different test system indices could play the same actor in the same test script. The operation.origin and/or operation.destination values defined elsewhere in the test script must be one of these test system indices. |
| Control | 1..1 |
| Type | positiveInt |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 62. TestScript.testSystem.title | |
| Definition | A short human-friendly label for the test system that is unique within this test script and may be used when rendering the script. |
| Short | Label for the test system |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 64. TestScript.testSystem.actor | |
| Definition | Reference to requirements that must be satisfied by the test system. |
| Short | Features met by the test system |
| Control | 0..* |
| Type | canonical(ActorDefinition, CapabilityStatement) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 66. TestScript.testSystem.description | |
| Definition | Additional information about the role and capabilities of the systems that would participate in this portion of the script. |
| Short | Formatted information of this test system |
| Control | 0..1 |
| Type | markdown |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 68. TestScript.testSystem.url | |
| Definition | The explicit url path of the test system used in this test script. If populated, the test engine is not expected to prompt for or accept external input of this value. |
| Short | The url path of this test system |
| Comments | This value represents the host location for an origin test system or the base url for a destination test system. |
| Control | 0..1 |
| Type | url |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 70. TestScript.metadata | |
| Definition | The required capability must exist and are assumed to function correctly on the FHIR server being tested. |
| Short | Required capability that is assumed to function correctly on the FHIR server being tested |
| Control | 0..1 |
| Type | BackboneElement |
| Invariants | tst-1: TestScript metadata capability SHALL contain required or validated or both. (capability.required.exists() or capability.validated.exists())ele-1: All FHIR elements must have a @value or children or both ( hasValue() or (children().count() > id.count())) |
| 72. TestScript.metadata.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 74. TestScript.metadata.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.metadata.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 76. TestScript.metadata.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 78. TestScript.metadata.link | |
| Definition | A link to the FHIR specification that this test is covering. |
| Short | Links to the FHIR specification |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 80. TestScript.metadata.link.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 82. TestScript.metadata.link.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.metadata.link.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 84. TestScript.metadata.link.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 86. TestScript.metadata.link.url | |
| Definition | URL to a particular requirement or feature within the FHIR specification. |
| Short | URL to the specification |
| Control | 1..1 |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 88. TestScript.metadata.link.description | |
| Definition | Short description of the link. |
| Short | Short description |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 90. TestScript.metadata.capability | |
| Definition | Capabilities that must exist and are assumed to function correctly on the FHIR server being tested. |
| Short | Capabilities that are assumed to function correctly on the FHIR server being tested |
| Comments | When the metadata capabilities section is defined at TestScript.metadata, and the server's conformance statement does not contain the elements defined in the minimal conformance statement, then all the tests in the TestScript are skipped. The "metadata.capabilities.required" and "metadata.capabilities.validated" elements only indicate whether the capabilities are the primary focus of the test script or not. They do not impact the skipping logic. Capabilities whose "metadata.capabilities.validated" flag is true are the primary focus of the test script. |
| Control | 1..* This element is affected by the following invariants: tst-1 |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 92. TestScript.metadata.capability.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 94. TestScript.metadata.capability.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.metadata.capability.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 96. TestScript.metadata.capability.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 98. TestScript.metadata.capability.required | |
| Definition | Whether or not the test execution will require the given capabilities of the server in order for this test script to execute. |
| Short | Are the capabilities required? |
| Control | 1..1 This element is affected by the following invariants: tst-1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 100. TestScript.metadata.capability.validated | |
| Definition | Whether or not the test execution will validate the given capabilities of the server in order for this test script to execute. |
| Short | Are the capabilities validated? |
| Control | 1..1 This element is affected by the following invariants: tst-1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 102. TestScript.metadata.capability.description | |
| Definition | Description of the capabilities that this test script is requiring the server to support. |
| Short | The expected capabilities of the server |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 104. TestScript.metadata.capability.origin | |
| Definition | Which origin server these requirements apply to. |
| Short | Which origin server these requirements apply to |
| Control | 0..* |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 106. TestScript.metadata.capability.destination | |
| Definition | Which server these requirements apply to. |
| Short | Which server these requirements apply to |
| Control | 0..1 |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 108. TestScript.metadata.capability.link | |
| Definition | Links to the FHIR specification that describes this interaction and the resources involved in more detail. |
| Short | Links to the FHIR specification |
| Control | 0..* |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 110. TestScript.metadata.capability.capabilities | |
| Definition | Minimum capabilities required of server for test script to execute successfully. If server does not meet at a minimum the referenced capability statement, then all tests in this script are skipped. |
| Short | Required Capability Statement |
| Comments | The conformance statement of the server has to contain at a minimum the contents of the reference pointed to by this element. |
| Control | 1..1 |
| Type | canonical(CapabilityStatement) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 112. TestScript.scope | |
| Definition | The scope indicates a conformance artifact that is tested by the test(s) within this test case and the expectation of the test outcome(s) as well as the intended test phase inclusion. |
| Short | Indication of the artifact(s) that are tested by this test case |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 114. TestScript.scope.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 116. TestScript.scope.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.scope.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 118. TestScript.scope.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 120. TestScript.scope.artifact | |
| Definition | The specific conformance artifact being tested. The canonical reference can be version-specific. |
| Short | The specific conformance artifact being tested |
| Control | 1..1 |
| Type | canonical(Resource) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 122. TestScript.scope.conformance | |
| Definition | The expectation of whether the test must pass for the system to be considered conformant with the artifact: required - all tests are expected to pass, optional - all test are expected to pass but non-pass status may be allowed, strict - all tests are expected to pass and warnings are treated as a failure. |
| Short | required | optional | strict |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from TestScriptScopeConformanceType (extensible to http://hl7.org/fhir/ValueSet/testscript-scope-conformance-codes)The expectation of whether the test must pass for the system to be considered conformant with the artifact. |
| Type | CodeableConcept |
| Meaning if Missing | required |
| 124. TestScript.scope.phase | |
| Definition | The phase of testing for this artifact: unit - development / implementation phase, integration - internal system to system phase, production - live system to system phase (Note, this may involve pii/phi data). |
| Short | unit | integration | production |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from TestScriptScopePhaseType (extensible to http://hl7.org/fhir/ValueSet/testscript-scope-phase-codes)The phase of testing for this artifact. |
| Type | CodeableConcept |
| Meaning if Missing | unit |
| 126. TestScript.fixture | |
| Definition | Fixture in the test script - by reference (uri). All fixtures are required for the test script to execute. |
| Short | Fixture in the test script - by reference (uri) |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 128. TestScript.fixture.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 130. TestScript.fixture.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.fixture.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 132. TestScript.fixture.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 134. TestScript.fixture.autocreate | |
| Definition | Whether or not to implicitly create the fixture during setup. If true, the fixture is automatically created on each server being tested during setup, therefore no create operation is required for this fixture in the TestScript.setup section. |
| Short | Whether or not to implicitly create the fixture during setup |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 136. TestScript.fixture.autodelete | |
| Definition | Whether or not to implicitly delete the fixture during teardown. If true, the fixture is automatically deleted on each server being tested during teardown, therefore no delete operation is required for this fixture in the TestScript.teardown section. |
| Short | Whether or not to implicitly delete the fixture during teardown |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 138. TestScript.fixture.resource | |
| Definition | Reference to the resource (containing the contents of the resource needed for operations). This is allowed to be a Parameters resource. |
| Short | Reference of the resource |
| Comments | See the Resource List for complete list of resource types. |
| Control | 0..1 |
| Type | Reference(Resource) |
| 140. TestScript.fixture.expression | |
| Definition | The expression for a specific element to extract from the fixture body. |
| Short | The expression against the fixture to extract the required element |
| Comments | If expression is defined then the evaluated element from the fixture will become the fixture contents. A test engine is expected to minimally support the expression languages: text/fhirpath, application/xml and application/json. |
| Control | 0..1 |
| Type | Expression |
| 142. TestScript.profile | |
| Definition | Reference to the profile to be used for validation. |
| Short | Reference of the validation profile |
| Comments | See the Resource List for complete list of resource types. |
| Control | 0..* |
| Type | canonical(StructureDefinition) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 144. TestScript.variable | |
| Definition | Variable is set based either on element value in response body or on header field value in the response headers. |
| Short | Placeholder for evaluated elements |
| Comments | Variables would be set based either on XPath/JSONPath expressions against fixtures (static and response), or headerField evaluations against response headers. If variable evaluates to nodelist or anything other than a primitive value, then test engine would report an error. Variables would be used to perform clean replacements in "operation.params", "operation.requestHeader.value", and "operation.url" element values during operation calls and in "assert.value" during assertion evaluations. This limits the places that test engines would need to look for placeholders "${}". Variables are scoped to the whole script. They are NOT evaluated at declaration. They are evaluated by test engine when used for substitutions in "operation.params", "operation.requestHeader.value", and "operation.url" element values during operation calls and in "assert.value" during assertion evaluations. See example testscript-search.xml. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | tst-2: Variable can only contain one of expression, headerField or path. ((expression.empty() and headerField.empty() and path.empty()) or (expression.empty() and (headerField.exists() xor path.exists())) or (headerField.empty() and (expression.exists() xor path.exists())) or (path.empty() and (expression.exists() xor headerField.exists())))ele-1: All FHIR elements must have a @value or children or both ( hasValue() or (children().count() > id.count())) |
| 146. TestScript.variable.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 148. TestScript.variable.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.variable.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 150. TestScript.variable.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 152. TestScript.variable.name | |
| Definition | Descriptive name for this variable. |
| Short | Descriptive name for this variable |
| Comments | Placeholders would contain the variable name wrapped in ${} in "operation.params", "operation.requestHeader.value", and "operation.url" elements. These placeholders would need to be replaced by the variable value before the operation is executed. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 154. TestScript.variable.defaultValue | |
| Definition | A default, hard-coded, or user-defined value for this variable. |
| Short | Default, hard-coded, or user-defined value for this variable |
| Comments | The purpose of this element is to allow for a pre-defined value that can be used as a default or as an override value. Test engines can optionally use this as a placeholder for user-defined execution time values. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 156. TestScript.variable.description | |
| Definition | A free text natural language description of the variable and its purpose. |
| Short | Natural language description of the variable |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 158. TestScript.variable.expression | |
| Definition | The expression for a specific value to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. |
| Short | The expression against the fixture body |
| Comments | If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define any combination of expression, headerField and path. A test engine is expected to minimally support the expression languages: text/fhirpath, application/xml and application/json. |
| Control | 0..1 This element is affected by the following invariants: tst-2 |
| Type | Expression |
| 160. TestScript.variable.headerField | |
| Definition | Will be used to grab the HTTP header field value from the headers that sourceId is pointing to. |
| Short | HTTP header field name for source |
| Comments | If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define both headerField and path. |
| Control | 0..1 This element is affected by the following invariants: tst-2 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 162. TestScript.variable.hint | |
| Definition | Displayable text string with hint help information to the user when entering a default value. |
| Short | Hint help text for default value to enter |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 164. TestScript.variable.path | |
| Definition | XPath or JSONPath to evaluate against the fixture body. When variables are defined, only one of either expression, headerField or path must be specified. |
| Short | XPath or JSONPath against the fixture body |
| Comments | If headerField is defined, then the variable will be evaluated against the headers that sourceId is pointing to. If expression or path is defined, then the variable will be evaluated against the fixture body that sourceId is pointing to. It is an error to define any combination of expression, headerField and path. |
| Control | 0..1 This element is affected by the following invariants: tst-2 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Standard Status | Deprecated (from Normative) |
| 166. TestScript.variable.sourceId | |
| Definition | Fixture to evaluate the XPath/JSONPath expression or the headerField against within this variable. |
| Short | Fixture Id of source expression or headerField within this variable |
| Comments | This can be a statically defined fixture (at the top of the TestScript) or a dynamically set fixture created by responseId of the |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 168. TestScript.setup | |
| Definition | A series of required setup operations before tests are executed. |
| Short | A series of required setup operations before tests are executed |
| Control | 0..1 |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 170. TestScript.setup.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 172. TestScript.setup.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 174. TestScript.setup.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 176. TestScript.setup.action | |
| Definition | Action would contain either a common or operation or an assertion. |
| Short | A setup common or operation or assert to perform |
| Comments | An action should contain only one of either a common or operation or an assertion. It can contain any number of variables. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | tst-3: Setup action SHALL contain only one of either a common or an operation or an assert. (common.exists() xor operation.exists() xor assert.exists())ele-1: All FHIR elements must have a @value or children or both ( hasValue() or (children().count() > id.count())) |
| 178. TestScript.setup.action.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 180. TestScript.setup.action.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 182. TestScript.setup.action.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 184. TestScript.setup.action.common | |
| Definition | Links or references to common collection(s) of actions in this or an external TestScript instance. |
| Short | Links or references to common collection(s) of actions |
| Control | 0..1 This element is affected by the following invariants: tst-3 |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 186. TestScript.setup.action.common.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 188. TestScript.setup.action.common.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.common.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 190. TestScript.setup.action.common.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 192. TestScript.setup.action.common.testScript | |
| Definition | Canonical reference providing traceability to the common TestScript instance containing the commonKey. |
| Short | Canonical reference to the common TestScript instance |
| Comments | If not defined, this TestScript instance is the container of the setup common key. |
| Control | 0..1 |
| Type | canonical(Test Script) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 194. TestScript.setup.action.common.keyRef | |
| Definition | Common key reference that identifies the common collection of actions to perform as defined the this or the common testScript. |
| Short | Common key reference that identifies the common collection of actions to perform |
| Control | 1..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 196. TestScript.setup.action.common.parameter | |
| Definition | Optional named parameter(s) to provide input values to the identified common collection of actions from this or an external TestScript. |
| Short | Parameter(s) to convey input values to the identified common collection of actions |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 198. TestScript.setup.action.common.parameter.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 200. TestScript.setup.action.common.parameter.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.common.parameter.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 202. TestScript.setup.action.common.parameter.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 204. TestScript.setup.action.common.parameter.name | |
| Definition | The name of this parameter from the identified common collection of actions from this or an external TestScript. |
| Short | Name of the parameter from the identified common collection of actions |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 206. TestScript.setup.action.common.parameter.value | |
| Definition | The value to assign to this parameter from the identified common collection of actions from this or an external TestScript. |
| Short | Value to assign to the parameter from the identified common collection of actions |
| Comments | The value data type is a generic string where the expectation is the actual value may be assigned to any action.opertion or action.assert element. The FHIR test engine must correctly assign the value to the target element's data type. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 208. TestScript.setup.action.operation | |
| Definition | The operation to perform. |
| Short | The setup operation to perform |
| Control | 0..1 This element is affected by the following invariants: tst-3 |
| Type | BackboneElement |
| Invariants | tst-4: Setup operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' |'search' | 'transaction' | 'history')))ele-1: All FHIR elements must have a @value or children or both ( hasValue() or (children().count() > id.count())) |
| 210. TestScript.setup.action.operation.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 212. TestScript.setup.action.operation.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.operation.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 214. TestScript.setup.action.operation.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 216. TestScript.setup.action.operation.type | |
| Definition | Server interaction or operation type. |
| Short | The operation code type that will be executed |
| Comments | See the list of server interactions. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Binding | Unless not suitable, these codes SHALL be taken from TestScriptOperationCode (extensible to http://hl7.org/fhir/ValueSet/testscript-operation-codes)FHIR Operation Code Types |
| Type | Coding |
| 218. TestScript.setup.action.operation.resource | |
| Definition | The type of the FHIR resource. See the resource list. Data type of uri is needed when non-HL7 artifacts are identified. |
| Short | Resource type |
| Comments | If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. |
| Control | 0..1 |
| Binding | Unless not suitable, these codes SHALL be taken from ConcreteFHIRTypes (extensible to http://hl7.org/fhir/ValueSet/concrete-fhir-types)A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types. |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 220. TestScript.setup.action.operation.label | |
| Definition | The label would be used for tracking/logging purposes by test engines. |
| Short | Tracking/logging operation label |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 222. TestScript.setup.action.operation.description | |
| Definition | The description would be used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting operation description |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 224. TestScript.setup.action.operation.accept | |
| Definition | The mime-type to use for RESTful operation in the 'Accept' header. |
| Short | Mime type to accept in the payload of the response, with charset etc |
| Comments | If this is specified, then test engine shall set the 'Accept' header to the corresponding value. If you'd like to explicitly set the 'Accept' to some other value then use the 'requestHeader' element. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from SupplementedMimeTypes (required to http://hl7.org/fhir/ValueSet/supplemented-mimetypes)The mime type of an attachment. Any valid mime type is allowed (BCP 13; RFCs 2045, 2046, 2047, 4288, 4289 and 2049), and also |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Example | General: application/fhir+xml |
| 226. TestScript.setup.action.operation.contentType | |
| Definition | The mime-type to use for RESTful operation in the 'Content-Type' header. |
| Short | Mime type of the request payload contents, with charset etc |
| Comments | If this is specified, then test engine shall set the 'Content-Type' header to the corresponding value. If you'd like to explicitly set the 'Content-Type' to some other value then use the 'requestHeader' element. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from SupplementedMimeTypes (required to http://hl7.org/fhir/ValueSet/supplemented-mimetypes)The mime type of an attachment. Any valid mime type is allowed (BCP 13; RFCs 2045, 2046, 2047, 4288, 4289 and 2049), and also |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Example | General: application/fhir+xml |
| 228. TestScript.setup.action.operation.destination | |
| Definition | The test system where the request message is destined. Must be one of the test system indices listed in TestScript.testSystem section. |
| Short | Server responding to the request |
| Comments | If multiple TestScript.testSystem elements are defined and operation.destination is undefined, the test engine will report an error as it cannot determine what destination test system to use for the exchange. |
| Control | 0..1 |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 230. TestScript.setup.action.operation.encodeRequestUrl | |
| Definition | Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths. |
| Short | Whether or not to send the request url in encoded format |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 232. TestScript.setup.action.operation.method | |
| Definition | The HTTP method the test engine MUST use for this operation regardless of any other operation details. |
| Short | delete | get | options | patch | post | put | head |
| Comments | The primary purpose of the explicit HTTP method is support of HTTP POST method invocation of the FHIR search. Other uses will include support of negative testing. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from TestScriptRequestMethodCode (required to http://hl7.org/fhir/ValueSet/http-operations)The allowable request method or HTTP operation codes. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 234. TestScript.setup.action.operation.origin | |
| Definition | The test system where the request message originates. Must be one of the test system indices listed in TestScript.testSystem section. |
| Short | Server initiating the request |
| Comments | If absent, the test engine will send the message. When present, the test engine will not send the request message but will wait for the request message to be sent from this test system. |
| Control | 0..1 |
| Type | integer |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 236. TestScript.setup.action.operation.params | |
| Definition | Path plus parameters after [type]. Used to set parts of the request URL explicitly. |
| Short | Explicitly defined path parameters |
| Comments | If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. Test engines would append whatever is specified for "params" to the URL after the resource type without tampering with the string (beyond encoding the URL for HTTP). The "params" element does not correspond exactly to "search parameters". Nor is it the "path". It corresponds to the part of the URL that comes after the [type] (when "resource" element is specified); e.g. It corresponds to "/[id]/_history/[vid] {?_format=[mime-type]}" in the following operation: GET [base]/[type]/[id]/_history/[vid] {?_format=[mime-type]} Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 238. TestScript.setup.action.operation.requestHeader | |
| Definition | Header elements would be used to set HTTP headers. |
| Short | Each operation can have one or more header elements |
| Comments | This gives control to test-script writers to set headers explicitly based on test requirements. It will allow for testing using: - "If-Modified-Since" and "If-None-Match" headers. "If-Match" header. See Conditional Create using "If-None-Exist". See Invalid "Content-Type" header for negative testing. - etc. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 240. TestScript.setup.action.operation.requestHeader.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 242. TestScript.setup.action.operation.requestHeader.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.operation.requestHeader.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 244. TestScript.setup.action.operation.requestHeader.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 246. TestScript.setup.action.operation.requestHeader.field | |
| Definition | The HTTP header field e.g. "Accept". |
| Short | HTTP header field name |
| Comments | If header element is specified, then field is required. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 248. TestScript.setup.action.operation.requestHeader.value | |
| Definition | The value of the header e.g. "application/fhir+xml". |
| Short | HTTP headerfield value |
| Comments | If header element is specified, then value is required. No conversions will be done by the test engine e.g. "xml" to "application/fhir+xml". The values will be set in HTTP headers "as-is". Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request. |
| Control | 1..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 250. TestScript.setup.action.operation.requestId | |
| Definition | The fixture id (maybe new) to map to the request. |
| Short | Fixture Id of mapped request |
| Comments | If a requestId is supplied, then the resulting request (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by "requestId". If requestId is not specified, it is the test engine's responsibility to store the request and use it as the requestId in subsequent assertions when assertion path and/or headerField is specified, direction is equal to request, and the requestId in not specified. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 252. TestScript.setup.action.operation.responseId | |
| Definition | The fixture id (maybe new) to map to the response. |
| Short | Fixture Id of mapped response |
| Comments | If a responseId is supplied, and the server responds, then the resulting response (both headers and body) is mapped to the fixture ID (which may be entirely new and previously undeclared) designated by "responseId". If responseId is not specified, it is the test engine's responsibility to store the response and use it as the responseId in subsequent assertions when assertion path and/or headerField is specified and the responseId is not specified. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 254. TestScript.setup.action.operation.sourceId | |
| Definition | The id of the fixture used as the body of a PUT or POST request. |
| Short | Fixture Id of body for PUT and POST requests |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 256. TestScript.setup.action.operation.targetId | |
| Definition | Id of fixture used for extracting the [id], [type], and [vid] for GET requests. |
| Short | Id of fixture used for extracting the [id], [type], and [vid] for GET requests |
| Comments | If "url" element is specified, then "targetId", "params", and "resource" elements will be ignored as "url" element will have everything needed for constructing the request url. If "params" element is specified, then "targetId" element is ignored. For FHIR operations that require a resource (e.g. "read" and "vread" operations), the "resource" element must be specified when "params" element is specified. If "url" and "params" elements are absent, then the request url will be constructed from "targetId" fixture if present. For "read" operation, the resource and id values will be extracted from "targetId" fixture and used to construct the url. For "vread" and "history" operations, the versionId value will also be used. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 258. TestScript.setup.action.operation.url | |
| Definition | Complete request URL. |
| Short | Request URL |
| Comments | Used to set the request URL explicitly. If "url" element is defined, then "targetId", "resource", and "params" elements will be ignored. Test engines would use whatever is specified in "url" without tampering with the string (beyond encoding the URL for HTTP). Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before sending the request. |
| Control | 0..1 This element is affected by the following invariants: tst-4 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 260. TestScript.setup.action.assert | |
| Definition | Evaluates the results of previous operations to determine if the server under test behaves appropriately. |
| Short | The assertion to perform |
| Comments | In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine. |
| Control | 0..1 This element is affected by the following invariants: tst-3 |
| Type | BackboneElement |
| Invariants | tst-5: Setup action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. (compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists()))tst-6: Setup action assert response and responseCode SHALL be empty when direction equals request ( (response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response')tst-7: A setup action assert SHALL define a singular assertion function and prevent overlapping assertion functionality. ( extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + requestURL.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <= 1))tst-8: A setup action assert SHALL not allow the use of operator and value with minimumId, navigationLinks or validateProfileId. ( extension.exists() or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 0) or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 1 and operator.count() + value.count() = 0))ele-1: All FHIR elements must have a @value or children or both ( hasValue() or (children().count() > id.count())) |
| 262. TestScript.setup.action.assert.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 264. TestScript.setup.action.assert.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.assert.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 266. TestScript.setup.action.assert.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 268. TestScript.setup.action.assert.label | |
| Definition | The label would be used for tracking/logging purposes by test engines. |
| Short | Tracking/logging assertion label |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 270. TestScript.setup.action.assert.key | |
| Definition | The key that identifies this assert (unique within this TestScript). |
| Short | Key that identifies this assert |
| Comments | This may be referenced by downstream assert.evaluateBasedOn for conditional evaluation by the test engine. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 272. TestScript.setup.action.assert.evaluateBasedOn | |
| Definition | A list of zero or more assert.key references to conditionally determine if this assert will be evaluated. |
| Short | Zero or more assert.key references |
| Comments | This may reference upstream assert.key value(s) for conditional evaluation of this assert by the test engine. |
| Control | 0..* |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 274. TestScript.setup.action.assert.description | |
| Definition | The description would be used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting assertion description |
| Comments | This has no impact on the verification itself. |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 276. TestScript.setup.action.assert.direction | |
| Definition | The direction to use for the assertion. |
| Short | response | request |
| Comments | If the direction is specified as "response" (the default), then the processing of this assert is against the received response message. If the direction is specified as "request", then the processing of this assert is against the sent request message. |
| Control | 0..1 This element is affected by the following invariants: tst-6 |
| Binding | The codes SHALL be taken from AssertionDirectionType (required to http://hl7.org/fhir/ValueSet/assert-direction-codes)The direction to use for assertions. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 278. TestScript.setup.action.assert.compareToSourceId | |
| Definition | Id of the source fixture used as the contents to be evaluated by either the "assert.compareToSourceExpression" or "assert.compareToSourcePath" definition. |
| Short | Id of the source fixture to be evaluated |
| Control | 0..1 This element is affected by the following invariants: tst-5 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 280. TestScript.setup.action.assert.compareToSourceExpression | |
| Definition | The expression for a specific value to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. |
| Short | The expression to evaluate against the source fixture |
| Comments | The expression to be evaluated against the expected fixture to compare to. Ignored if "assert.value" is used. The evaluation will be done before the assertion is evaluated. |
| Control | 0..1 This element is affected by the following invariants: tst-5 |
| Type | Expression |
| 282. TestScript.setup.action.assert.compareToSourcePath | |
| Definition | XPath or JSONPath expression to evaluate against the source fixture. When compareToSourceId is defined, either compareToSourceExpression or compareToSourcePath must be defined, but not both. |
| Short | XPath or JSONPath expression to evaluate against the source fixture |
| Comments | The XPath or JSONPath expression to be evaluated against the expected fixture to compare to. Ignored if "assert.value" is used. The evaluation will be done before the assertion is evaluated. |
| Control | 0..1 This element is affected by the following invariants: tst-5 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Standard Status | Deprecated (from Normative) |
| 284. TestScript.setup.action.assert.contentType | |
| Definition | The mime-type contents to compare against the request or response message 'Content-Type' header. |
| Short | Mime type to compare against the 'Content-Type' header |
| Comments | If this is specified, then test engine shall confirm that the content-type of the last operation's headers is set to this value. If "assert.sourceId" element is specified, then the evaluation will be done against the headers mapped to that sourceId (and not the last operation's headers). If you'd like to have more control over the string, then use 'assert.headerField' instead. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Binding | The codes SHALL be taken from SupplementedMimeTypes (required to http://hl7.org/fhir/ValueSet/supplemented-mimetypes)The mime type of an attachment. Any valid mime type is allowed (BCP 13; RFCs 2045, 2046, 2047, 4288, 4289 and 2049), and also |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Example | General: application/fhir+xml |
| 286. TestScript.setup.action.assert.defaultManualCompletion | |
| Definition | The default manual completion outcome applied to this assertion. |
| Short | fail | pass | skip | stop |
| Comments | Manual completion is used to pause the test engine execution and evaluation allowing an external review of the defined assert condition. The defaultManualCompletion defines the default manual completion outcome applied if one of the enumerated values is not applied. |
| Control | 0..1 |
| Binding | The codes SHALL be taken from AssertionManualCompletionType (required to http://hl7.org/fhir/ValueSet/assert-manual-completion-codes)The default type of manual completion to use for assertion. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Meaning if Missing | If defaultManualCompletion is not specified, then the default manual completion outcome will be 'skip'. |
| 288. TestScript.setup.action.assert.expression | |
| Definition | The expression to be evaluated against the request or response message contents - HTTP headers and payload. |
| Short | The expression to be evaluated |
| Comments | If both "expression" and a "fixtureId" are specified, then the expression will be evaluated against the request or response body mapped to the fixtureId. If "expression" is specified and a "fixtureId" is not, then the expression will be evaluated against the response body of the last operation. Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions. The expression can be evaluated as either a path to a specific value or as a boolean expression against the given sourceId. When the expression evaluates to a boolean, the assert.value element is not used. See Testing FHIR Use Expressions. A test engine is expected to minimally support the expression languages: text/fhirpath, application/xml and application/json. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | Expression |
| 290. TestScript.setup.action.assert.headerField | |
| Definition | The HTTP header field name e.g. 'Location'. |
| Short | HTTP header field name |
| Comments | If "headerField" is specified then "value" must be specified. If "sourceId" is not specified, then "headerField" will be evaluated against the last operation's response headers. Test engines are to keep track of the last operation's response body and response headers. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 292. TestScript.setup.action.assert.minimumId | |
| Definition | The ID of a fixture. Asserts that the response contains at a minimum the fixture specified by minimumId. |
| Short | Fixture Id of minimum content resource |
| Comments | Asserts that the response contains all the element/content in another fixture pointed to by minimumId. This can be a statically defined fixture or one that is dynamically set via responseId. See Testing FHIR Use minimumId for a more complete description of the test engine's comparison logic. |
| Control | 0..1 This element is affected by the following invariants: tst-7, tst-8 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 294. TestScript.setup.action.assert.navigationLinks | |
| Definition | Whether or not the test execution performs validation on the bundle navigation links. |
| Short | Perform validation on navigation links? |
| Comments | Asserts that the Bundle contains first, last, and next links. |
| Control | 0..1 This element is affected by the following invariants: tst-7, tst-8 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 296. TestScript.setup.action.assert.operator | |
| Definition | The operator type defines the conditional behavior of the assert. |
| Short | equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval | manualEval |
| Comments | Operators are useful for both positive and negative testing. If operator is not specified, then the default conditional behavior is implemented as defined in Testing FHIR Assertions. |
| Control | 0..1 This element is affected by the following invariants: tst-8 |
| Binding | The codes SHALL be taken from AssertionOperatorType (required to http://hl7.org/fhir/ValueSet/assert-operator-codes)The type of operator to use for assertions. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Meaning if Missing | If operator is not specified, then the default conditional behavior is implemented as defined in the Testing FHIR page Assertions table - see Comments. |
| 298. TestScript.setup.action.assert.path | |
| Definition | The XPath or JSONPath expression to be evaluated against the fixture representing the response received from server. |
| Short | XPath or JSONPath expression |
| Comments | If both "path" and a "fixtureId" are specified, then the path will be evaluated against the request or response body mapped to the fixtureId. If "path" is specified and a "fixtureId" is not, then the path will be evaluated against the response body of the last operation. Test engines are to store the request and response body and headers of the last operation at all times for subsequent assertions. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| Standard Status | Deprecated (from Normative) |
| 300. TestScript.setup.action.assert.requestMethod | |
| Definition | The request method or HTTP operation code to compare against that used by the client system under test. |
| Short | delete | get | options | patch | post | put | head |
| Comments | If "requestMethod" is specified then it will be used in place of "value". The "requestMethod" will evaluate against the last operation's request HTTP operation. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Binding | The codes SHALL be taken from TestScriptRequestMethodCode (required to http://hl7.org/fhir/ValueSet/http-operations)The allowable request method or HTTP operation codes. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 302. TestScript.setup.action.assert.requestURL | |
| Definition | The value to use in a comparison against the request URL path string. |
| Short | Request URL comparison value |
| Comments | If "requestURL" is specified then it will be used in place of "value". The "requestURL" will evaluate against the last operation's full request URL path string. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 304. TestScript.setup.action.assert.resource | |
| Definition | The type of the resource. See the resource list. |
| Short | Resource type |
| Comments | This will be expected resource type in response body e.g. in read, vread, search, etc. See the Resource List for complete list of resource types; e.g. <assert > <resourceType value="Patient" </assert>. |
| Control | 0..1 This element is affected by the following invariants: tst-7 |
| Binding | Unless not suitable, these codes SHALL be taken from ConcreteFHIRTypes (extensible to http://hl7.org/fhir/ValueSet/concrete-fhir-types)A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types. |
| Type | uri |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 306. TestScript.setup.action.assert.response | |
| Definition | continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported. |
| Short | continue | switchingProtocols | okay | created | accepted | nonAuthoritativeInformation | noContent | resetContent | partialContent | multipleChoices | movedPermanently | found | seeOther | notModified | useProxy | temporaryRedirect | permanentRedirect | badRequest | unauthorized | paymentRequired | forbidden | notFound | methodNotAllowed | notAcceptable | proxyAuthenticationRequired | requestTimeout | conflict | gone | lengthRequired | preconditionFailed | contentTooLarge | uriTooLong | unsupportedMediaType | rangeNotSatisfiable | expectationFailed | misdirectedRequest | unprocessableContent | upgradeRequired | internalServerError | notImplemented | badGateway | serviceUnavailable | gatewayTimeout | httpVersionNotSupported |
| Comments | This is a shorter way of achieving similar verifications via "assert.responseCode". If you need more control, then use "assert.responseCode" e.g. <assert> <contentType value="json" /> <response value="okay"/> </assert>. |
| Control | 0..1 This element is affected by the following invariants: tst-6, tst-7 |
| Binding | The codes SHALL be taken from AssertionResponseTypes (required to http://hl7.org/fhir/ValueSet/assert-response-code-types)The response code to expect in the response. |
| Type | code |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 308. TestScript.setup.action.assert.responseCode | |
| Definition | The value of the HTTP response code to be tested. |
| Short | HTTP response code to test |
| Comments | To be used with "operator" attribute value. Asserts that the response code equals this value if "operator" is not specified. If the operator is "in" or "notIn" then the responseCode would be a comma-separated list of values e.g. "200,201". Otherwise, it's expected to be a numeric value. If "fixture" is not specified, then the "responseBodyId" value of the last operation is assumed. |
| Control | 0..1 This element is affected by the following invariants: tst-6, tst-7 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 310. TestScript.setup.action.assert.sourceId | |
| Definition | Fixture to evaluate the XPath/JSONPath expression or the headerField against. |
| Short | Fixture Id of source expression or headerField |
| Comments | This can be a statically defined fixture (at the top of the testscript) or a dynamically set fixture created by responseId of the action.operation element. |
| Control | 0..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 312. TestScript.setup.action.assert.stopTestOnFail | |
| Definition | Whether or not the current test execution will stop on failure for this assert. |
| Short | If this assert fails, will the current test execution stop? |
| Comments | If this element is specified and it is true, then assertion failures should not stop the current test execution from proceeding. |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 314. TestScript.setup.action.assert.validateProfileId | |
| Definition | The ID of the Profile to validate against. |
| Short | Profile Id of validation profile reference |
| Comments | The ID of a Profile fixture. Asserts that the response is valid according to the Profile specified by validateProfileId. |
| Control | 0..1 This element is affected by the following invariants: tst-7, tst-8 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 316. TestScript.setup.action.assert.value | |
| Definition | The value to compare to. |
| Short | The value to compare to |
| Comments | The string-representation of a number, string, or boolean that is expected. Test engines do have to look for placeholders (${}) and replace the variable placeholders with the variable values at runtime before comparing this value to the actual value. |
| Control | 0..1 This element is affected by the following invariants: tst-8 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 318. TestScript.setup.action.assert.warningOnly | |
| Definition | Whether or not the test execution will produce a warning only on error for this assert. |
| Short | Will this assert produce a warning only on error? |
| Comments | If this element is specified and it is true, then assertion failures can be logged by test engine but should not stop the test script execution from proceeding. There are likely cases where the spec is not clear on what should happen. If the spec says something is optional (maybe a response header for example), but a server doesn’t do it, we could choose to issue a warning. |
| Control | 1..1 |
| Type | boolean |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 320. TestScript.setup.action.assert.requirement | |
| Definition | Links or references providing traceability to the testing requirements for this assert. |
| Short | Links or references to the testing requirements |
| Comments | TestScript and TestReport instances are typically (and expected to be) based on known, defined test requirements and documentation. These links provide traceability from the executable/executed TestScript and TestReport tests to these requirements. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 322. TestScript.setup.action.assert.requirement.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 324. TestScript.setup.action.assert.requirement.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.setup.action.assert.requirement.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 326. TestScript.setup.action.assert.requirement.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 328. TestScript.setup.action.assert.requirement.reference | |
| Definition | Canonical reference providing traceability to the testing requirement for this assert. |
| Short | Canonical reference to the Requirements instance |
| Control | 1..1 |
| Type | canonical(Requirements) |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 330. TestScript.setup.action.assert.requirement.key | |
| Definition | Requirements.statement.key that identifies the statement that this assert satisfies. |
| Short | Requirements statement key identifier |
| Control | 1..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 332. TestScript.test | |
| Definition | A test in this script. |
| Short | A test in this script |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 334. TestScript.test.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 336. TestScript.test.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.test.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 338. TestScript.test.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 340. TestScript.test.name | |
| Definition | The name of this test used for tracking/logging purposes by test engines. |
| Short | Tracking/logging name of this test |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 342. TestScript.test.description | |
| Definition | A short description of the test used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting short description of the test |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 344. TestScript.test.action | |
| Definition | Action would contain either an operation or an assertion. |
| Short | A test operation or assert to perform |
| Comments | An action should contain either an operation or an assertion but not both. It can contain any number of variables. |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | tst-9: Test action SHALL contain only one of either a common or an operation or an assert. (common.exists() xor operation.exists() xor assert.exists())ele-1: All FHIR elements must have a @value or children or both ( hasValue() or (children().count() > id.count())) |
| 346. TestScript.test.action.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 348. TestScript.test.action.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.test.action.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 350. TestScript.test.action.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 352. TestScript.test.action.common | |
| Definition | Links or references to common collection(s) of actions in this or an external TestScript instance. |
| Short | Links or references to common collection(s) of actions |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.common |
| 354. TestScript.test.action.operation | |
| Definition | An operation would involve a REST request to a server. |
| Short | The setup operation to perform |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation |
| Invariants | tst-10: Test operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))) |
| 356. TestScript.test.action.assert | |
| Definition | Evaluates the results of previous operations to determine if the server under test behaves appropriately. |
| Short | The setup assertion to perform |
| Comments | In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine. |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.assert |
| Invariants | tst-11: Test action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. (compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists()))tst-12: Test action assert response and response and responseCode SHALL be empty when direction equals request ( (response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response')tst-13: A test action assert SHALL define a singular assertion function and prevent overlapping assertion functionality. ( extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + requestURL.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <= 1))tst-14: A test action assert SHALL not allow the use of operator and value with minimumId, navigationLinks or validateProfileId. ( extension.exists() or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 0) or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 1 and operator.count() + value.count() = 0)) |
| 358. TestScript.teardown | |
| Definition | A series of operations required to clean up after all the tests are executed (successfully or otherwise). |
| Short | A series of required clean up steps |
| Control | 0..1 |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 360. TestScript.teardown.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 362. TestScript.teardown.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.teardown.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 364. TestScript.teardown.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 366. TestScript.teardown.action | |
| Definition | The teardown action will only contain an operation. |
| Short | One or more teardown operations to perform |
| Comments | An action should contain either an operation or an assertion but not both. It can contain any number of variables. |
| Control | 1..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 368. TestScript.teardown.action.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 370. TestScript.teardown.action.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.teardown.action.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 372. TestScript.teardown.action.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 374. TestScript.teardown.action.common | |
| Definition | Links or references to common collection(s) of actions in this or an external TestScript instance. Action asserts SHALL be ignored for the TestScript.teardown. |
| Short | Links or references to common collection(s) of actions |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.common |
| 376. TestScript.teardown.action.operation | |
| Definition | An operation would involve a REST request to a server. |
| Short | The teardown operation to perform |
| Control | 1..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation |
| Invariants | tst-15: Teardown operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))) |
| 378. TestScript.common | |
| Definition | A common collection of actions that can be re-used in a TestScript. |
| Short | A common collection of actions in this script |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 380. TestScript.common.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 382. TestScript.common.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.common.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 384. TestScript.common.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 386. TestScript.common.key | |
| Definition | Key that identifies this common collection of actions (unique within this resource). |
| Short | Key that identifies this common collection of actions |
| Control | 1..1 |
| Type | id |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 388. TestScript.common.name | |
| Definition | The name of this this common collection of actions used for tracking/logging purposes by test engines. |
| Short | Tracking/logging name of this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 390. TestScript.common.description | |
| Definition | A short description of this common collection of actions used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting short description of this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 392. TestScript.common.parameter | |
| Definition | Optional named parameter(s) to provide input values to this common collection of actions from this or an external TestScript. |
| Short | Parameter(s) to convey input values to this common collection of actions in this script |
| Control | 0..* |
| Type | BackboneElement |
| Invariants | ele-1: All FHIR elements must have a @value or children or both (hasValue() or (children().count() > id.count())) |
| 394. TestScript.common.parameter.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 396. TestScript.common.parameter.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.common.parameter.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 398. TestScript.common.parameter.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 400. TestScript.common.parameter.name | |
| Definition | The name of this parameter that will referenced in this common collection of actions using the TestScript variable nomenclature '${name}. |
| Short | Tracking/logging name of this parameter to be used in this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 402. TestScript.common.parameter.description | |
| Definition | An optional short description of this parameter to be used this common collection of actions used by test engines for tracking and reporting purposes. |
| Short | Tracking/reporting short description of this parameter to be used this common collection of actions |
| Control | 0..1 |
| Type | string |
| Primitive Value | This primitive element may be present, or absent, or replaced by an extension |
| 404. TestScript.common.action | |
| Definition | An action will contain either an operation or an assertion but not both. |
| Short | A common operation or assert that can be re-used in this script |
| Control | 1..* |
| Type | BackboneElement |
| Invariants | tst-16: Common action SHALL contain either an operation or assert but not both. (operation.exists() xor assert.exists())ele-1: All FHIR elements must have a @value or children or both ( hasValue() or (children().count() > id.count())) |
| 406. TestScript.common.action.id | |
| Definition | Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. |
| Short | Unique id for inter-element referencing |
| Control | 0..1 This element is affected by the following invariants: ele-1 |
| Type | id |
| Is Modifier | false |
| XML Format | In the XML format, this property is represented as an attribute. |
| Summary | false |
| 408. TestScript.common.action.extension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element. 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. |
| Short | Additional content defined by implementations |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | false |
| Summary | false |
| Alternate Names | extensions, user content |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| Slicing | This element introduces a set of slices on TestScript.common.action.extension. The slices areUnordered and Open, and can be differentiated using the following discriminators: |
| 410. TestScript.common.action.modifierExtension | |
| Definition | May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained 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 can 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). |
| Short | Extensions that cannot be ignored even if unrecognized |
| Comments | 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. |
| Control | 0..* |
| Type | Extension |
| Is Modifier | true because Modifier extensions are expected to modify the meaning or interpretation of the element that contains them |
| Summary | true |
| Requirements | 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. |
| Alternate Names | extensions, user content, modifiers |
| Invariants | ele-1: All FHIR elements must have a @value or children (hasValue() or (children().count() > id.count())) |
| 412. TestScript.common.action.operation | |
| Definition | An operation would involve a REST request to a server. |
| Short | The common operation that can be re-used in this script |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.operation |
| Invariants | tst-17: Common operation SHALL contain either sourceId or targetId or params or url. (sourceId.exists() or (targetId.count() + url.count() + params.count() = 1) or (type.code in ('capabilities' | 'search' | 'transaction' | 'history'))) |
| 414. TestScript.common.action.assert | |
| Definition | Evaluates the results of previous operations to determine if the server under test behaves appropriately. |
| Short | The common assertion to perform |
| Comments | In order to evaluate an assertion, the request, response, and results of the most recently executed operation must always be maintained by the test engine. |
| Control | 0..1 |
| Type | Seettp://hl7.org/fhir/StructureDefinition/TestScript#TestScript.setup.action.assert |
| Invariants | tst-18: Common action assert SHALL contain either compareToSourceId and compareToSourceExpression, compareToSourceId and compareToSourcePath or neither. (compareToSourceId.empty() xor (compareToSourceExpression.exists() or compareToSourcePath.exists()))tst-19: Common action assert response and response and responseCode SHALL be empty when direction equals request ( (response.empty() and responseCode.empty() and direction = 'request') or direction.empty() or direction = 'response')tst-20: A common action assert SHALL define a singular assertion function and prevent overlapping assertion functionality. ( extension.exists() or (contentType.count() + expression.count() + headerField.count() + minimumId.count() + navigationLinks.count() + path.count() + requestMethod.count() + requestURL.count() + resource.count() + responseCode.count() + response.count() + validateProfileId.count() <= 1))tst-21: A common action assert SHALL not allow the use of operator and value with minimumId, navigationLinks or validateProfileId. ( extension.exists() or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 0) or (minimumId.count() + navigationLinks.count() + validateProfileId.count() = 1 and operator.count() + value.count() = 0)) |