Touchstone FHIR Testing
2.0.0 - current
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
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.
This profile defines the optional TestScript extensions supporting the Touchstone Rules Engine.
The following are example usage scenarios for the TS Testing TestScript profile:
There are no additional constraints or terminology bindings to the TestScript resource based on this profile.
Usage:
Description of Profiles, Differentials, Snapshots and how the different presentations work.
This structure is derived from TestScript
Path | Conformance | ValueSet |
TestScript.origin.profile | extensible | AEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet |
TestScript.destination.profile | extensible | AEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet |
TestScript.setup.action.operation.type | extensible | AEGISTouchstoneTestingTestScriptOperationCodesValueSet |
Id | Grade | Path(s) | Details | Requirements |
ttt-0 | error | TestScript.setup.action.operation | HL7 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-1 | error | TestScript.setup.action.operation | HL7 V3 setup operation SHALL NOT contain resource or targetId. : type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0) | |
ttt-2 | error | TestScript.test.action.operation | HL7 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-3 | error | TestScript.test.action.operation | HL7 V3 test operation SHALL NOT contain resource or targetId. : type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0) |
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
TestScript | C | 0..* | TestScript | Touchstone Testing TestScript Profile |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
testscript-dynamic-fixture | S | 0..* | (Complex) | Dynamic fixture used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture |
testscript-rule | S | 0..* | (Complex) | Assert rule used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule |
testscript-ruleset | S | 0..* | (Complex) | Assert ruleset used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-ruleset |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
url | Σ | 1..1 | uri | Canonical identifier for this test script, represented as a URI (globally unique) |
name | ΣC | 1..1 | string | Name for this test script (computer friendly) |
status | ?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. |
origin | 0..* | BackboneElement | An abstract server representing a client or sender in a message exchange | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
index | 1..1 | integer | The index of the abstract origin server starting at 1 | |
profile | 1..1 | Coding | FHIR-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..* | BackboneElement | An abstract server representing a destination or receiver in a message exchange | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
index | 1..1 | integer | The index of the abstract destination server starting at 1 | |
profile | 1..1 | Coding | FHIR-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 | C | 0..* | BackboneElement | Placeholder for evaluated elements |
testscript-variable-paramField | S | 0..1 | string | Fixture firstUsage used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-variable-paramField |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
name | 1..1 | string | Descriptive name for this variable | |
setup | 0..1 | BackboneElement | A series of required setup operations before tests are executed | |
testscript-test-manualCompletion | S | 0..1 | code | Override 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..* | Extension | Extensions that cannot be ignored even if unrecognized |
action | C | 1..* | BackboneElement | A setup operation or assert to perform |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
operation | C | 0..1 | BackboneElement | The 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..1 | string | Unique id for inter-element referencing | |
testscript-operation-authorizeInNewTab | S | 0..1 | boolean | Authorize in new tab for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-authorizeInNewTab |
testscript-operation-oauth2AuthzRedirectId | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRedirectId |
testscript-operation-oauth2AuthzRequestId | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRequestId |
testscript-operation-pagesNext | S | 0..1 | positiveInt | The 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 | S | 0..1 | code | The 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 | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-smartLaunchRequestId |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
type | 0..1 | Coding | The operation code type that will be executed Binding: AEGIS Touchstone Testing TestScript TestScript Operation Codes ValueSet (extensible): The allowable operation code types. | |
encodeRequestUrl | 1..1 | boolean | Whether or not to send the request url in encoded format | |
assert | C | 0..1 | BackboneElement | The assertion to perform |
testscript-assert-rule | S | 0..1 | (Complex) | Rule used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule |
testscript-assert-ruleset | S | 0..1 | (Complex) | Ruleset used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-ruleset |
testscript-assert-stopTestOnFail | S | 0..1 | boolean | Stop 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 | S | 0..1 | string | Comparison value used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-variable |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
warningOnly | 1..1 | boolean | Will this assert produce a warning only on error? | |
Documentation for this format |
Path | Conformance | ValueSet |
TestScript.status | required | PublicationStatus |
TestScript.origin.profile | extensible | AEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet |
TestScript.destination.profile | extensible | AEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet |
TestScript.setup.action.operation.type | extensible | AEGISTouchstoneTestingTestScriptOperationCodesValueSet |
Id | Grade | Path(s) | Details | Requirements |
ttt-0 | error | TestScript.setup.action.operation | HL7 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-1 | error | TestScript.setup.action.operation | HL7 V3 setup operation SHALL NOT contain resource or targetId. : type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0) |
Name | Flags | Card. | Type | Description & Constraints | ||||
---|---|---|---|---|---|---|---|---|
TestScript | C | 0..* | TestScript | Touchstone Testing TestScript Profile | ||||
id | Σ | 0..1 | id | Logical id of this artifact | ||||
meta | Σ | 0..1 | Meta | Metadata about the resource | ||||
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
language | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
text | 0..1 | Narrative | Text summary of the resource, for human interpretation | |||||
contained | 0..* | Resource | Contained, inline Resources | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
testscript-dynamic-fixture | S | 0..* | (Complex) | Dynamic fixture used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture | ||||
testscript-rule | S | 0..* | (Complex) | Assert rule used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule | ||||
testscript-ruleset | S | 0..* | (Complex) | Assert ruleset used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-ruleset | ||||
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | ||||
url | Σ | 1..1 | uri | Canonical identifier for this test script, represented as a URI (globally unique) | ||||
identifier | Σ | 0..1 | Identifier | Additional identifier for the test script | ||||
version | Σ | 0..1 | string | Business version of the test script | ||||
name | ΣC | 1..1 | string | Name for this test script (computer friendly) | ||||
title | Σ | 0..1 | string | Name for this test script (human friendly) | ||||
status | ?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | ||||
experimental | Σ | 0..1 | boolean | For testing purposes, not real usage | ||||
date | Σ | 0..1 | dateTime | Date last changed | ||||
publisher | Σ | 0..1 | string | Name of the publisher (organization or individual) | ||||
contact | Σ | 0..* | ContactDetail | Contact details for the publisher | ||||
description | 0..1 | markdown | Natural language description of the test script | |||||
useContext | Σ | 0..* | UsageContext | The context that the content is intended to support | ||||
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for test script (if applicable) Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use. | ||||
purpose | 0..1 | markdown | Why this test script is defined | |||||
copyright | 0..1 | markdown | Use and/or publishing restrictions | |||||
origin | 0..* | BackboneElement | An abstract server representing a client or sender in a message exchange | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
index | 1..1 | integer | The index of the abstract origin server starting at 1 | |||||
profile | 1..1 | Coding | FHIR-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..* | BackboneElement | An abstract server representing a destination or receiver in a message exchange | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
index | 1..1 | integer | The index of the abstract destination server starting at 1 | |||||
profile | 1..1 | Coding | FHIR-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 | C | 0..1 | BackboneElement | Required capability that is assumed to function correctly on the FHIR server being tested | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
link | 0..* | BackboneElement | Links to the FHIR specification | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
url | 1..1 | uri | URL to the specification | |||||
description | 0..1 | string | Short description | |||||
capability | 1..* | BackboneElement | Capabilities that are assumed to function correctly on the FHIR server being tested | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
required | 1..1 | boolean | Are the capabilities required? | |||||
validated | 1..1 | boolean | Are the capabilities validated? | |||||
description | 0..1 | string | The expected capabilities of the server | |||||
origin | 0..* | integer | Which origin server these requirements apply to | |||||
destination | 0..1 | integer | Which server these requirements apply to | |||||
link | 0..* | uri | Links to the FHIR specification | |||||
capabilities | 1..1 | canonical(CapabilityStatement) | Required Capability Statement | |||||
fixture | 0..* | BackboneElement | Fixture in the test script - by reference (uri) | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
autocreate | 1..1 | boolean | Whether or not to implicitly create the fixture during setup | |||||
autodelete | 1..1 | boolean | Whether or not to implicitly delete the fixture during teardown | |||||
resource | 0..1 | Reference(Resource) | Reference of the resource | |||||
profile | 0..* | Reference(Resource) | Reference of the validation profile | |||||
variable | C | 0..* | BackboneElement | Placeholder for evaluated elements | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
testscript-variable-paramField | S | 0..1 | string | Fixture firstUsage used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-variable-paramField | ||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
name | 1..1 | string | Descriptive name for this variable | |||||
defaultValue | 0..1 | string | Default, hard-coded, or user-defined value for this variable | |||||
description | 0..1 | string | Natural language description of the variable | |||||
expression | 0..1 | string | The FHIRPath expression against the fixture body | |||||
headerField | 0..1 | string | HTTP header field name for source | |||||
hint | 0..1 | string | Hint help text for default value to enter | |||||
path | 0..1 | string | XPath or JSONPath against the fixture body | |||||
sourceId | 0..1 | id | Fixture Id of source expression or headerField within this variable | |||||
setup | 0..1 | BackboneElement | A series of required setup operations before tests are executed | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
testscript-test-manualCompletion | S | 0..1 | code | Override 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..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
action | C | 1..* | BackboneElement | A setup operation or assert to perform | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
operation | C | 0..1 | BackboneElement | The 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..1 | string | Unique id for inter-element referencing | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
testscript-operation-authorizeInNewTab | S | 0..1 | boolean | Authorize in new tab for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-authorizeInNewTab | ||||
testscript-operation-oauth2AuthzRedirectId | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRedirectId | ||||
testscript-operation-oauth2AuthzRequestId | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRequestId | ||||
testscript-operation-pagesNext | S | 0..1 | positiveInt | The 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 | S | 0..1 | code | The 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 | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-smartLaunchRequestId | ||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
type | 0..1 | Coding | The operation code type that will be executed Binding: AEGIS Touchstone Testing TestScript TestScript Operation Codes ValueSet (extensible): The allowable operation code types. | |||||
resource | 0..1 | code | Resource 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..1 | string | Tracking/logging operation label | |||||
description | 0..1 | string | Tracking/reporting operation description | |||||
accept | 0..1 | code | Mime 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..1 | code | Mime 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..1 | integer | Server responding to the request | |||||
encodeRequestUrl | 1..1 | boolean | Whether or not to send the request url in encoded format | |||||
method | 0..1 | code | delete | get | options | patch | post | put | head Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |||||
origin | 0..1 | integer | Server initiating the request | |||||
params | 0..1 | string | Explicitly defined path parameters | |||||
requestHeader | 0..* | BackboneElement | Each operation can have one or more header elements | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
field | 1..1 | string | HTTP header field name | |||||
value | 1..1 | string | HTTP headerfield value | |||||
requestId | 0..1 | id | Fixture Id of mapped request | |||||
responseId | 0..1 | id | Fixture Id of mapped response | |||||
sourceId | 0..1 | id | Fixture Id of body for PUT and POST requests | |||||
targetId | 0..1 | id | Id of fixture used for extracting the [id], [type], and [vid] for GET requests | |||||
url | 0..1 | string | Request URL | |||||
assert | C | 0..1 | BackboneElement | The assertion to perform | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
testscript-assert-rule | S | 0..1 | (Complex) | Rule used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule | ||||
testscript-assert-ruleset | S | 0..1 | (Complex) | Ruleset used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-ruleset | ||||
testscript-assert-stopTestOnFail | S | 0..1 | boolean | Stop 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 | S | 0..1 | string | Comparison value used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-variable | ||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
label | 0..1 | string | Tracking/logging assertion label | |||||
description | 0..1 | string | Tracking/reporting assertion description | |||||
direction | 0..1 | code | response | request Binding: AssertionDirectionType (required): The type of direction to use for assertion. | |||||
compareToSourceId | 0..1 | string | Id of the source fixture to be evaluated | |||||
compareToSourceExpression | 0..1 | string | The FHIRPath expression to evaluate against the source fixture | |||||
compareToSourcePath | 0..1 | string | XPath or JSONPath expression to evaluate against the source fixture | |||||
contentType | 0..1 | code | Mime 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..1 | string | The FHIRPath expression to be evaluated | |||||
headerField | 0..1 | string | HTTP header field name | |||||
minimumId | 0..1 | string | Fixture Id of minimum content resource | |||||
navigationLinks | 0..1 | boolean | Perform validation on navigation links? | |||||
operator | 0..1 | code | equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval Binding: AssertionOperatorType (required): The type of operator to use for assertion. | |||||
path | 0..1 | string | XPath or JSONPath expression | |||||
requestMethod | 0..1 | code | delete | get | options | patch | post | put | head Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |||||
requestURL | 0..1 | string | Request URL comparison value | |||||
resource | 0..1 | code | Resource 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..1 | code | okay | 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..1 | string | HTTP response code to test | |||||
sourceId | 0..1 | id | Fixture Id of source expression or headerField | |||||
validateProfileId | 0..1 | id | Profile Id of validation profile reference | |||||
value | 0..1 | string | The value to compare to | |||||
warningOnly | 1..1 | boolean | Will this assert produce a warning only on error? | |||||
test | 0..* | BackboneElement | A test in this script | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
name | 0..1 | string | Tracking/logging name of this test | |||||
description | 0..1 | string | Tracking/reporting short description of the test | |||||
action | C | 1..* | BackboneElement | A test operation or assert to perform | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
operation | C | 0..1 | See 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 | C | 0..1 | See assert (TestScript) | The setup assertion to perform | ||||
teardown | 0..1 | BackboneElement | A series of required clean up steps | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
action | 1..* | BackboneElement | One or more teardown operations to perform | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
operation | C | 1..1 | See operation (TestScript) | The teardown operation to perform | ||||
Documentation for this format |
Path | Conformance | ValueSet | ||||
TestScript.language | preferred | CommonLanguages
| ||||
TestScript.status | required | PublicationStatus | ||||
TestScript.jurisdiction | extensible | Jurisdiction ValueSet | ||||
TestScript.origin.profile | extensible | AEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet | ||||
TestScript.destination.profile | extensible | AEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet | ||||
TestScript.setup.action.operation.type | extensible | AEGISTouchstoneTestingTestScriptOperationCodesValueSet | ||||
TestScript.setup.action.operation.resource | required | FHIRDefinedType | ||||
TestScript.setup.action.operation.accept | required | Mime Types (a valid code from urn:ietf:bcp:13 ) | ||||
TestScript.setup.action.operation.contentType | required | Mime Types (a valid code from urn:ietf:bcp:13 ) | ||||
TestScript.setup.action.operation.method | required | TestScriptRequestMethodCode | ||||
TestScript.setup.action.assert.direction | required | AssertionDirectionType | ||||
TestScript.setup.action.assert.contentType | required | Mime Types (a valid code from urn:ietf:bcp:13 ) | ||||
TestScript.setup.action.assert.operator | required | AssertionOperatorType | ||||
TestScript.setup.action.assert.requestMethod | required | TestScriptRequestMethodCode | ||||
TestScript.setup.action.assert.resource | required | FHIRDefinedType | ||||
TestScript.setup.action.assert.response | required | AssertionResponseTypes |
Id | Grade | Path(s) | Details | Requirements |
ttt-0 | error | TestScript.setup.action.operation | HL7 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-1 | error | TestScript.setup.action.operation | HL7 V3 setup operation SHALL NOT contain resource or targetId. : type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0) | |
ttt-2 | error | TestScript.test.action.operation | HL7 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-3 | error | TestScript.test.action.operation | HL7 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
Path | Conformance | ValueSet |
TestScript.origin.profile | extensible | AEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet |
TestScript.destination.profile | extensible | AEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet |
TestScript.setup.action.operation.type | extensible | AEGISTouchstoneTestingTestScriptOperationCodesValueSet |
Id | Grade | Path(s) | Details | Requirements |
ttt-0 | error | TestScript.setup.action.operation | HL7 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-1 | error | TestScript.setup.action.operation | HL7 V3 setup operation SHALL NOT contain resource or targetId. : type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0) | |
ttt-2 | error | TestScript.test.action.operation | HL7 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-3 | error | TestScript.test.action.operation | HL7 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
Name | Flags | Card. | Type | Description & Constraints |
---|---|---|---|---|
TestScript | C | 0..* | TestScript | Touchstone Testing TestScript Profile |
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created |
testscript-dynamic-fixture | S | 0..* | (Complex) | Dynamic fixture used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture |
testscript-rule | S | 0..* | (Complex) | Assert rule used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule |
testscript-ruleset | S | 0..* | (Complex) | Assert ruleset used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-ruleset |
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored |
url | Σ | 1..1 | uri | Canonical identifier for this test script, represented as a URI (globally unique) |
name | ΣC | 1..1 | string | Name for this test script (computer friendly) |
status | ?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. |
origin | 0..* | BackboneElement | An abstract server representing a client or sender in a message exchange | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
index | 1..1 | integer | The index of the abstract origin server starting at 1 | |
profile | 1..1 | Coding | FHIR-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..* | BackboneElement | An abstract server representing a destination or receiver in a message exchange | |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
index | 1..1 | integer | The index of the abstract destination server starting at 1 | |
profile | 1..1 | Coding | FHIR-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 | C | 0..* | BackboneElement | Placeholder for evaluated elements |
testscript-variable-paramField | S | 0..1 | string | Fixture firstUsage used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-variable-paramField |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
name | 1..1 | string | Descriptive name for this variable | |
setup | 0..1 | BackboneElement | A series of required setup operations before tests are executed | |
testscript-test-manualCompletion | S | 0..1 | code | Override 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..* | Extension | Extensions that cannot be ignored even if unrecognized |
action | C | 1..* | BackboneElement | A setup operation or assert to perform |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
operation | C | 0..1 | BackboneElement | The 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..1 | string | Unique id for inter-element referencing | |
testscript-operation-authorizeInNewTab | S | 0..1 | boolean | Authorize in new tab for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-authorizeInNewTab |
testscript-operation-oauth2AuthzRedirectId | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRedirectId |
testscript-operation-oauth2AuthzRequestId | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRequestId |
testscript-operation-pagesNext | S | 0..1 | positiveInt | The 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 | S | 0..1 | code | The 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 | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-smartLaunchRequestId |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
type | 0..1 | Coding | The operation code type that will be executed Binding: AEGIS Touchstone Testing TestScript TestScript Operation Codes ValueSet (extensible): The allowable operation code types. | |
encodeRequestUrl | 1..1 | boolean | Whether or not to send the request url in encoded format | |
assert | C | 0..1 | BackboneElement | The assertion to perform |
testscript-assert-rule | S | 0..1 | (Complex) | Rule used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule |
testscript-assert-ruleset | S | 0..1 | (Complex) | Ruleset used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-ruleset |
testscript-assert-stopTestOnFail | S | 0..1 | boolean | Stop 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 | S | 0..1 | string | Comparison value used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-variable |
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized |
warningOnly | 1..1 | boolean | Will this assert produce a warning only on error? | |
Documentation for this format |
Path | Conformance | ValueSet |
TestScript.status | required | PublicationStatus |
TestScript.origin.profile | extensible | AEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet |
TestScript.destination.profile | extensible | AEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet |
TestScript.setup.action.operation.type | extensible | AEGISTouchstoneTestingTestScriptOperationCodesValueSet |
Id | Grade | Path(s) | Details | Requirements |
ttt-0 | error | TestScript.setup.action.operation | HL7 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-1 | error | TestScript.setup.action.operation | HL7 V3 setup operation SHALL NOT contain resource or targetId. : type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0) |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints | ||||
---|---|---|---|---|---|---|---|---|
TestScript | C | 0..* | TestScript | Touchstone Testing TestScript Profile | ||||
id | Σ | 0..1 | id | Logical id of this artifact | ||||
meta | Σ | 0..1 | Meta | Metadata about the resource | ||||
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
language | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
text | 0..1 | Narrative | Text summary of the resource, for human interpretation | |||||
contained | 0..* | Resource | Contained, inline Resources | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
testscript-dynamic-fixture | S | 0..* | (Complex) | Dynamic fixture used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-dynamic-fixture | ||||
testscript-rule | S | 0..* | (Complex) | Assert rule used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-rule | ||||
testscript-ruleset | S | 0..* | (Complex) | Assert ruleset used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-ruleset | ||||
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored | ||||
url | Σ | 1..1 | uri | Canonical identifier for this test script, represented as a URI (globally unique) | ||||
identifier | Σ | 0..1 | Identifier | Additional identifier for the test script | ||||
version | Σ | 0..1 | string | Business version of the test script | ||||
name | ΣC | 1..1 | string | Name for this test script (computer friendly) | ||||
title | Σ | 0..1 | string | Name for this test script (human friendly) | ||||
status | ?!Σ | 1..1 | code | draft | active | retired | unknown Binding: PublicationStatus (required): The lifecycle status of an artifact. | ||||
experimental | Σ | 0..1 | boolean | For testing purposes, not real usage | ||||
date | Σ | 0..1 | dateTime | Date last changed | ||||
publisher | Σ | 0..1 | string | Name of the publisher (organization or individual) | ||||
contact | Σ | 0..* | ContactDetail | Contact details for the publisher | ||||
description | 0..1 | markdown | Natural language description of the test script | |||||
useContext | Σ | 0..* | UsageContext | The context that the content is intended to support | ||||
jurisdiction | Σ | 0..* | CodeableConcept | Intended jurisdiction for test script (if applicable) Binding: Jurisdiction ValueSet (extensible): Countries and regions within which this artifact is targeted for use. | ||||
purpose | 0..1 | markdown | Why this test script is defined | |||||
copyright | 0..1 | markdown | Use and/or publishing restrictions | |||||
origin | 0..* | BackboneElement | An abstract server representing a client or sender in a message exchange | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
index | 1..1 | integer | The index of the abstract origin server starting at 1 | |||||
profile | 1..1 | Coding | FHIR-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..* | BackboneElement | An abstract server representing a destination or receiver in a message exchange | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
index | 1..1 | integer | The index of the abstract destination server starting at 1 | |||||
profile | 1..1 | Coding | FHIR-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 | C | 0..1 | BackboneElement | Required capability that is assumed to function correctly on the FHIR server being tested | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
link | 0..* | BackboneElement | Links to the FHIR specification | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
url | 1..1 | uri | URL to the specification | |||||
description | 0..1 | string | Short description | |||||
capability | 1..* | BackboneElement | Capabilities that are assumed to function correctly on the FHIR server being tested | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
required | 1..1 | boolean | Are the capabilities required? | |||||
validated | 1..1 | boolean | Are the capabilities validated? | |||||
description | 0..1 | string | The expected capabilities of the server | |||||
origin | 0..* | integer | Which origin server these requirements apply to | |||||
destination | 0..1 | integer | Which server these requirements apply to | |||||
link | 0..* | uri | Links to the FHIR specification | |||||
capabilities | 1..1 | canonical(CapabilityStatement) | Required Capability Statement | |||||
fixture | 0..* | BackboneElement | Fixture in the test script - by reference (uri) | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
autocreate | 1..1 | boolean | Whether or not to implicitly create the fixture during setup | |||||
autodelete | 1..1 | boolean | Whether or not to implicitly delete the fixture during teardown | |||||
resource | 0..1 | Reference(Resource) | Reference of the resource | |||||
profile | 0..* | Reference(Resource) | Reference of the validation profile | |||||
variable | C | 0..* | BackboneElement | Placeholder for evaluated elements | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
testscript-variable-paramField | S | 0..1 | string | Fixture firstUsage used within the test script URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-variable-paramField | ||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
name | 1..1 | string | Descriptive name for this variable | |||||
defaultValue | 0..1 | string | Default, hard-coded, or user-defined value for this variable | |||||
description | 0..1 | string | Natural language description of the variable | |||||
expression | 0..1 | string | The FHIRPath expression against the fixture body | |||||
headerField | 0..1 | string | HTTP header field name for source | |||||
hint | 0..1 | string | Hint help text for default value to enter | |||||
path | 0..1 | string | XPath or JSONPath against the fixture body | |||||
sourceId | 0..1 | id | Fixture Id of source expression or headerField within this variable | |||||
setup | 0..1 | BackboneElement | A series of required setup operations before tests are executed | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
testscript-test-manualCompletion | S | 0..1 | code | Override 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..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
action | C | 1..* | BackboneElement | A setup operation or assert to perform | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
operation | C | 0..1 | BackboneElement | The 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..1 | string | Unique id for inter-element referencing | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
testscript-operation-authorizeInNewTab | S | 0..1 | boolean | Authorize in new tab for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-authorizeInNewTab | ||||
testscript-operation-oauth2AuthzRedirectId | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRedirectId | ||||
testscript-operation-oauth2AuthzRequestId | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-oauth2AuthzRequestId | ||||
testscript-operation-pagesNext | S | 0..1 | positiveInt | The 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 | S | 0..1 | code | The 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 | S | 0..1 | id | Request id for specific oauth2-authorize operation URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-operation-smartLaunchRequestId | ||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
type | 0..1 | Coding | The operation code type that will be executed Binding: AEGIS Touchstone Testing TestScript TestScript Operation Codes ValueSet (extensible): The allowable operation code types. | |||||
resource | 0..1 | code | Resource 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..1 | string | Tracking/logging operation label | |||||
description | 0..1 | string | Tracking/reporting operation description | |||||
accept | 0..1 | code | Mime 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..1 | code | Mime 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..1 | integer | Server responding to the request | |||||
encodeRequestUrl | 1..1 | boolean | Whether or not to send the request url in encoded format | |||||
method | 0..1 | code | delete | get | options | patch | post | put | head Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |||||
origin | 0..1 | integer | Server initiating the request | |||||
params | 0..1 | string | Explicitly defined path parameters | |||||
requestHeader | 0..* | BackboneElement | Each operation can have one or more header elements | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
field | 1..1 | string | HTTP header field name | |||||
value | 1..1 | string | HTTP headerfield value | |||||
requestId | 0..1 | id | Fixture Id of mapped request | |||||
responseId | 0..1 | id | Fixture Id of mapped response | |||||
sourceId | 0..1 | id | Fixture Id of body for PUT and POST requests | |||||
targetId | 0..1 | id | Id of fixture used for extracting the [id], [type], and [vid] for GET requests | |||||
url | 0..1 | string | Request URL | |||||
assert | C | 0..1 | BackboneElement | The assertion to perform | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
Slices for extension | 0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
testscript-assert-rule | S | 0..1 | (Complex) | Rule used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-rule | ||||
testscript-assert-ruleset | S | 0..1 | (Complex) | Ruleset used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-ruleset | ||||
testscript-assert-stopTestOnFail | S | 0..1 | boolean | Stop 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 | S | 0..1 | string | Comparison value used within the test script assert URL: http://touchstone.aegis.net/touchstone/fhir/testing/StructureDefinition/testscript-assert-variable | ||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
label | 0..1 | string | Tracking/logging assertion label | |||||
description | 0..1 | string | Tracking/reporting assertion description | |||||
direction | 0..1 | code | response | request Binding: AssertionDirectionType (required): The type of direction to use for assertion. | |||||
compareToSourceId | 0..1 | string | Id of the source fixture to be evaluated | |||||
compareToSourceExpression | 0..1 | string | The FHIRPath expression to evaluate against the source fixture | |||||
compareToSourcePath | 0..1 | string | XPath or JSONPath expression to evaluate against the source fixture | |||||
contentType | 0..1 | code | Mime 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..1 | string | The FHIRPath expression to be evaluated | |||||
headerField | 0..1 | string | HTTP header field name | |||||
minimumId | 0..1 | string | Fixture Id of minimum content resource | |||||
navigationLinks | 0..1 | boolean | Perform validation on navigation links? | |||||
operator | 0..1 | code | equals | notEquals | in | notIn | greaterThan | lessThan | empty | notEmpty | contains | notContains | eval Binding: AssertionOperatorType (required): The type of operator to use for assertion. | |||||
path | 0..1 | string | XPath or JSONPath expression | |||||
requestMethod | 0..1 | code | delete | get | options | patch | post | put | head Binding: TestScriptRequestMethodCode (required): The allowable request method or HTTP operation codes. | |||||
requestURL | 0..1 | string | Request URL comparison value | |||||
resource | 0..1 | code | Resource 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..1 | code | okay | 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..1 | string | HTTP response code to test | |||||
sourceId | 0..1 | id | Fixture Id of source expression or headerField | |||||
validateProfileId | 0..1 | id | Profile Id of validation profile reference | |||||
value | 0..1 | string | The value to compare to | |||||
warningOnly | 1..1 | boolean | Will this assert produce a warning only on error? | |||||
test | 0..* | BackboneElement | A test in this script | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
name | 0..1 | string | Tracking/logging name of this test | |||||
description | 0..1 | string | Tracking/reporting short description of the test | |||||
action | C | 1..* | BackboneElement | A test operation or assert to perform | ||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
operation | C | 0..1 | See 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 | C | 0..1 | See assert (TestScript) | The setup assertion to perform | ||||
teardown | 0..1 | BackboneElement | A series of required clean up steps | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
action | 1..* | BackboneElement | One or more teardown operations to perform | |||||
id | 0..1 | string | Unique id for inter-element referencing | |||||
extension | 0..* | Extension | Additional content defined by implementations | |||||
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized | ||||
operation | C | 1..1 | See operation (TestScript) | The teardown operation to perform | ||||
Documentation for this format |
Path | Conformance | ValueSet | ||||
TestScript.language | preferred | CommonLanguages
| ||||
TestScript.status | required | PublicationStatus | ||||
TestScript.jurisdiction | extensible | Jurisdiction ValueSet | ||||
TestScript.origin.profile | extensible | AEGISTouchstoneTestingTestScriptProfileOriginTypesValueSet | ||||
TestScript.destination.profile | extensible | AEGISTouchstoneTestingTestScriptProfileDestinationTypesValueSet | ||||
TestScript.setup.action.operation.type | extensible | AEGISTouchstoneTestingTestScriptOperationCodesValueSet | ||||
TestScript.setup.action.operation.resource | required | FHIRDefinedType | ||||
TestScript.setup.action.operation.accept | required | Mime Types (a valid code from urn:ietf:bcp:13 ) | ||||
TestScript.setup.action.operation.contentType | required | Mime Types (a valid code from urn:ietf:bcp:13 ) | ||||
TestScript.setup.action.operation.method | required | TestScriptRequestMethodCode | ||||
TestScript.setup.action.assert.direction | required | AssertionDirectionType | ||||
TestScript.setup.action.assert.contentType | required | Mime Types (a valid code from urn:ietf:bcp:13 ) | ||||
TestScript.setup.action.assert.operator | required | AssertionOperatorType | ||||
TestScript.setup.action.assert.requestMethod | required | TestScriptRequestMethodCode | ||||
TestScript.setup.action.assert.resource | required | FHIRDefinedType | ||||
TestScript.setup.action.assert.response | required | AssertionResponseTypes |
Id | Grade | Path(s) | Details | Requirements |
ttt-0 | error | TestScript.setup.action.operation | HL7 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-1 | error | TestScript.setup.action.operation | HL7 V3 setup operation SHALL NOT contain resource or targetId. : type.code.empty() or type.code != 'hl7v3' or (resource.count() + targetId.count() = 0) | |
ttt-2 | error | TestScript.test.action.operation | HL7 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-3 | error | TestScript.test.action.operation | HL7 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