0.0.1 - ci-build

TestScriptEngineIG - Local Development build (v0.0.1). See the Directory of published versions

Resource Profile: TestScript Engine TestReport

Official URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/testscript-engine-testreport Version: 0.0.1
Active as of 2022-12-29 Computable Name: TestScriptEngineReport

TestReport with extensions specific to the MITRE FHIR Foundry testscript-engine and testscript-generator

Usage:

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraintsdoco
.. TestReport 0..*TestReportDescribes the results of a TestScript execution
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... DynamicInput 0..*(Complex)Extension
URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/dynamic-input
... MustPass 0..1booleanExtension
URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/executed-as-subtest-must-pass
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... status ?!Σ1..1codecompleted | in-progress | waiting | stopped | entered-in-error
Binding: TestReportStatus (required): The current status of the test report.

... testScript Σ1..1Reference(TestScript)Reference to the version-specific TestScript that was executed to produce this TestReport
... result Σ1..1codepass | fail | pending
Binding: TestReportResult (required): The reported execution result.


doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
TestReport.statusrequiredTestReportStatus
TestReport.resultrequiredTestReportResult

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorTestReportIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorTestReportIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorTestReportIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorTestReportIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceTestReportA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. TestReport 0..*TestReportDescribes the results of a TestScript execution
... 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
... 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
... DynamicInput 0..*(Complex)Extension
URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/dynamic-input
... ExecutedAsSubtest 0..1booleanExtension
URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/executed-as-subtest
... MustPass 0..1booleanExtension
URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/executed-as-subtest-must-pass
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..1IdentifierExternal identifier
... name Σ0..1stringInformal name of the executed TestScript
... status ?!Σ1..1codecompleted | in-progress | waiting | stopped | entered-in-error
Binding: TestReportStatus (required): The current status of the test report.

... testScript Σ1..1Reference(TestScript)Reference to the version-specific TestScript that was executed to produce this TestReport
... result Σ1..1codepass | fail | pending
Binding: TestReportResult (required): The reported execution result.

... score Σ0..1decimalThe final score (percentage of tests passed) resulting from the execution of the TestScript
... tester Σ0..1stringName of the tester producing this report (Organization or individual)
... issued Σ0..1dateTimeWhen the TestScript was executed and this TestReport was generated
... participant 0..*BackboneElementA participant in the test execution, either the execution engine, a client, or a server
.... 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
.... type 1..1codetest-engine | client | server
Binding: TestReportParticipantType (required): The type of participant.

.... uri 1..1uriThe uri of the participant. An absolute URL is preferred
.... display 0..1stringThe display name of the participant
... setup 0..1BackboneElementThe results of the series of required setup operations before the tests were executed
.... 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 C1..*BackboneElementA setup operation or assert that was executed
..... 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 0..1BackboneElementThe operation 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
...... result 1..1codepass | skip | fail | warning | error
Binding: TestReportActionResult (required): The results of executing an action.

...... message 0..1markdownA message associated with the result
...... detail 0..1uriA link to further details on the result
..... assert 0..1BackboneElementThe assertion 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
...... result 1..1codepass | skip | fail | warning | error
Binding: TestReportActionResult (required): The results of executing an action.

...... message 0..1markdownA message associated with the result
...... detail 0..1stringA link to further details on the result
... test 0..*BackboneElementA test executed from the test 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 that was performed
..... 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 0..1See operation (TestReport)The operation performed
..... assert 0..1See assert (TestReport)The assertion performed
... teardown 0..1BackboneElementThe results of running the 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 performed
..... 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 1..1See operation (TestReport)The teardown operation performed

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
TestReport.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
TestReport.statusrequiredTestReportStatus
TestReport.resultrequiredTestReportResult
TestReport.participant.typerequiredTestReportParticipantType
TestReport.setup.action.operation.resultrequiredTestReportActionResult
TestReport.setup.action.assert.resultrequiredTestReportActionResult

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
inv-1errorTestReport.setup.actionSetup action SHALL contain either an operation or assert but not both.
: operation.exists() xor assert.exists()
inv-2errorTestReport.test.actionTest action SHALL contain either an operation or assert but not both.
: operation.exists() xor assert.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. TestReport 0..*TestReportDescribes the results of a TestScript execution
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... Slices for extension 0..*ExtensionExtension
Slice: Unordered, Open by value:url
... DynamicInput 0..*(Complex)Extension
URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/dynamic-input
... MustPass 0..1booleanExtension
URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/executed-as-subtest-must-pass
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... status ?!Σ1..1codecompleted | in-progress | waiting | stopped | entered-in-error
Binding: TestReportStatus (required): The current status of the test report.

... testScript Σ1..1Reference(TestScript)Reference to the version-specific TestScript that was executed to produce this TestReport
... result Σ1..1codepass | fail | pending
Binding: TestReportResult (required): The reported execution result.


doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
TestReport.statusrequiredTestReportStatus
TestReport.resultrequiredTestReportResult

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorTestReportIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorTestReportIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorTestReportIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorTestReportIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceTestReportA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. TestReport 0..*TestReportDescribes the results of a TestScript execution
... 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
... 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
... DynamicInput 0..*(Complex)Extension
URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/dynamic-input
... ExecutedAsSubtest 0..1booleanExtension
URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/executed-as-subtest
... MustPass 0..1booleanExtension
URL: https://fhir-crucible.github.io/testscript-engine-ig/StructureDefinition/executed-as-subtest-must-pass
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..1IdentifierExternal identifier
... name Σ0..1stringInformal name of the executed TestScript
... status ?!Σ1..1codecompleted | in-progress | waiting | stopped | entered-in-error
Binding: TestReportStatus (required): The current status of the test report.

... testScript Σ1..1Reference(TestScript)Reference to the version-specific TestScript that was executed to produce this TestReport
... result Σ1..1codepass | fail | pending
Binding: TestReportResult (required): The reported execution result.

... score Σ0..1decimalThe final score (percentage of tests passed) resulting from the execution of the TestScript
... tester Σ0..1stringName of the tester producing this report (Organization or individual)
... issued Σ0..1dateTimeWhen the TestScript was executed and this TestReport was generated
... participant 0..*BackboneElementA participant in the test execution, either the execution engine, a client, or a server
.... 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
.... type 1..1codetest-engine | client | server
Binding: TestReportParticipantType (required): The type of participant.

.... uri 1..1uriThe uri of the participant. An absolute URL is preferred
.... display 0..1stringThe display name of the participant
... setup 0..1BackboneElementThe results of the series of required setup operations before the tests were executed
.... 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 C1..*BackboneElementA setup operation or assert that was executed
..... 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 0..1BackboneElementThe operation 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
...... result 1..1codepass | skip | fail | warning | error
Binding: TestReportActionResult (required): The results of executing an action.

...... message 0..1markdownA message associated with the result
...... detail 0..1uriA link to further details on the result
..... assert 0..1BackboneElementThe assertion 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
...... result 1..1codepass | skip | fail | warning | error
Binding: TestReportActionResult (required): The results of executing an action.

...... message 0..1markdownA message associated with the result
...... detail 0..1stringA link to further details on the result
... test 0..*BackboneElementA test executed from the test 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 that was performed
..... 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 0..1See operation (TestReport)The operation performed
..... assert 0..1See assert (TestReport)The assertion performed
... teardown 0..1BackboneElementThe results of running the 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 performed
..... 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 1..1See operation (TestReport)The teardown operation performed

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
TestReport.languagepreferredCommonLanguages
Additional Bindings Purpose
AllLanguages Max Binding
TestReport.statusrequiredTestReportStatus
TestReport.resultrequiredTestReportResult
TestReport.participant.typerequiredTestReportParticipantType
TestReport.setup.action.operation.resultrequiredTestReportActionResult
TestReport.setup.action.assert.resultrequiredTestReportActionResult

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
inv-1errorTestReport.setup.actionSetup action SHALL contain either an operation or assert but not both.
: operation.exists() xor assert.exists()
inv-2errorTestReport.test.actionTest action SHALL contain either an operation or assert but not both.
: operation.exists() xor assert.exists()

 

Other representations of profile: CSV, Excel, Schematron