Extensions for Using Data Elements from FHIR STU3 in FHIR R4B - Downloaded Version null See the Directory of published versions
| Official URL: http://hl7.org/fhir/3.0/StructureDefinition/profile-TestReport | Version: 0.1.0 | |||
| Standards status: Trial-use | Maturity Level: 0 | Computable Name: Profile_R3_TestReport_R4B | ||
This cross-version profile allows STU3 TestReport content to be represented via FHIR R4B TestReport resources.
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | TestReport(4.3.0) | Describes the results of a TestScript execution | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 |
![]() ![]() |
?!Σ | 1..1 | code | completed | in-progress | waiting | stopped | entered-in-error Binding: TestReportStatus (required): The current status of the test script execution. |
![]() ![]() |
Σ | 1..1 | Reference(TestScript) | Reference to the version-specific TestScript that was executed to produce this TestReport |
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: testScript additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |
![]() ![]() |
Σ | 1..1 | code | pass | fail | pending Binding: TestReportResult (required): The overall execution result of the TestScript. |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| TestReport.status | Base | required | TestReportStatus | 📍4.3.0 | FHIR Std. |
| TestReport.result | Base | required | TestReportResult | 📍4.3.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | TestReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | TestReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where(((id.exists() and ('#'+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(uri) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | TestReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | TestReport | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | TestReport | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | TestReport.implicitRules, TestReport.modifierExtension, TestReport.status, TestReport.testScript, TestReport.testScript.extension, TestReport.testScript.extension:testScript, TestReport.result | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | TestReport.modifierExtension, TestReport.testScript.extension, TestReport.testScript.extension:testScript | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from TestReport
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | TestReport(4.3.0) | Describes the results of a TestScript execution | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | STU3: meta additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-TestReport.meta Constraints: ext-1 | |||||
![]() ![]() ![]() |
Σ | 0..1 | id | Version specific identifier | ||||
![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Identifies where the resource comes from | ||||
![]() ![]() ![]() |
Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible) | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example) | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): IETF language tag
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | STU3: text additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-TestReport.text Constraints: ext-1 | |||||
![]() ![]() ![]() |
1..1 | code | generated | extensions | additional | empty Binding: NarrativeStatus (required) | |||||
![]() ![]() ![]() |
C | 1..1 | xhtml | Limited xhtml content Constraints: txt-1, txt-2 | ||||
![]() ![]() |
0..* | Resource | Contained, inline Resources Constraints: dom-r4b | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 | ||||
![]() ![]() |
Σ | 0..1 | Identifier | External identifier | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Identifier | STU3: identifier additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-TestReport.identifier Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required) | ||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible) | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() |
Σ | 0..1 | string | Informal name of the executed TestScript | ||||
![]() ![]() |
?!Σ | 1..1 | code | completed | in-progress | waiting | stopped | entered-in-error Binding: TestReportStatus (required): The current status of the test script execution. | ||||
![]() ![]() |
Σ | 1..1 | Reference(TestScript) | Reference to the version-specific TestScript that was executed to produce this TestReport | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: testScript additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible) | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 1..1 | code | pass | fail | pending Binding: TestReportResult (required): The overall execution result of the TestScript. | ||||
![]() ![]() |
Σ | 0..1 | decimal | The final score (percentage of tests passed) resulting from the execution of the TestScript | ||||
![]() ![]() |
Σ | 0..1 | string | Name of the tester producing this report (Organization or individual) | ||||
![]() ![]() |
Σ | 0..1 | dateTime | When the TestScript was executed and this TestReport was generated | ||||
![]() ![]() |
0..* | BackboneElement | A participant in the test execution, either the execution engine, a client, or a server | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
1..1 | code | test-engine | client | server Binding: TestReportParticipantType (required): The type of participant. | |||||
![]() ![]() ![]() |
1..1 | uri | The uri of the participant. An absolute URL is preferred | |||||
![]() ![]() ![]() |
0..1 | string | The display name of the participant | |||||
![]() ![]() |
0..1 | BackboneElement | The results of the series of required setup operations before the tests were executed | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
C | 1..* | BackboneElement | A setup operation or assert that was executed Constraints: inv-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | BackboneElement | The operation to perform | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | code | pass | skip | fail | warning | error Binding: TestReportActionResult (required): The result of the execution of an individual action. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | markdown | A message associated with the result | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | uri | A link to further details on the result | |||||
![]() ![]() ![]() ![]() |
0..1 | BackboneElement | The assertion to perform | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | code | pass | skip | fail | warning | error Binding: TestReportActionResult (required): The result of the execution of an individual action. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | markdown | A message associated with the result | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | A link to further details on the result | |||||
![]() ![]() |
0..* | BackboneElement | A test executed from the test script | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
0..1 | string | Tracking/logging name of this test | |||||
![]() ![]() ![]() |
0..1 | string | Tracking/reporting short description of the test | |||||
![]() ![]() ![]() |
C | 1..* | BackboneElement | A test operation or assert that was performed Constraints: inv-2 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | See operation (TestReport) | The operation performed | |||||
![]() ![]() ![]() ![]() |
0..1 | See assert (TestReport) | The assertion performed | |||||
![]() ![]() |
0..1 | BackboneElement | The results of running the series of required clean up steps | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
1..* | BackboneElement | One or more teardown operations performed | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() |
1..1 | See operation (TestReport) | The teardown operation performed | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| TestReport.meta.security | Base | extensible | SecurityLabels | 📍4.3.0 | FHIR Std. |
| TestReport.meta.tag | Base | example | Common Tags | 📍4.3.0 | FHIR Std. |
| TestReport.language | Base | preferred | Common Languages | 📍4.3.0 | FHIR Std. |
| TestReport.text.status | Base | required | NarrativeStatus | 📍4.3.0 | FHIR Std. |
| TestReport.identifier.use | Base | required | IdentifierUse | 📍4.3.0 | FHIR Std. |
| TestReport.identifier.type | Base | extensible | IdentifierType | 📍4.3.0 | FHIR Std. |
| TestReport.status | Base | required | TestReportStatus | 📍4.3.0 | FHIR Std. |
| TestReport.testScript.type | Base | extensible | ResourceType | 📍4.3.0 | FHIR Std. |
| TestReport.result | Base | required | TestReportResult | 📍4.3.0 | FHIR Std. |
| TestReport.participant.type | Base | required | TestReportParticipantType | 📍4.3.0 | FHIR Std. |
| TestReport.setup.action.operation.result | Base | required | TestReportActionResult | 📍4.3.0 | FHIR Std. |
| TestReport.setup.action.assert.result | Base | required | TestReportActionResult | 📍4.3.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | TestReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | TestReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where(((id.exists() and ('#'+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(uri) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | TestReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | TestReport | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | TestReport | A resource should have narrative for robust management |
text.`div`.exists()
|
| dom-r4b | warning | TestReport.contained | Containing new R4B resources within R4 resources may cause interoperability issues if instances are shared with R4 systems |
($this is Citation or $this is Evidence or $this is EvidenceReport or $this is EvidenceVariable or $this is MedicinalProductDefinition or $this is PackagedProductDefinition or $this is AdministrableProductDefinition or $this is Ingredient or $this is ClinicalUseDefinition or $this is RegulatedAuthorization or $this is SubstanceDefinition or $this is SubscriptionStatus or $this is SubscriptionTopic) implies (%resource is Citation or %resource is Evidence or %resource is EvidenceReport or %resource is EvidenceVariable or %resource is MedicinalProductDefinition or %resource is PackagedProductDefinition or %resource is AdministrableProductDefinition or %resource is Ingredient or %resource is ClinicalUseDefinition or %resource is RegulatedAuthorization or %resource is SubstanceDefinition or %resource is SubscriptionStatus or %resource is SubscriptionTopic)
|
| ele-1 | error | TestReport.meta, TestReport.meta.extension, TestReport.meta.extension:meta, TestReport.meta.versionId, TestReport.meta.lastUpdated, TestReport.meta.source, TestReport.meta.profile, TestReport.meta.security, TestReport.meta.tag, TestReport.implicitRules, TestReport.language, TestReport.text, TestReport.text.extension, TestReport.text.extension:text, TestReport.text.status, TestReport.text.div, TestReport.extension, TestReport.modifierExtension, TestReport.identifier, TestReport.identifier.extension, TestReport.identifier.extension:identifier, TestReport.identifier.use, TestReport.identifier.type, TestReport.identifier.system, TestReport.identifier.value, TestReport.identifier.period, TestReport.identifier.assigner, TestReport.name, TestReport.status, TestReport.testScript, TestReport.testScript.extension, TestReport.testScript.extension:testScript, TestReport.testScript.reference, TestReport.testScript.type, TestReport.testScript.identifier, TestReport.testScript.display, TestReport.result, TestReport.score, TestReport.tester, TestReport.issued, TestReport.participant, TestReport.participant.extension, TestReport.participant.modifierExtension, TestReport.participant.type, TestReport.participant.uri, TestReport.participant.display, TestReport.setup, TestReport.setup.extension, TestReport.setup.modifierExtension, TestReport.setup.action, TestReport.setup.action.extension, TestReport.setup.action.modifierExtension, TestReport.setup.action.operation, TestReport.setup.action.operation.extension, TestReport.setup.action.operation.modifierExtension, TestReport.setup.action.operation.result, TestReport.setup.action.operation.message, TestReport.setup.action.operation.detail, TestReport.setup.action.assert, TestReport.setup.action.assert.extension, TestReport.setup.action.assert.modifierExtension, TestReport.setup.action.assert.result, TestReport.setup.action.assert.message, TestReport.setup.action.assert.detail, TestReport.test, TestReport.test.extension, TestReport.test.modifierExtension, TestReport.test.name, TestReport.test.description, TestReport.test.action, TestReport.test.action.extension, TestReport.test.action.modifierExtension, TestReport.test.action.operation, TestReport.test.action.assert, TestReport.teardown, TestReport.teardown.extension, TestReport.teardown.modifierExtension, TestReport.teardown.action, TestReport.teardown.action.extension, TestReport.teardown.action.modifierExtension, TestReport.teardown.action.operation | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | TestReport.meta.extension, TestReport.meta.extension:meta, TestReport.text.extension, TestReport.text.extension:text, TestReport.extension, TestReport.modifierExtension, TestReport.identifier.extension, TestReport.identifier.extension:identifier, TestReport.testScript.extension, TestReport.testScript.extension:testScript, TestReport.participant.extension, TestReport.participant.modifierExtension, TestReport.setup.extension, TestReport.setup.modifierExtension, TestReport.setup.action.extension, TestReport.setup.action.modifierExtension, TestReport.setup.action.operation.extension, TestReport.setup.action.operation.modifierExtension, TestReport.setup.action.assert.extension, TestReport.setup.action.assert.modifierExtension, TestReport.test.extension, TestReport.test.modifierExtension, TestReport.test.action.extension, TestReport.test.action.modifierExtension, TestReport.teardown.extension, TestReport.teardown.modifierExtension, TestReport.teardown.action.extension, TestReport.teardown.action.modifierExtension | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| inv-1 | error | TestReport.setup.action | Setup action SHALL contain either an operation or assert but not both. |
operation.exists() xor assert.exists()
|
| inv-2 | error | TestReport.test.action | Test action SHALL contain either an operation or assert but not both. |
operation.exists() xor assert.exists()
|
| txt-1 | error | TestReport.text.div | The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes |
htmlChecks()
|
| txt-2 | error | TestReport.text.div | The narrative SHALL have some non-whitespace content |
htmlChecks()
|
This structure is derived from TestReport
Summary
Extensions
This structure refers to these extensions:
Maturity: 0
Key Elements View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() |
|---|---|---|---|---|
![]() |
0..* | TestReport(4.3.0) | Describes the results of a TestScript execution | |
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created |
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 |
![]() ![]() |
?!Σ | 1..1 | code | completed | in-progress | waiting | stopped | entered-in-error Binding: TestReportStatus (required): The current status of the test script execution. |
![]() ![]() |
Σ | 1..1 | Reference(TestScript) | Reference to the version-specific TestScript that was executed to produce this TestReport |
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: testScript additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |
![]() ![]() |
Σ | 1..1 | code | pass | fail | pending Binding: TestReportResult (required): The overall execution result of the TestScript. |
Documentation for this format | ||||
| Path | Status | Usage | ValueSet | Version | Source |
| TestReport.status | Base | required | TestReportStatus | 📍4.3.0 | FHIR Std. |
| TestReport.result | Base | required | TestReportResult | 📍4.3.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | TestReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | TestReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where(((id.exists() and ('#'+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(uri) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | TestReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | TestReport | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | TestReport | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | TestReport.implicitRules, TestReport.modifierExtension, TestReport.status, TestReport.testScript, TestReport.testScript.extension, TestReport.testScript.extension:testScript, TestReport.result | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | TestReport.modifierExtension, TestReport.testScript.extension, TestReport.testScript.extension:testScript | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Differential View
This structure is derived from TestReport
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | TestReport(4.3.0) | Describes the results of a TestScript execution | |||||
![]() ![]() |
Σ | 0..1 | id | Logical id of this artifact | ||||
![]() ![]() |
Σ | 0..1 | Meta | Metadata about the resource | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | STU3: meta additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-TestReport.meta Constraints: ext-1 | |||||
![]() ![]() ![]() |
Σ | 0..1 | id | Version specific identifier | ||||
![]() ![]() ![]() |
Σ | 0..1 | instant | When the resource version last changed | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Identifies where the resource comes from | ||||
![]() ![]() ![]() |
Σ | 0..* | canonical(StructureDefinition) | Profiles this resource claims to conform to | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible) | ||||
![]() ![]() ![]() |
Σ | 0..* | Coding | Tags applied to this resource Binding: CommonTags (example) | ||||
![]() ![]() |
?!Σ | 0..1 | uri | A set of rules under which this content was created | ||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): IETF language tag
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | (Complex) | STU3: text additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-TestReport.text Constraints: ext-1 | |||||
![]() ![]() ![]() |
1..1 | code | generated | extensions | additional | empty Binding: NarrativeStatus (required) | |||||
![]() ![]() ![]() |
C | 1..1 | xhtml | Limited xhtml content Constraints: txt-1, txt-2 | ||||
![]() ![]() |
0..* | Resource | Contained, inline Resources Constraints: dom-r4b | |||||
![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() |
?! | 0..* | Extension | Extensions that cannot be ignored Constraints: ext-1 | ||||
![]() ![]() |
Σ | 0..1 | Identifier | External identifier | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Identifier | STU3: identifier additional types URL: http://hl7.org/fhir/3.0/StructureDefinition/extension-TestReport.identifier Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..1 | code | usual | official | temp | secondary | old (If known) Binding: IdentifierUse (required) | ||||
![]() ![]() ![]() |
Σ | 0..1 | CodeableConcept | Description of identifier Binding: Identifier Type Codes (extensible) | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | The namespace for the identifier value Example General: http://www.acme.com/identifiers/patient | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | The value that is unique Example General: 123456 | ||||
![]() ![]() ![]() |
Σ | 0..1 | Period | Time period when id is/was valid for use | ||||
![]() ![]() ![]() |
Σ | 0..1 | Reference(Organization) | Organization that issued id (may be just text) | ||||
![]() ![]() |
Σ | 0..1 | string | Informal name of the executed TestScript | ||||
![]() ![]() |
?!Σ | 1..1 | code | completed | in-progress | waiting | stopped | entered-in-error Binding: TestReportStatus (required): The current status of the test script execution. | ||||
![]() ![]() |
Σ | 1..1 | Reference(TestScript) | Reference to the version-specific TestScript that was executed to produce this TestReport | ||||
![]() ![]() ![]() |
0..1 | id | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
0..1 | Reference(Resource) | STU3: testScript additional types URL: http://hl7.org/fhir/StructureDefinition/alternate-reference Constraints: ext-1 | |||||
![]() ![]() ![]() |
ΣC | 0..1 | string | Literal reference, Relative, internal or absolute URL | ||||
![]() ![]() ![]() |
Σ | 0..1 | uri | Type the reference refers to (e.g. "Patient") Binding: ResourceType (extensible) | ||||
![]() ![]() ![]() |
Σ | 0..1 | Identifier | Logical reference, when literal reference is not known | ||||
![]() ![]() ![]() |
Σ | 0..1 | string | Text alternative for the resource | ||||
![]() ![]() |
Σ | 1..1 | code | pass | fail | pending Binding: TestReportResult (required): The overall execution result of the TestScript. | ||||
![]() ![]() |
Σ | 0..1 | decimal | The final score (percentage of tests passed) resulting from the execution of the TestScript | ||||
![]() ![]() |
Σ | 0..1 | string | Name of the tester producing this report (Organization or individual) | ||||
![]() ![]() |
Σ | 0..1 | dateTime | When the TestScript was executed and this TestReport was generated | ||||
![]() ![]() |
0..* | BackboneElement | A participant in the test execution, either the execution engine, a client, or a server | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
1..1 | code | test-engine | client | server Binding: TestReportParticipantType (required): The type of participant. | |||||
![]() ![]() ![]() |
1..1 | uri | The uri of the participant. An absolute URL is preferred | |||||
![]() ![]() ![]() |
0..1 | string | The display name of the participant | |||||
![]() ![]() |
0..1 | BackboneElement | The results of the series of required setup operations before the tests were executed | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
C | 1..* | BackboneElement | A setup operation or assert that was executed Constraints: inv-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | BackboneElement | The operation to perform | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | code | pass | skip | fail | warning | error Binding: TestReportActionResult (required): The result of the execution of an individual action. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | markdown | A message associated with the result | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | uri | A link to further details on the result | |||||
![]() ![]() ![]() ![]() |
0..1 | BackboneElement | The assertion to perform | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() ![]() |
1..1 | code | pass | skip | fail | warning | error Binding: TestReportActionResult (required): The result of the execution of an individual action. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | markdown | A message associated with the result | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | A link to further details on the result | |||||
![]() ![]() |
0..* | BackboneElement | A test executed from the test script | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
0..1 | string | Tracking/logging name of this test | |||||
![]() ![]() ![]() |
0..1 | string | Tracking/reporting short description of the test | |||||
![]() ![]() ![]() |
C | 1..* | BackboneElement | A test operation or assert that was performed Constraints: inv-2 | ||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() |
0..1 | See operation (TestReport) | The operation performed | |||||
![]() ![]() ![]() ![]() |
0..1 | See assert (TestReport) | The assertion performed | |||||
![]() ![]() |
0..1 | BackboneElement | The results of running the series of required clean up steps | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() |
1..* | BackboneElement | One or more teardown operations performed | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Constraints: ext-1 | |||||
![]() ![]() ![]() ![]() |
?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized Constraints: ext-1 | ||||
![]() ![]() ![]() ![]() |
1..1 | See operation (TestReport) | The teardown operation performed | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| TestReport.meta.security | Base | extensible | SecurityLabels | 📍4.3.0 | FHIR Std. |
| TestReport.meta.tag | Base | example | Common Tags | 📍4.3.0 | FHIR Std. |
| TestReport.language | Base | preferred | Common Languages | 📍4.3.0 | FHIR Std. |
| TestReport.text.status | Base | required | NarrativeStatus | 📍4.3.0 | FHIR Std. |
| TestReport.identifier.use | Base | required | IdentifierUse | 📍4.3.0 | FHIR Std. |
| TestReport.identifier.type | Base | extensible | IdentifierType | 📍4.3.0 | FHIR Std. |
| TestReport.status | Base | required | TestReportStatus | 📍4.3.0 | FHIR Std. |
| TestReport.testScript.type | Base | extensible | ResourceType | 📍4.3.0 | FHIR Std. |
| TestReport.result | Base | required | TestReportResult | 📍4.3.0 | FHIR Std. |
| TestReport.participant.type | Base | required | TestReportParticipantType | 📍4.3.0 | FHIR Std. |
| TestReport.setup.action.operation.result | Base | required | TestReportActionResult | 📍4.3.0 | FHIR Std. |
| TestReport.setup.action.assert.result | Base | required | TestReportActionResult | 📍4.3.0 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | TestReport | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | TestReport | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource |
contained.where(((id.exists() and ('#'+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(uri) = '#').exists()).not()).trace('unmatched', id).empty()
|
| dom-4 | error | TestReport | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated |
contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
|
| dom-5 | error | TestReport | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | TestReport | A resource should have narrative for robust management |
text.`div`.exists()
|
| dom-r4b | warning | TestReport.contained | Containing new R4B resources within R4 resources may cause interoperability issues if instances are shared with R4 systems |
($this is Citation or $this is Evidence or $this is EvidenceReport or $this is EvidenceVariable or $this is MedicinalProductDefinition or $this is PackagedProductDefinition or $this is AdministrableProductDefinition or $this is Ingredient or $this is ClinicalUseDefinition or $this is RegulatedAuthorization or $this is SubstanceDefinition or $this is SubscriptionStatus or $this is SubscriptionTopic) implies (%resource is Citation or %resource is Evidence or %resource is EvidenceReport or %resource is EvidenceVariable or %resource is MedicinalProductDefinition or %resource is PackagedProductDefinition or %resource is AdministrableProductDefinition or %resource is Ingredient or %resource is ClinicalUseDefinition or %resource is RegulatedAuthorization or %resource is SubstanceDefinition or %resource is SubscriptionStatus or %resource is SubscriptionTopic)
|
| ele-1 | error | TestReport.meta, TestReport.meta.extension, TestReport.meta.extension:meta, TestReport.meta.versionId, TestReport.meta.lastUpdated, TestReport.meta.source, TestReport.meta.profile, TestReport.meta.security, TestReport.meta.tag, TestReport.implicitRules, TestReport.language, TestReport.text, TestReport.text.extension, TestReport.text.extension:text, TestReport.text.status, TestReport.text.div, TestReport.extension, TestReport.modifierExtension, TestReport.identifier, TestReport.identifier.extension, TestReport.identifier.extension:identifier, TestReport.identifier.use, TestReport.identifier.type, TestReport.identifier.system, TestReport.identifier.value, TestReport.identifier.period, TestReport.identifier.assigner, TestReport.name, TestReport.status, TestReport.testScript, TestReport.testScript.extension, TestReport.testScript.extension:testScript, TestReport.testScript.reference, TestReport.testScript.type, TestReport.testScript.identifier, TestReport.testScript.display, TestReport.result, TestReport.score, TestReport.tester, TestReport.issued, TestReport.participant, TestReport.participant.extension, TestReport.participant.modifierExtension, TestReport.participant.type, TestReport.participant.uri, TestReport.participant.display, TestReport.setup, TestReport.setup.extension, TestReport.setup.modifierExtension, TestReport.setup.action, TestReport.setup.action.extension, TestReport.setup.action.modifierExtension, TestReport.setup.action.operation, TestReport.setup.action.operation.extension, TestReport.setup.action.operation.modifierExtension, TestReport.setup.action.operation.result, TestReport.setup.action.operation.message, TestReport.setup.action.operation.detail, TestReport.setup.action.assert, TestReport.setup.action.assert.extension, TestReport.setup.action.assert.modifierExtension, TestReport.setup.action.assert.result, TestReport.setup.action.assert.message, TestReport.setup.action.assert.detail, TestReport.test, TestReport.test.extension, TestReport.test.modifierExtension, TestReport.test.name, TestReport.test.description, TestReport.test.action, TestReport.test.action.extension, TestReport.test.action.modifierExtension, TestReport.test.action.operation, TestReport.test.action.assert, TestReport.teardown, TestReport.teardown.extension, TestReport.teardown.modifierExtension, TestReport.teardown.action, TestReport.teardown.action.extension, TestReport.teardown.action.modifierExtension, TestReport.teardown.action.operation | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | TestReport.meta.extension, TestReport.meta.extension:meta, TestReport.text.extension, TestReport.text.extension:text, TestReport.extension, TestReport.modifierExtension, TestReport.identifier.extension, TestReport.identifier.extension:identifier, TestReport.testScript.extension, TestReport.testScript.extension:testScript, TestReport.participant.extension, TestReport.participant.modifierExtension, TestReport.setup.extension, TestReport.setup.modifierExtension, TestReport.setup.action.extension, TestReport.setup.action.modifierExtension, TestReport.setup.action.operation.extension, TestReport.setup.action.operation.modifierExtension, TestReport.setup.action.assert.extension, TestReport.setup.action.assert.modifierExtension, TestReport.test.extension, TestReport.test.modifierExtension, TestReport.test.action.extension, TestReport.test.action.modifierExtension, TestReport.teardown.extension, TestReport.teardown.modifierExtension, TestReport.teardown.action.extension, TestReport.teardown.action.modifierExtension | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
| inv-1 | error | TestReport.setup.action | Setup action SHALL contain either an operation or assert but not both. |
operation.exists() xor assert.exists()
|
| inv-2 | error | TestReport.test.action | Test action SHALL contain either an operation or assert but not both. |
operation.exists() xor assert.exists()
|
| txt-1 | error | TestReport.text.div | The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes |
htmlChecks()
|
| txt-2 | error | TestReport.text.div | The narrative SHALL have some non-whitespace content |
htmlChecks()
|
This structure is derived from TestReport
Summary
Extensions
This structure refers to these extensions:
Maturity: 0
Other representations of profile: CSV, Excel, Schematron