0.0.1 - ci-build
TestScriptEngineIG - Local Development build (v0.0.1). See the Directory of published versions
Official URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/assert-subtest-each | Version: 0.0.1 | |||
Active as of 2022-12-29 | Computable Name: AssertSubtestEach |
Execute a TestScript instance as a subtest for each of a set of inputs.
Context of Use
This extension may be used on the following element(s):
This complex extension is used within a TestScript assert action. It tells the engine to determine whether the assertion passed based on the execution of a specified TestScript for each of a set of inputs. The assert must also include a value in the expression
element indicating a FHIRPath expression that will drive how many executions of the subtest will occur. For each entry in the result collection, which must be a string value, the specified TestScript will be executed with the entry value bound to a specified variable in the invoked TestScript. A boolean flag in the extension, allMustPass
, tells the engine whether all iterations of the subtest execution must succeed in order for the assertion to pass, or just one. The extension also optionally includes variable bindings, tying the value of additional specific variables in the TestScript making the invocation to variables in the target TestScript. Once execution of all iterations of the invoked TestScript completes, TestReport instances are generated for each iteration, each with an extension flagging that it was a subtest and another extension indicating whether it needed to pass based on the allMustPass
value, and the engine continues with execution of the invoking TestScript.
Usage info
Usage:
Description of Profiles, Differentials, Snapshots, and how the XML and JSON presentations work.
This structure is derived from Extension
This structure is derived from Extension
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() | 0..* | Extension | Extension | |
![]() ![]() ![]() | 2..* | Extension | Extension | |
![]() ![]() ![]() | 1..1 | Extension | Name of the TestScript to execute | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "testName" | |
![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() | 1..1 | Extension | Variable name in the executed test that the input value will be bound to | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "bindEachTarget" | |
![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() | 0..1 | Extension | Determines whether all runs of the executed subtest must pass for this assertion to succeed | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "allMustPass" | |
![]() ![]() ![]() ![]() | 0..1 | boolean | Value of extension | |
![]() ![]() ![]() | 0..* | Extension | Binding of a source TestScript variable to a target TestScript variable | |
![]() ![]() ![]() ![]() | 2..* | Extension | Extension | |
![]() ![]() ![]() ![]() | 1..1 | Extension | Executing TestScript variable name that provides the value | |
![]() ![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() ![]() | 1..1 | uri | "bindSource" | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() ![]() | 1..1 | Extension | Executed TestScript variable name that receives the value | |
![]() ![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() ![]() | 1..1 | uri | "bindTarget" | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() ![]() | 1..1 | uri | "bindVariable" | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() | 1..1 | uri | "https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/assert-subtest-each" | |
![]() ![]() ![]() | 0..0 | |||
![]() |
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() | 0..* | Extension | Extension | |
![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() | 2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() | 1..1 | Extension | Name of the TestScript to execute | |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "testName" | |
![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() | 1..1 | Extension | Variable name in the executed test that the input value will be bound to | |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "bindEachTarget" | |
![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() | 0..1 | Extension | Determines whether all runs of the executed subtest must pass for this assertion to succeed | |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "allMustPass" | |
![]() ![]() ![]() ![]() | 0..1 | boolean | Value of extension | |
![]() ![]() ![]() | 0..* | Extension | Binding of a source TestScript variable to a target TestScript variable | |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | 2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() | 1..1 | Extension | Executing TestScript variable name that provides the value | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() ![]() | 1..1 | uri | "bindSource" | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() ![]() | 1..1 | Extension | Executed TestScript variable name that receives the value | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() ![]() | 1..1 | uri | "bindTarget" | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() ![]() | 1..1 | uri | "bindVariable" | |
![]() ![]() ![]() | 1..1 | uri | "https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/assert-subtest-each" | |
![]() |
This structure is derived from Extension
Differential View
This structure is derived from Extension
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() | 0..* | Extension | Extension | |
![]() ![]() ![]() | 2..* | Extension | Extension | |
![]() ![]() ![]() | 1..1 | Extension | Name of the TestScript to execute | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "testName" | |
![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() | 1..1 | Extension | Variable name in the executed test that the input value will be bound to | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "bindEachTarget" | |
![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() | 0..1 | Extension | Determines whether all runs of the executed subtest must pass for this assertion to succeed | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "allMustPass" | |
![]() ![]() ![]() ![]() | 0..1 | boolean | Value of extension | |
![]() ![]() ![]() | 0..* | Extension | Binding of a source TestScript variable to a target TestScript variable | |
![]() ![]() ![]() ![]() | 2..* | Extension | Extension | |
![]() ![]() ![]() ![]() | 1..1 | Extension | Executing TestScript variable name that provides the value | |
![]() ![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() ![]() | 1..1 | uri | "bindSource" | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() ![]() | 1..1 | Extension | Executed TestScript variable name that receives the value | |
![]() ![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() ![]() | 1..1 | uri | "bindTarget" | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() ![]() | 1..1 | uri | "bindVariable" | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() | 1..1 | uri | "https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/assert-subtest-each" | |
![]() ![]() ![]() | 0..0 | |||
![]() |
Snapshot View
Name | Flags | Card. | Type | Description & Constraints![]() |
---|---|---|---|---|
![]() ![]() | 0..* | Extension | Extension | |
![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() | 2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() | 1..1 | Extension | Name of the TestScript to execute | |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "testName" | |
![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() | 1..1 | Extension | Variable name in the executed test that the input value will be bound to | |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "bindEachTarget" | |
![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() | 0..1 | Extension | Determines whether all runs of the executed subtest must pass for this assertion to succeed | |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() | 1..1 | uri | "allMustPass" | |
![]() ![]() ![]() ![]() | 0..1 | boolean | Value of extension | |
![]() ![]() ![]() | 0..* | Extension | Binding of a source TestScript variable to a target TestScript variable | |
![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() | 2..* | Extension | Extension Slice: Unordered, Open by value:url | |
![]() ![]() ![]() ![]() | 1..1 | Extension | Executing TestScript variable name that provides the value | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() ![]() | 1..1 | uri | "bindSource" | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() ![]() | 1..1 | Extension | Executed TestScript variable name that receives the value | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Unique id for inter-element referencing | |
![]() ![]() ![]() ![]() ![]() | 0..0 | |||
![]() ![]() ![]() ![]() ![]() | 1..1 | uri | "bindTarget" | |
![]() ![]() ![]() ![]() ![]() | 0..1 | string | Value of extension | |
![]() ![]() ![]() ![]() | 1..1 | uri | "bindVariable" | |
![]() ![]() ![]() | 1..1 | uri | "https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/assert-subtest-each" | |
![]() |
Other representations of profile: CSV, Excel, Schematron
Id | Grade | Path(s) | Details | Requirements |
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children : hasValue() or (children().count() > id.count()) | |
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both : extension.exists() != value.exists() |