Touchstone FHIR Testing
2.0.0 - current International flag

Touchstone FHIR Testing v2.0.0. This is the current published version. For a full list of available versions, see the Directory of published versions

Resource Profile: AEGIS Touchstone Testing TestScript Profile

Official URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript Version: 2.0.0
Active as of 2023-06-29 Computable Name: AEGISTouchstoneTestingTestScriptProfile

Defines constraints and extensions on the TestScript resource for use in the Touchstone Testing Platform.

Scope and Usage

This profile defines the optional TestScript extensions supporting the Touchstone Rules Engine.

Example Usage Scenarios

The following are example usage scenarios for the TS Testing TestScript profile:

  • Simple Groovy Script rule execution from a single assert.
  • Complex Groovy Script rule exectuion from a single assert.

Mandatory Data Elements and Terminology

There are no additional constraints or terminology bindings to the TestScript resource based on this profile.

Examples

Usage:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from TestScript

NameFlagsCard.TypeDescription & Constraintsdoco
.. TestScript 0..*TestScriptTouchstone Testing TestScript Profile
... testscript-dynamic-fixture S0..*(Complex)Dynamic fixture used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture
... testscript-rule S0..*(Complex)Assert rule used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule
... testscript-ruleset S0..*(Complex)Assert ruleset used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-ruleset
... origin 0..*BackboneElementAn abstract server representing a client or sender in a message exchange
.... profile 1..1CodingFHIR-Client | FHIR-SDC-FormFiller | CDSH-Client | HL7V2-Client | HL7V3-Client
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Origin Types ValueSet (extensible): The type of origin profile the test system supports.

... destination 0..*BackboneElementAn abstract server representing a destination or receiver in a message exchange
.... profile 1..1CodingFHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor | CDSH-Server | HL7V2-Server | HL7V3-Server
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Destination Types ValueSet (extensible): The type of destination profile the test system supports.

... variable
.... testscript-variable-paramField S0..1stringFixture firstUsage used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-variable-paramField
... setup
.... testscript-test-manualCompletion S0..1codeOverride the default behavior of the TestScript.test execution
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-test-manualCompletion
Binding: AEGIS Touchstone Testing TestScript Test Manual Completion Codes ValueSet (extensible)
.... action
..... operation C0..1BackboneElementThe setup operation to perform
ttt-0: HL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
ttt-1: HL7 V3 setup operation SHALL NOT contain resource or targetId.
...... id 0..1stringUnique id for inter-element referencing
...... testscript-operation-authorizeInNewTab S0..1booleanAuthorize in new tab for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-authorizeInNewTab
...... testscript-operation-oauth2AuthzRedirectId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRedirectId
...... testscript-operation-oauth2AuthzRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRequestId
...... testscript-operation-pagesNext S0..1positiveIntThe maximum number of search pages to auto retrieve and process. Only valid when used with the 'history' or 'search' operation code values.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-pagesNext
...... testscript-operation-protocol S0..1codeThe testscript-operation-protocol extension defines the message protocol to be used in sending or evaluating the sent operation request.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-protocol
Binding: AEGIS Touchstone Testing TestScript Operation Protocol Codes ValueSet (extensible)
...... testscript-operation-smartLaunchRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-smartLaunchRequestId
...... type 0..1CodingThe operation code type that will be executed
Binding: AEGIS Touchstone Testing TestScript TestScript Operation Codes ValueSet (extensible): The allowable operation code types.

..... assert
...... testscript-assert-rule S0..1(Complex)Rule used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule
...... testscript-assert-ruleset S0..1(Complex)Ruleset used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-ruleset
...... testscript-assert-stopTestOnFail S0..1booleanStop Test On Error boolean used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail
...... testscript-assert-variable S0..1stringComparison value used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-variable
... test
.... action
..... operation C0..1The setup operation to perform
ttt-2: HL7 V2 test operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
ttt-3: HL7 V3 test operation SHALL NOT contain resource or targetId.

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
TestScript.origin.profileextensibleAEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet
TestScript.destination.profileextensibleAEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet
TestScript.setup.action.operation.typeextensibleAEGISTouchstoneTestingTestScriptOperationCodesValueSet

Constraints

IdGradePath(s)DetailsRequirements
ttt-0errorTestScript.setup.action.operationHL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
: type.code.empty() or type.code != 'hl7v2' or (resource.count() + accept.count() + contentType.count() + method.count() + params.count() + requestHeader.field.count() + requestHeader.value.count() + targetId.count() = 0)
ttt-1errorTestScript.setup.action.operationHL7 V3 setup operation SHALL NOT contain resource or targetId.
: type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0)
ttt-2errorTestScript.test.action.operationHL7 V2 test operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
: type.code.empty() or type.code != 'hl7v2' or (resource.count() + accept.count() + contentType.count() + method.count() + params.count() + requestHeader.field.count() + requestHeader.value.count() + targetId.count() = 0)
ttt-3errorTestScript.test.action.operationHL7 V3 test operation SHALL NOT contain resource or targetId.
: type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0)
NameFlagsCard.TypeDescription & Constraintsdoco
.. TestScript C0..*TestScriptTouchstone Testing TestScript Profile
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... testscript-dynamic-fixture S0..*(Complex)Dynamic fixture used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture
... testscript-rule S0..*(Complex)Assert rule used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule
... testscript-ruleset S0..*(Complex)Assert ruleset used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-ruleset
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url Σ1..1uriCanonical identifier for this test script, represented as a URI (globally unique)
... name ΣC1..1stringName for this test script (computer friendly)
... status ?!Σ1..1codedraft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.

... origin 0..*BackboneElementAn abstract server representing a client or sender in a message exchange
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... index 1..1integerThe index of the abstract origin server starting at 1
.... profile 1..1CodingFHIR-Client | FHIR-SDC-FormFiller | CDSH-Client | HL7V2-Client | HL7V3-Client
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Origin Types ValueSet (extensible): The type of origin profile the test system supports.

... destination 0..*BackboneElementAn abstract server representing a destination or receiver in a message exchange
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... index 1..1integerThe index of the abstract destination server starting at 1
.... profile 1..1CodingFHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor | CDSH-Server | HL7V2-Server | HL7V3-Server
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Destination Types ValueSet (extensible): The type of destination profile the test system supports.

... variable C0..*BackboneElementPlaceholder for evaluated elements
.... testscript-variable-paramField S0..1stringFixture firstUsage used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-variable-paramField
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... name 1..1stringDescriptive name for this variable
... setup 0..1BackboneElementA series of required setup operations before tests are executed
.... testscript-test-manualCompletion S0..1codeOverride the default behavior of the TestScript.test execution
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-test-manualCompletion
Binding: AEGIS Touchstone Testing TestScript Test Manual Completion Codes ValueSet (extensible)
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... action C1..*BackboneElementA setup operation or assert to perform
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... operation C0..1BackboneElementThe setup operation to perform
ttt-0: HL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
ttt-1: HL7 V3 setup operation SHALL NOT contain resource or targetId.
...... id 0..1stringUnique id for inter-element referencing
...... testscript-operation-authorizeInNewTab S0..1booleanAuthorize in new tab for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-authorizeInNewTab
...... testscript-operation-oauth2AuthzRedirectId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRedirectId
...... testscript-operation-oauth2AuthzRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRequestId
...... testscript-operation-pagesNext S0..1positiveIntThe maximum number of search pages to auto retrieve and process. Only valid when used with the 'history' or 'search' operation code values.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-pagesNext
...... testscript-operation-protocol S0..1codeThe testscript-operation-protocol extension defines the message protocol to be used in sending or evaluating the sent operation request.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-protocol
Binding: AEGIS Touchstone Testing TestScript Operation Protocol Codes ValueSet (extensible)
...... testscript-operation-smartLaunchRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-smartLaunchRequestId
...... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
...... type 0..1CodingThe operation code type that will be executed
Binding: AEGIS Touchstone Testing TestScript TestScript Operation Codes ValueSet (extensible): The allowable operation code types.

...... encodeRequestUrl 1..1booleanWhether or not to send the request url in encoded format
..... assert C0..1BackboneElementThe assertion to perform
...... testscript-assert-rule S0..1(Complex)Rule used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule
...... testscript-assert-ruleset S0..1(Complex)Ruleset used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-ruleset
...... testscript-assert-stopTestOnFail S0..1booleanStop Test On Error boolean used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail
...... testscript-assert-variable S0..1stringComparison value used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-variable
...... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
...... warningOnly 1..1booleanWill this assert produce a warning only on error?

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
TestScript.statusrequiredPublicationStatus
TestScript.origin.profileextensibleAEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet
TestScript.destination.profileextensibleAEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet
TestScript.setup.action.operation.typeextensibleAEGISTouchstoneTestingTestScriptOperationCodesValueSet

Constraints

IdGradePath(s)DetailsRequirements
ttt-0errorTestScript.setup.action.operationHL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
: type.code.empty() or type.code != 'hl7v2' or (resource.count() + accept.count() + contentType.count() + method.count() + params.count() + requestHeader.field.count() + requestHeader.value.count() + targetId.count() = 0)
ttt-1errorTestScript.setup.action.operationHL7 V3 setup operation SHALL NOT contain resource or targetId.
: type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0)
NameFlagsCard.TypeDescription & Constraintsdoco
.. TestScript C0..*TestScriptTouchstone Testing TestScript Profile
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguagesMax Binding
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... testscript-dynamic-fixture S0..*(Complex)Dynamic fixture used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture
... testscript-rule S0..*(Complex)Assert rule used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule
... testscript-ruleset S0..*(Complex)Assert ruleset used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-ruleset
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url Σ1..1uriCanonical identifier for this test script, represented as a URI (globally unique)
... identifier Σ0..1IdentifierAdditional identifier for the test script
... version Σ0..1stringBusiness version of the test script
... name ΣC1..1stringName for this test script (computer friendly)
... title Σ0..1stringName for this test script (human friendly)
... status ?!Σ1..1codedraft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.

... experimental Σ0..1booleanFor testing purposes, not real usage
... date Σ0..1dateTimeDate last changed
... publisher Σ0..1stringName of the publisher (organization or individual)
... contact Σ0..*ContactDetailContact details for the publisher
... description 0..1markdownNatural language description of the test script
... useContext Σ0..*UsageContextThe context that the content is intended to support
... jurisdiction Σ0..*CodeableConceptIntended jurisdiction for test script (if applicable)
Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use.


... purpose 0..1markdownWhy this test script is defined
... copyright 0..1markdownUse and/or publishing restrictions
... origin 0..*BackboneElementAn abstract server representing a client or sender in a message exchange
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... index 1..1integerThe index of the abstract origin server starting at 1
.... profile 1..1CodingFHIR-Client | FHIR-SDC-FormFiller | CDSH-Client | HL7V2-Client | HL7V3-Client
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Origin Types ValueSet (extensible): The type of origin profile the test system supports.

... destination 0..*BackboneElementAn abstract server representing a destination or receiver in a message exchange
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... index 1..1integerThe index of the abstract destination server starting at 1
.... profile 1..1CodingFHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor | CDSH-Server | HL7V2-Server | HL7V3-Server
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Destination Types ValueSet (extensible): The type of destination profile the test system supports.

... metadata C0..1BackboneElementRequired capability that is assumed to function correctly on the FHIR server being tested
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... link 0..*BackboneElementLinks to the FHIR specification
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... url 1..1uriURL to the specification
..... description 0..1stringShort description
.... capability 1..*BackboneElementCapabilities that are assumed to function correctly on the FHIR server being tested
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... required 1..1booleanAre the capabilities required?
..... validated 1..1booleanAre the capabilities validated?
..... description 0..1stringThe expected capabilities of the server
..... origin 0..*integerWhich origin server these requirements apply to
..... destination 0..1integerWhich server these requirements apply to
..... link 0..*uriLinks to the FHIR specification
..... capabilities 1..1canonical(CapabilityStatement)Required Capability Statement
... fixture 0..*BackboneElementFixture in the test script - by reference (uri)
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... autocreate 1..1booleanWhether or not to implicitly create the fixture during setup
.... autodelete 1..1booleanWhether or not to implicitly delete the fixture during teardown
.... resource 0..1Reference(Resource)Reference of the resource
... profile 0..*Reference(Resource)Reference of the validation profile
... variable C0..*BackboneElementPlaceholder for evaluated elements
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... testscript-variable-paramField S0..1stringFixture firstUsage used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-variable-paramField
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... name 1..1stringDescriptive name for this variable
.... defaultValue 0..1stringDefault, hard-coded, or user-defined value for this variable
.... description 0..1stringNatural language description of the variable
.... expression 0..1stringThe FHIRPath expression against the fixture body
.... headerField 0..1stringHTTP header field name for source
.... hint 0..1stringHint help text for default value to enter
.... path 0..1stringXPath or JSONPath against the fixture body
.... sourceId 0..1idFixture Id of source expression or headerField within this variable
... setup 0..1BackboneElementA series of required setup operations before tests are executed
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... testscript-test-manualCompletion S0..1codeOverride the default behavior of the TestScript.test execution
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-test-manualCompletion
Binding: AEGIS Touchstone Testing TestScript Test Manual Completion Codes ValueSet (extensible)
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... action C1..*BackboneElementA setup operation or assert to perform
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... operation C0..1BackboneElementThe setup operation to perform
ttt-0: HL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
ttt-1: HL7 V3 setup operation SHALL NOT contain resource or targetId.
...... id 0..1stringUnique id for inter-element referencing
...... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
...... testscript-operation-authorizeInNewTab S0..1booleanAuthorize in new tab for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-authorizeInNewTab
...... testscript-operation-oauth2AuthzRedirectId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRedirectId
...... testscript-operation-oauth2AuthzRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRequestId
...... testscript-operation-pagesNext S0..1positiveIntThe maximum number of search pages to auto retrieve and process. Only valid when used with the 'history' or 'search' operation code values.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-pagesNext
...... testscript-operation-protocol S0..1codeThe testscript-operation-protocol extension defines the message protocol to be used in sending or evaluating the sent operation request.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-protocol
Binding: AEGIS Touchstone Testing TestScript Operation Protocol Codes ValueSet (extensible)
...... testscript-operation-smartLaunchRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-smartLaunchRequestId
...... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
...... type 0..1CodingThe operation code type that will be executed
Binding: AEGIS Touchstone Testing TestScript TestScript Operation Codes ValueSet (extensible): The allowable operation code types.

...... resource 0..1codeResource type
Binding: FHIRDefinedType (required): A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types.

...... label 0..1stringTracking/logging operation label
...... description 0..1stringTracking/reporting operation description
...... accept 0..1codeMime type to accept in the payload of the response, with charset etc.
Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed.


Example General: application/fhir+xml
...... contentType 0..1codeMime type of the request payload contents, with charset etc.
Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed.


Example General: application/fhir+xml
...... destination 0..1integerServer responding to the request
...... encodeRequestUrl 1..1booleanWhether or not to send the request url in encoded format
...... method 0..1codedelete | get | options | patch | post | put | head
Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes.

...... origin 0..1integerServer initiating the request
...... params 0..1stringExplicitly defined path parameters
...... requestHeader 0..*BackboneElementEach operation can have one or more header elements
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
....... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
....... field 1..1stringHTTP header field name
....... value 1..1stringHTTP headerfield value
...... requestId 0..1idFixture Id of mapped request
...... responseId 0..1idFixture Id of mapped response
...... sourceId 0..1idFixture Id of body for PUT and POST requests
...... targetId 0..1idId of fixture used for extracting the [id], [type], and [vid] for GET requests
...... url 0..1stringRequest URL
..... assert C0..1BackboneElementThe assertion to perform
...... id 0..1stringUnique id for inter-element referencing
...... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
...... testscript-assert-rule S0..1(Complex)Rule used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule
...... testscript-assert-ruleset S0..1(Complex)Ruleset used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-ruleset
...... testscript-assert-stopTestOnFail S0..1booleanStop Test On Error boolean used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail
...... testscript-assert-variable S0..1stringComparison value used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-variable
...... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
...... label 0..1stringTracking/logging assertion label
...... description 0..1stringTracking/reporting assertion description
...... direction 0..1coderesponse | request
Binding: AssertionDirectionType (required): The type of direction to use for assertion.

...... compareToSourceId 0..1stringId of the source fixture to be evaluated
...... compareToSourceExpression 0..1stringThe FHIRPath expression to evaluate against the source fixture
...... compareToSourcePath 0..1stringXPath or JSONPath expression to evaluate against the source fixture
...... contentType 0..1codeMime type to compare against the 'Content-Type' header
Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed.


Example General: application/fhir+xml
...... expression 0..1stringThe FHIRPath expression to be evaluated
...... headerField 0..1stringHTTP header field name
...... minimumId 0..1stringFixture Id of minimum content resource
...... navigationLinks 0..1booleanPerform validation on navigation links?
...... operator 0..1codeequals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval
Binding: AssertionOperatorType (required): The type of operator to use for assertion.

...... path 0..1stringXPath or JSONPath expression
...... requestMethod 0..1codedelete | get | options | patch | post | put | head
Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes.

...... requestURL 0..1stringRequest URL comparison value
...... resource 0..1codeResource type
Binding: FHIRDefinedType (required): A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types.

...... response 0..1codeokay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable
Binding: AssertionResponseTypes (required): The type of response code to use for assertion.

...... responseCode 0..1stringHTTP response code to test
...... sourceId 0..1idFixture Id of source expression or headerField
...... validateProfileId 0..1idProfile Id of validation profile reference
...... value 0..1stringThe value to compare to
...... warningOnly 1..1booleanWill this assert produce a warning only on error?
... test 0..*BackboneElementA test in this script
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... name 0..1stringTracking/logging name of this test
.... description 0..1stringTracking/reporting short description of the test
.... action C1..*BackboneElementA test operation or assert to perform
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... operation C0..1See operation (TestScript)The setup operation to perform
ttt-2: HL7 V2 test operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
ttt-3: HL7 V3 test operation SHALL NOT contain resource or targetId.
..... assert C0..1See assert (TestScript)The setup assertion to perform
... teardown 0..1BackboneElementA series of required clean up steps
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... action 1..*BackboneElementOne or more teardown operations to perform
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... operation C1..1See operation (TestScript)The teardown operation to perform

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
TestScript.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
TestScript.statusrequiredPublicationStatus
TestScript.jurisdictionextensibleJurisdiction ValueSet
TestScript.origin.profileextensibleAEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet
TestScript.destination.profileextensibleAEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet
TestScript.setup.action.operation.typeextensibleAEGISTouchstoneTestingTestScriptOperationCodesValueSet
TestScript.setup.action.operation.resourcerequiredFHIRDefinedType
TestScript.setup.action.operation.acceptrequiredMime Types (a valid code from urn:ietf:bcp:13)
TestScript.setup.action.operation.contentTyperequiredMime Types (a valid code from urn:ietf:bcp:13)
TestScript.setup.action.operation.methodrequiredTestScriptRequestMethodCode
TestScript.setup.action.assert.directionrequiredAssertionDirectionType
TestScript.setup.action.assert.contentTyperequiredMime Types (a valid code from urn:ietf:bcp:13)
TestScript.setup.action.assert.operatorrequiredAssertionOperatorType
TestScript.setup.action.assert.requestMethodrequiredTestScriptRequestMethodCode
TestScript.setup.action.assert.resourcerequiredFHIRDefinedType
TestScript.setup.action.assert.responserequiredAssertionResponseTypes

Constraints

IdGradePath(s)DetailsRequirements
ttt-0errorTestScript.setup.action.operationHL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
: type.code.empty() or type.code != 'hl7v2' or (resource.count() + accept.count() + contentType.count() + method.count() + params.count() + requestHeader.field.count() + requestHeader.value.count() + targetId.count() = 0)
ttt-1errorTestScript.setup.action.operationHL7 V3 setup operation SHALL NOT contain resource or targetId.
: type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0)
ttt-2errorTestScript.test.action.operationHL7 V2 test operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
: type.code.empty() or type.code != 'hl7v2' or (resource.count() + accept.count() + contentType.count() + method.count() + params.count() + requestHeader.field.count() + requestHeader.value.count() + targetId.count() = 0)
ttt-3errorTestScript.test.action.operationHL7 V3 test operation SHALL NOT contain resource or targetId.
: type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0)

This structure is derived from TestScript

Summary

Mandatory: 0 element (2 nested mandatory elements)
Must-Support: 15 elements

Extensions

This structure refers to these extensions:

Differential View

This structure is derived from TestScript

NameFlagsCard.TypeDescription & Constraintsdoco
.. TestScript 0..*TestScriptTouchstone Testing TestScript Profile
... testscript-dynamic-fixture S0..*(Complex)Dynamic fixture used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture
... testscript-rule S0..*(Complex)Assert rule used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule
... testscript-ruleset S0..*(Complex)Assert ruleset used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-ruleset
... origin 0..*BackboneElementAn abstract server representing a client or sender in a message exchange
.... profile 1..1CodingFHIR-Client | FHIR-SDC-FormFiller | CDSH-Client | HL7V2-Client | HL7V3-Client
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Origin Types ValueSet (extensible): The type of origin profile the test system supports.

... destination 0..*BackboneElementAn abstract server representing a destination or receiver in a message exchange
.... profile 1..1CodingFHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor | CDSH-Server | HL7V2-Server | HL7V3-Server
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Destination Types ValueSet (extensible): The type of destination profile the test system supports.

... variable
.... testscript-variable-paramField S0..1stringFixture firstUsage used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-variable-paramField
... setup
.... testscript-test-manualCompletion S0..1codeOverride the default behavior of the TestScript.test execution
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-test-manualCompletion
Binding: AEGIS Touchstone Testing TestScript Test Manual Completion Codes ValueSet (extensible)
.... action
..... operation C0..1BackboneElementThe setup operation to perform
ttt-0: HL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
ttt-1: HL7 V3 setup operation SHALL NOT contain resource or targetId.
...... id 0..1stringUnique id for inter-element referencing
...... testscript-operation-authorizeInNewTab S0..1booleanAuthorize in new tab for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-authorizeInNewTab
...... testscript-operation-oauth2AuthzRedirectId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRedirectId
...... testscript-operation-oauth2AuthzRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRequestId
...... testscript-operation-pagesNext S0..1positiveIntThe maximum number of search pages to auto retrieve and process. Only valid when used with the 'history' or 'search' operation code values.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-pagesNext
...... testscript-operation-protocol S0..1codeThe testscript-operation-protocol extension defines the message protocol to be used in sending or evaluating the sent operation request.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-protocol
Binding: AEGIS Touchstone Testing TestScript Operation Protocol Codes ValueSet (extensible)
...... testscript-operation-smartLaunchRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-smartLaunchRequestId
...... type 0..1CodingThe operation code type that will be executed
Binding: AEGIS Touchstone Testing TestScript TestScript Operation Codes ValueSet (extensible): The allowable operation code types.

..... assert
...... testscript-assert-rule S0..1(Complex)Rule used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule
...... testscript-assert-ruleset S0..1(Complex)Ruleset used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-ruleset
...... testscript-assert-stopTestOnFail S0..1booleanStop Test On Error boolean used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail
...... testscript-assert-variable S0..1stringComparison value used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-variable
... test
.... action
..... operation C0..1The setup operation to perform
ttt-2: HL7 V2 test operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
ttt-3: HL7 V3 test operation SHALL NOT contain resource or targetId.

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSet
TestScript.origin.profileextensibleAEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet
TestScript.destination.profileextensibleAEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet
TestScript.setup.action.operation.typeextensibleAEGISTouchstoneTestingTestScriptOperationCodesValueSet

Constraints

IdGradePath(s)DetailsRequirements
ttt-0errorTestScript.setup.action.operationHL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
: type.code.empty() or type.code != 'hl7v2' or (resource.count() + accept.count() + contentType.count() + method.count() + params.count() + requestHeader.field.count() + requestHeader.value.count() + targetId.count() = 0)
ttt-1errorTestScript.setup.action.operationHL7 V3 setup operation SHALL NOT contain resource or targetId.
: type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0)
ttt-2errorTestScript.test.action.operationHL7 V2 test operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
: type.code.empty() or type.code != 'hl7v2' or (resource.count() + accept.count() + contentType.count() + method.count() + params.count() + requestHeader.field.count() + requestHeader.value.count() + targetId.count() = 0)
ttt-3errorTestScript.test.action.operationHL7 V3 test operation SHALL NOT contain resource or targetId.
: type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0)

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. TestScript C0..*TestScriptTouchstone Testing TestScript Profile
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... testscript-dynamic-fixture S0..*(Complex)Dynamic fixture used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture
... testscript-rule S0..*(Complex)Assert rule used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule
... testscript-ruleset S0..*(Complex)Assert ruleset used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-ruleset
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url Σ1..1uriCanonical identifier for this test script, represented as a URI (globally unique)
... name ΣC1..1stringName for this test script (computer friendly)
... status ?!Σ1..1codedraft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.

... origin 0..*BackboneElementAn abstract server representing a client or sender in a message exchange
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... index 1..1integerThe index of the abstract origin server starting at 1
.... profile 1..1CodingFHIR-Client | FHIR-SDC-FormFiller | CDSH-Client | HL7V2-Client | HL7V3-Client
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Origin Types ValueSet (extensible): The type of origin profile the test system supports.

... destination 0..*BackboneElementAn abstract server representing a destination or receiver in a message exchange
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... index 1..1integerThe index of the abstract destination server starting at 1
.... profile 1..1CodingFHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor | CDSH-Server | HL7V2-Server | HL7V3-Server
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Destination Types ValueSet (extensible): The type of destination profile the test system supports.

... variable C0..*BackboneElementPlaceholder for evaluated elements
.... testscript-variable-paramField S0..1stringFixture firstUsage used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-variable-paramField
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... name 1..1stringDescriptive name for this variable
... setup 0..1BackboneElementA series of required setup operations before tests are executed
.... testscript-test-manualCompletion S0..1codeOverride the default behavior of the TestScript.test execution
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-test-manualCompletion
Binding: AEGIS Touchstone Testing TestScript Test Manual Completion Codes ValueSet (extensible)
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... action C1..*BackboneElementA setup operation or assert to perform
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... operation C0..1BackboneElementThe setup operation to perform
ttt-0: HL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
ttt-1: HL7 V3 setup operation SHALL NOT contain resource or targetId.
...... id 0..1stringUnique id for inter-element referencing
...... testscript-operation-authorizeInNewTab S0..1booleanAuthorize in new tab for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-authorizeInNewTab
...... testscript-operation-oauth2AuthzRedirectId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRedirectId
...... testscript-operation-oauth2AuthzRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRequestId
...... testscript-operation-pagesNext S0..1positiveIntThe maximum number of search pages to auto retrieve and process. Only valid when used with the 'history' or 'search' operation code values.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-pagesNext
...... testscript-operation-protocol S0..1codeThe testscript-operation-protocol extension defines the message protocol to be used in sending or evaluating the sent operation request.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-protocol
Binding: AEGIS Touchstone Testing TestScript Operation Protocol Codes ValueSet (extensible)
...... testscript-operation-smartLaunchRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-smartLaunchRequestId
...... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
...... type 0..1CodingThe operation code type that will be executed
Binding: AEGIS Touchstone Testing TestScript TestScript Operation Codes ValueSet (extensible): The allowable operation code types.

...... encodeRequestUrl 1..1booleanWhether or not to send the request url in encoded format
..... assert C0..1BackboneElementThe assertion to perform
...... testscript-assert-rule S0..1(Complex)Rule used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule
...... testscript-assert-ruleset S0..1(Complex)Ruleset used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-ruleset
...... testscript-assert-stopTestOnFail S0..1booleanStop Test On Error boolean used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail
...... testscript-assert-variable S0..1stringComparison value used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-variable
...... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
...... warningOnly 1..1booleanWill this assert produce a warning only on error?

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
TestScript.statusrequiredPublicationStatus
TestScript.origin.profileextensibleAEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet
TestScript.destination.profileextensibleAEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet
TestScript.setup.action.operation.typeextensibleAEGISTouchstoneTestingTestScriptOperationCodesValueSet

Constraints

IdGradePath(s)DetailsRequirements
ttt-0errorTestScript.setup.action.operationHL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
: type.code.empty() or type.code != 'hl7v2' or (resource.count() + accept.count() + contentType.count() + method.count() + params.count() + requestHeader.field.count() + requestHeader.value.count() + targetId.count() = 0)
ttt-1errorTestScript.setup.action.operationHL7 V3 setup operation SHALL NOT contain resource or targetId.
: type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0)

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. TestScript C0..*TestScriptTouchstone Testing TestScript Profile
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... language 0..1codeLanguage of the resource content
Binding: CommonLanguages (preferred): A human language.

Additional BindingsPurpose
AllLanguagesMax Binding
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... testscript-dynamic-fixture S0..*(Complex)Dynamic fixture used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture
... testscript-rule S0..*(Complex)Assert rule used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule
... testscript-ruleset S0..*(Complex)Assert ruleset used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-ruleset
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... url Σ1..1uriCanonical identifier for this test script, represented as a URI (globally unique)
... identifier Σ0..1IdentifierAdditional identifier for the test script
... version Σ0..1stringBusiness version of the test script
... name ΣC1..1stringName for this test script (computer friendly)
... title Σ0..1stringName for this test script (human friendly)
... status ?!Σ1..1codedraft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.

... experimental Σ0..1booleanFor testing purposes, not real usage
... date Σ0..1dateTimeDate last changed
... publisher Σ0..1stringName of the publisher (organization or individual)
... contact Σ0..*ContactDetailContact details for the publisher
... description 0..1markdownNatural language description of the test script
... useContext Σ0..*UsageContextThe context that the content is intended to support
... jurisdiction Σ0..*CodeableConceptIntended jurisdiction for test script (if applicable)
Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use.


... purpose 0..1markdownWhy this test script is defined
... copyright 0..1markdownUse and/or publishing restrictions
... origin 0..*BackboneElementAn abstract server representing a client or sender in a message exchange
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... index 1..1integerThe index of the abstract origin server starting at 1
.... profile 1..1CodingFHIR-Client | FHIR-SDC-FormFiller | CDSH-Client | HL7V2-Client | HL7V3-Client
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Origin Types ValueSet (extensible): The type of origin profile the test system supports.

... destination 0..*BackboneElementAn abstract server representing a destination or receiver in a message exchange
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... index 1..1integerThe index of the abstract destination server starting at 1
.... profile 1..1CodingFHIR-Server | FHIR-SDC-FormManager | FHIR-SDC-FormReceiver | FHIR-SDC-FormProcessor | CDSH-Server | HL7V2-Server | HL7V3-Server
Binding: AEGIS Touchstone Testing TestScript TestScript Profile Destination Types ValueSet (extensible): The type of destination profile the test system supports.

... metadata C0..1BackboneElementRequired capability that is assumed to function correctly on the FHIR server being tested
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... link 0..*BackboneElementLinks to the FHIR specification
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... url 1..1uriURL to the specification
..... description 0..1stringShort description
.... capability 1..*BackboneElementCapabilities that are assumed to function correctly on the FHIR server being tested
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... required 1..1booleanAre the capabilities required?
..... validated 1..1booleanAre the capabilities validated?
..... description 0..1stringThe expected capabilities of the server
..... origin 0..*integerWhich origin server these requirements apply to
..... destination 0..1integerWhich server these requirements apply to
..... link 0..*uriLinks to the FHIR specification
..... capabilities 1..1canonical(CapabilityStatement)Required Capability Statement
... fixture 0..*BackboneElementFixture in the test script - by reference (uri)
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... autocreate 1..1booleanWhether or not to implicitly create the fixture during setup
.... autodelete 1..1booleanWhether or not to implicitly delete the fixture during teardown
.... resource 0..1Reference(Resource)Reference of the resource
... profile 0..*Reference(Resource)Reference of the validation profile
... variable C0..*BackboneElementPlaceholder for evaluated elements
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... testscript-variable-paramField S0..1stringFixture firstUsage used within the test script
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-variable-paramField
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... name 1..1stringDescriptive name for this variable
.... defaultValue 0..1stringDefault, hard-coded, or user-defined value for this variable
.... description 0..1stringNatural language description of the variable
.... expression 0..1stringThe FHIRPath expression against the fixture body
.... headerField 0..1stringHTTP header field name for source
.... hint 0..1stringHint help text for default value to enter
.... path 0..1stringXPath or JSONPath against the fixture body
.... sourceId 0..1idFixture Id of source expression or headerField within this variable
... setup 0..1BackboneElementA series of required setup operations before tests are executed
.... id 0..1stringUnique id for inter-element referencing
.... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
.... testscript-test-manualCompletion S0..1codeOverride the default behavior of the TestScript.test execution
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-test-manualCompletion
Binding: AEGIS Touchstone Testing TestScript Test Manual Completion Codes ValueSet (extensible)
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... action C1..*BackboneElementA setup operation or assert to perform
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... operation C0..1BackboneElementThe setup operation to perform
ttt-0: HL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
ttt-1: HL7 V3 setup operation SHALL NOT contain resource or targetId.
...... id 0..1stringUnique id for inter-element referencing
...... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
...... testscript-operation-authorizeInNewTab S0..1booleanAuthorize in new tab for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-authorizeInNewTab
...... testscript-operation-oauth2AuthzRedirectId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRedirectId
...... testscript-operation-oauth2AuthzRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRequestId
...... testscript-operation-pagesNext S0..1positiveIntThe maximum number of search pages to auto retrieve and process. Only valid when used with the 'history' or 'search' operation code values.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-pagesNext
...... testscript-operation-protocol S0..1codeThe testscript-operation-protocol extension defines the message protocol to be used in sending or evaluating the sent operation request.
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-protocol
Binding: AEGIS Touchstone Testing TestScript Operation Protocol Codes ValueSet (extensible)
...... testscript-operation-smartLaunchRequestId S0..1idRequest id for specific oauth2-authorize operation
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-smartLaunchRequestId
...... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
...... type 0..1CodingThe operation code type that will be executed
Binding: AEGIS Touchstone Testing TestScript TestScript Operation Codes ValueSet (extensible): The allowable operation code types.

...... resource 0..1codeResource type
Binding: FHIRDefinedType (required): A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types.

...... label 0..1stringTracking/logging operation label
...... description 0..1stringTracking/reporting operation description
...... accept 0..1codeMime type to accept in the payload of the response, with charset etc.
Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed.


Example General: application/fhir+xml
...... contentType 0..1codeMime type of the request payload contents, with charset etc.
Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed.


Example General: application/fhir+xml
...... destination 0..1integerServer responding to the request
...... encodeRequestUrl 1..1booleanWhether or not to send the request url in encoded format
...... method 0..1codedelete | get | options | patch | post | put | head
Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes.

...... origin 0..1integerServer initiating the request
...... params 0..1stringExplicitly defined path parameters
...... requestHeader 0..*BackboneElementEach operation can have one or more header elements
....... id 0..1stringUnique id for inter-element referencing
....... extension 0..*ExtensionAdditional content defined by implementations
....... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
....... field 1..1stringHTTP header field name
....... value 1..1stringHTTP headerfield value
...... requestId 0..1idFixture Id of mapped request
...... responseId 0..1idFixture Id of mapped response
...... sourceId 0..1idFixture Id of body for PUT and POST requests
...... targetId 0..1idId of fixture used for extracting the [id], [type], and [vid] for GET requests
...... url 0..1stringRequest URL
..... assert C0..1BackboneElementThe assertion to perform
...... id 0..1stringUnique id for inter-element referencing
...... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
...... testscript-assert-rule S0..1(Complex)Rule used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule
...... testscript-assert-ruleset S0..1(Complex)Ruleset used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-ruleset
...... testscript-assert-stopTestOnFail S0..1booleanStop Test On Error boolean used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-stopTestOnFail
...... testscript-assert-variable S0..1stringComparison value used within the test script assert
URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-variable
...... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
...... label 0..1stringTracking/logging assertion label
...... description 0..1stringTracking/reporting assertion description
...... direction 0..1coderesponse | request
Binding: AssertionDirectionType (required): The type of direction to use for assertion.

...... compareToSourceId 0..1stringId of the source fixture to be evaluated
...... compareToSourceExpression 0..1stringThe FHIRPath expression to evaluate against the source fixture
...... compareToSourcePath 0..1stringXPath or JSONPath expression to evaluate against the source fixture
...... contentType 0..1codeMime type to compare against the 'Content-Type' header
Binding: Mime Types (required): The mime type of an attachment. Any valid mime type is allowed.


Example General: application/fhir+xml
...... expression 0..1stringThe FHIRPath expression to be evaluated
...... headerField 0..1stringHTTP header field name
...... minimumId 0..1stringFixture Id of minimum content resource
...... navigationLinks 0..1booleanPerform validation on navigation links?
...... operator 0..1codeequals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval
Binding: AssertionOperatorType (required): The type of operator to use for assertion.

...... path 0..1stringXPath or JSONPath expression
...... requestMethod 0..1codedelete | get | options | patch | post | put | head
Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes.

...... requestURL 0..1stringRequest URL comparison value
...... resource 0..1codeResource type
Binding: FHIRDefinedType (required): A list of all the concrete types defined in this version of the FHIR specification - Data Types and Resource Types.

...... response 0..1codeokay | created | noContent | notModified | bad | forbidden | notFound | methodNotAllowed | conflict | gone | preconditionFailed | unprocessable
Binding: AssertionResponseTypes (required): The type of response code to use for assertion.

...... responseCode 0..1stringHTTP response code to test
...... sourceId 0..1idFixture Id of source expression or headerField
...... validateProfileId 0..1idProfile Id of validation profile reference
...... value 0..1stringThe value to compare to
...... warningOnly 1..1booleanWill this assert produce a warning only on error?
... test 0..*BackboneElementA test in this script
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... name 0..1stringTracking/logging name of this test
.... description 0..1stringTracking/reporting short description of the test
.... action C1..*BackboneElementA test operation or assert to perform
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... operation C0..1See operation (TestScript)The setup operation to perform
ttt-2: HL7 V2 test operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
ttt-3: HL7 V3 test operation SHALL NOT contain resource or targetId.
..... assert C0..1See assert (TestScript)The setup assertion to perform
... teardown 0..1BackboneElementA series of required clean up steps
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... action 1..*BackboneElementOne or more teardown operations to perform
..... id 0..1stringUnique id for inter-element referencing
..... extension 0..*ExtensionAdditional content defined by implementations
..... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
..... operation C1..1See operation (TestScript)The teardown operation to perform

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
TestScript.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
TestScript.statusrequiredPublicationStatus
TestScript.jurisdictionextensibleJurisdiction ValueSet
TestScript.origin.profileextensibleAEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet
TestScript.destination.profileextensibleAEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet
TestScript.setup.action.operation.typeextensibleAEGISTouchstoneTestingTestScriptOperationCodesValueSet
TestScript.setup.action.operation.resourcerequiredFHIRDefinedType
TestScript.setup.action.operation.acceptrequiredMime Types (a valid code from urn:ietf:bcp:13)
TestScript.setup.action.operation.contentTyperequiredMime Types (a valid code from urn:ietf:bcp:13)
TestScript.setup.action.operation.methodrequiredTestScriptRequestMethodCode
TestScript.setup.action.assert.directionrequiredAssertionDirectionType
TestScript.setup.action.assert.contentTyperequiredMime Types (a valid code from urn:ietf:bcp:13)
TestScript.setup.action.assert.operatorrequiredAssertionOperatorType
TestScript.setup.action.assert.requestMethodrequiredTestScriptRequestMethodCode
TestScript.setup.action.assert.resourcerequiredFHIRDefinedType
TestScript.setup.action.assert.responserequiredAssertionResponseTypes

Constraints

IdGradePath(s)DetailsRequirements
ttt-0errorTestScript.setup.action.operationHL7 V2 setup operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
: type.code.empty() or type.code != 'hl7v2' or (resource.count() + accept.count() + contentType.count() + method.count() + params.count() + requestHeader.field.count() + requestHeader.value.count() + targetId.count() = 0)
ttt-1errorTestScript.setup.action.operationHL7 V3 setup operation SHALL NOT contain resource or targetId.
: type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0)
ttt-2errorTestScript.test.action.operationHL7 V2 test operation SHALL NOT contain resource or accept or contentType or method or params or requestHeader or targetId.
: type.code.empty() or type.code != 'hl7v2' or (resource.count() + accept.count() + contentType.count() + method.count() + params.count() + requestHeader.field.count() + requestHeader.value.count() + targetId.count() = 0)
ttt-3errorTestScript.test.action.operationHL7 V3 test operation SHALL NOT contain resource or targetId.
: type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0)

This structure is derived from TestScript

Summary

Mandatory: 0 element (2 nested mandatory elements)
Must-Support: 15 elements

Extensions

This structure refers to these extensions:

 

Other representations of profile: CSV, Excel, Schematron