FHIR Testing IG
0.1.0-SNAPSHOT - International flag

FHIR Testing IG, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0-SNAPSHOT built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-testing-ig/ and changes regularly. See the Directory of published versions

Resource: Test Report

Official URL: http://hl7.org/fhir/StructureDefinition/TestReport Version: 0.1.0-SNAPSHOT
Standards status: Trial-use Draft as of 2021-01-02 Maturity Level: 1 Computable Name: TestReport
Other Identifiers: OID:2.16.840.1.113883.4.642.5.1271

A summary of information based on the results of executing a TestScript.

Scope and Usage

The TestScript resource is used to define tests that can be executed on one or more FHIR servers. The TestReport resource defines how systems should encode the summarized results of executing a TestScript.

The TestReport structure mirrors the TestScript concepts of having sections for setup, tests, and teardown. If present, these ordered lists should mirror the actions (either operations or assertions) of the referenced TestScript with a result code: pass, skip, fail, warning, or error.

Background and Context

Implementers should be familiar with the testing concepts and descriptions found in Testing FHIR before working with this resource.

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Resource Content

Description Differentials, Snapshots, and other representations.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. TestReport 0..* DomainResource Describes the results of a TestScript execution

Elements defined in Ancestors:id, meta, implicitRules, language, text, contained, extension, modifierExtension
... identifier Σ 0..1 Identifier External identifier
... name Σ 0..1 string Informal name of the executed TestReport
... status ?!Σ 1..1 code completed | in-progress | waiting | stopped | entered-in-error
Binding: TestReportStatus (required): The current status of the test script execution.
... result Σ 1..1 code pass | fail | pending
Binding: TestReportResult (required): The overall execution result of the TestScript.
... score Σ 0..1 decimal The final score (percentage of tests passed, so 0..100) resulting from the execution of the TestScript
... tester Σ 0..1 string Name of the tester producing this report (Organization or individual)
... issued Σ 0..1 dateTime When the TestScript was executed and this TestReport was generated
... participant 0..* BackboneElement A participant in the test execution, either the execution engine, a client, or a server
.... type 1..1 code test-engine | client | server
Binding: TestReportParticipantType (required): The type of participant.
.... uri 0..1 uri The uri of the participant. An absolute URL is preferred
.... version 0..1 uri The version of the participant, if known/applicable
.... display 0..1 string The display name of the participant
... parameter 0..* BackboneElement A parameter passed to the runner performing the test
.... name 1..1 string Name of the parameter passed in
.... documentation 0..1 markdown Documentation about the impact of the parameter
... setup 0..1 BackboneElement The results of the series of required setup operations before the tests were executed
.... action C 1..* BackboneElement A setup operation or assert that was executed
Constraints: tr-0
..... operation C 0..1 BackboneElement The operation to perform
...... result 1..1 code pass | skip | fail | warning | error
Binding: TestReportActionResult (required): The result of the execution of an individual action.
...... message 0..1 markdown A message associated with the result
...... detail 0..1 uri A link to further details on the result
..... assert C 0..1 BackboneElement The assertion to perform
...... result 1..1 code pass | skip | fail | warning | error
Binding: TestReportActionResult (required): The result of the execution of an individual action.
...... message 0..1 markdown A message associated with the result
...... detail 0..1 string A link to further details on the result
...... requirement 0..* BackboneElement Links or references to the testing requirements
....... link[x] 0..1 Link or reference to the testing requirement
........ linkUri uri
........ linkCanonical canonical(Requirements)
... test 0..* BackboneElement A test executed from the test script
.... name 0..1 string Tracking/logging name of this test (link to test in TestScript)
.... description 0..1 string Tracking/reporting short description of the test
.... result 0..1 code pass | skip | fail | warning | error
Binding: TestReportActionResult (required): The result of the execution of the test.
.... period 0..1 Period Start and End times running the test (accurate to milliseconds)
.... action C 1..* BackboneElement A test operation or assert that was performed
Constraints: tr-2
..... operation 0..1 See operation The operation performed
..... assert 0..1 See assert The assertion performed
.... log 0..1 Attachment Text log of the internal execution of the tests
... teardown 0..1 BackboneElement The results of running the series of required clean up steps
.... action 1..* BackboneElement One or more teardown operations performed
..... operation 1..1 See operation The teardown operation performed
... presentedForm 0..1 Attachment A document presentation of the test outcomes (e.g. PDF)
... log 0..1 Attachment Text log of the internal execution of the tests

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
TestReport.status Base required Test Report Status 📦6.0.0-ballot3 FHIR Std.
TestReport.result Base required Test Report Result 📦6.0.0-ballot3 FHIR Std.
TestReport.participant.​type Base required Test Report Participant Type 📦6.0.0-ballot3 FHIR Std.
TestReport.setup.action.​operation.result Base required Test Report Action Result 📦6.0.0-ballot3 FHIR Std.
TestReport.setup.action.​assert.result Base required Test Report Action Result 📦6.0.0-ballot3 FHIR Std.
TestReport.test.result Base required Test Report Action Result 📦6.0.0-ballot3 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
tr-0 error TestReport.setup.action Setup action SHALL contain either an operation or assert but not both. operation.exists() xor assert.exists()
tr-2 error TestReport.test.action Test action SHALL contain either an operation or assert but not both. operation.exists() xor assert.exists()

<TestReport xmlns="http://hl7.org/fhir"> doco
 <id value="[id]"/><!-- 0..1 * Logical id of this artifact  -->
 <meta><!-- I 0..1 * Metadata about the resource  --></meta>
 <implicitRules value="[uri]"/><!-- I 0..1 * A set of rules under which this content was created  -->
 <language value="[code]"/><!-- I 0..1 * Language of the resource content  -->
 <text><!-- I 0..1 * Text summary of the resource, for human interpretation  --></text>
 <contained><!-- 0..* * Contained, inline Resources  --></contained>
 <extension><!-- See Extensions  Additional content defined by implementations  --></extension>
 <modifierExtension><!-- I 0..* * Extensions that cannot be ignored  --></modifierExtension>
 <identifier><!-- 0..1 * External identifier  --></identifier>
 <name value="[string]"/><!-- 0..1 * Informal name of the executed TestReport  -->
 <status value="[code]"/><!-- 1..1 * completed | in-progress | waiting | stopped | entered-in-error  -->
 <testScript value="[canonical]"/><!-- 1..1 * Canonical URL to the version-specific TestScript that was executed to produce this TestReport  -->
 <result value="[code]"/><!-- 1..1 * pass | fail | pending  -->
 <score value="[decimal]"/><!-- 0..1 * The final score (percentage of tests passed, so 0..100) resulting from the execution of the TestScript  -->
 <tester value="[string]"/><!-- 0..1 * Name of the tester producing this report (Organization or individual)  -->
 <issued value="[dateTime]"/><!-- 0..1 * When the TestScript was executed and this TestReport was generated  -->
 <participant> I 0..* *  <!-- I 0..* A participant in the test execution, either the execution engine, a client, or a server -->
  <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing   -->
  <extension><!-- See Extensions  Additional content defined by implementations   --></extension>
  <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized   --></modifierExtension>
  <type value="[code]"/><!-- 1..1 * test-engine | client | server   -->
  <uri value="[uri]"/><!-- 0..1 * The uri of the participant. An absolute URL is preferred   -->
  <version value="[uri]"/><!-- 0..1 * The version of the participant, if known/applicable   -->
  <display value="[string]"/><!-- 0..1 * The display name of the participant   -->
 </participant>
 <parameter> I 0..* *  <!-- I 0..* A parameter passed to the runner performing the test -->
  <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing   -->
  <extension><!-- See Extensions  Additional content defined by implementations   --></extension>
  <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized   --></modifierExtension>
  <name value="[string]"/><!-- 1..1 * Name of the parameter passed in   -->
  <documentation value="[markdown]"/><!-- 0..1 * Documentation about the impact of the parameter   -->
 </parameter>
 <setup> I 0..1 *  <!-- I 0..1 The results of the series of required setup operations before the tests were executed -->
  <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing   -->
  <extension><!-- See Extensions  Additional content defined by implementations   --></extension>
  <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized   --></modifierExtension>
  <action> I 1..* *  <!-- I 1..* A setup operation or assert that was executed -->
   <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing    -->
   <extension><!-- See Extensions  Additional content defined by implementations    --></extension>
   <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized    --></modifierExtension>
   <operation> I 0..1 *  <!-- I 0..1 The operation to perform -->
    <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing     -->
    <extension><!-- See Extensions  Additional content defined by implementations     --></extension>
    <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized     --></modifierExtension>
    <result value="[code]"/><!-- 1..1 * pass | skip | fail | warning | error     -->
    <message value="[markdown]"/><!-- 0..1 * A message associated with the result     -->
    <detail value="[uri]"/><!-- 0..1 * A link to further details on the result     -->
   </operation>
   <assert> I 0..1 *  <!-- I 0..1 The assertion to perform -->
    <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing     -->
    <extension><!-- See Extensions  Additional content defined by implementations     --></extension>
    <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized     --></modifierExtension>
    <result value="[code]"/><!-- 1..1 * pass | skip | fail | warning | error     -->
    <message value="[markdown]"/><!-- 0..1 * A message associated with the result     -->
    <detail value="[string]"/><!-- 0..1 * A link to further details on the result     -->
    <requirement> I 0..* *  <!-- I 0..* Links or references to the testing requirements -->
     <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing      -->
     <extension><!-- See Extensions  Additional content defined by implementations      --></extension>
     <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized      --></modifierExtension>
     <link[x]><!-- 0..1 uri|canonical(Requirements) Link or reference to the testing requirement      --></link[x]>
    </requirement>
   </assert>
  </action>
 </setup>
 <test> I 0..* *  <!-- I 0..* A test executed from the test script -->
  <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing   -->
  <extension><!-- See Extensions  Additional content defined by implementations   --></extension>
  <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized   --></modifierExtension>
  <name value="[string]"/><!-- 0..1 * Tracking/logging name of this test (link to test in TestScript)   -->
  <description value="[string]"/><!-- 0..1 * Tracking/reporting short description of the test   -->
  <result value="[code]"/><!-- 0..1 * pass | skip | fail | warning | error   -->
  <period><!-- 0..1 * Start and End times running the test (accurate to milliseconds)   --></period>
  <action> I 1..* *  <!-- I 1..* A test operation or assert that was performed -->
   <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing    -->
   <extension><!-- See Extensions  Additional content defined by implementations    --></extension>
   <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized    --></modifierExtension>
   <operation><!-- 0..1 Content as for TestReport.setup.action.operation The operation performed    --></operation>
   <assert><!-- 0..1 Content as for TestReport.setup.action.assert The assertion performed    --></assert>
  </action>
  <log><!-- 0..1 * Text log of the internal execution of the tests   --></log>
 </test>
 <teardown> I 0..1 *  <!-- I 0..1 The results of running the series of required clean up steps -->
  <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing   -->
  <extension><!-- See Extensions  Additional content defined by implementations   --></extension>
  <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized   --></modifierExtension>
  <action> I 1..* *  <!-- I 1..* One or more teardown operations performed -->
   <id value="[id]"/><!-- 0..1 * Unique id for inter-element referencing    -->
   <extension><!-- See Extensions  Additional content defined by implementations    --></extension>
   <modifierExtension><!-- I 0..* * Extensions that cannot be ignored even if unrecognized    --></modifierExtension>
   <operation><!-- 1..1 Content as for TestReport.setup.action.operation The teardown operation performed    --></operation>
  </action>
 </teardown>
 <presentedForm><!-- 0..1 * A document presentation of the test outcomes (e.g. PDF)  --></presentedForm>
 <log><!-- 0..1 * Text log of the internal execution of the tests  --></log>
</TestReport>

{doco
  "resourceType" : "TestReport",
  "id" : "<id>", // 0..1 Logical id of this artifact
  "meta" : { Meta }, // I 0..1 Metadata about the resource
  "implicitRules" : "<uri>", // I 0..1 A set of rules under which this content was created
  "language" : "<code>", // I 0..1 Language of the resource content
  "text" : { Narrative }, // I 0..1 Text summary of the resource, for human interpretation
  "contained" : [{ Resource }], // 0..* Contained, inline Resources
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
  "identifier" : { Identifier }, // 0..1 External identifier
  "name" : "<string>", // 0..1 Informal name of the executed TestReport
  "status" : "<code>", // 1..1 completed | in-progress | waiting | stopped | entered-in-error
  "testScript" : "<canonical(TestScript)>", // 1..1 Canonical URL to the version-specific TestScript that was executed to produce this TestReport
  "result" : "<code>", // 1..1 pass | fail | pending
  "score" : <decimal>, // 0..1 The final score (percentage of tests passed, so 0..100) resulting from the execution of the TestScript
  "tester" : "<string>", // 0..1 Name of the tester producing this report (Organization or individual)
  "issued" : "<dateTime>", // 0..1 When the TestScript was executed and this TestReport was generated
  "participant" : [{ BackboneElement }], // I 0..* A participant in the test execution, either the execution engine, a client, or a server
    "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
    "type" : "<code>", // 1..1 test-engine | client | server
    "uri" : "<uri>", // 0..1 The uri of the participant. An absolute URL is preferred
    "version" : "<uri>", // 0..1 The version of the participant, if known/applicable
    "display" : "<string>" // 0..1 The display name of the participant
  }
  "parameter" : [{ BackboneElement }], // I 0..* A parameter passed to the runner performing the test
    "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
    "name" : "<string>", // 1..1 Name of the parameter passed in
    "documentation" : "<markdown>" // 0..1 Documentation about the impact of the parameter
  }
  "setup" : { BackboneElement }, // I 0..1 The results of the series of required setup operations before the tests were executed
    "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
    "action" : [{ BackboneElement }] // I 1..* A setup operation or assert that was executed
      "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
      "operation" : { BackboneElement }, // I 0..1 The operation to perform
        "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
        "result" : "<code>", // 1..1 pass | skip | fail | warning | error
        "message" : "<markdown>", // 0..1 A message associated with the result
        "detail" : "<uri>" // 0..1 A link to further details on the result
      }
      "assert" : { BackboneElement } // I 0..1 The assertion to perform
        "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
        "result" : "<code>", // 1..1 pass | skip | fail | warning | error
        "message" : "<markdown>", // 0..1 A message associated with the result
        "detail" : "<string>", // 0..1 A link to further details on the result
        "requirement" : [{ BackboneElement }] // I 0..* Links or references to the testing requirements
          "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
          // link[x]: Link or reference to the testing requirement. One of these 2:
          "linkuri" : "<uri>",
          "linkcanonical" : "<canonical(Requirements)>"
        }
      }
    }
  }
  "test" : [{ BackboneElement }], // I 0..* A test executed from the test script
    "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
    "name" : "<string>", // 0..1 Tracking/logging name of this test (link to test in TestScript)
    "description" : "<string>", // 0..1 Tracking/reporting short description of the test
    "result" : "<code>", // 0..1 pass | skip | fail | warning | error
    "period" : { Period }, // 0..1 Start and End times running the test (accurate to milliseconds)
    "action" : [{ BackboneElement }], // I 1..* A test operation or assert that was performed
      "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
      "operation" : { // 0..1 The operation performed
      "assert" : { // 0..1 The assertion performed
    }
    "log" : { Attachment } // 0..1 Text log of the internal execution of the tests
  }
  "teardown" : { BackboneElement }, // I 0..1 The results of running the series of required clean up steps
    "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
    "action" : [{ BackboneElement }] // I 1..* One or more teardown operations performed
      "id" : "<id>", // 0..1 Unique id for inter-element referencing
  (Extensions - see JSON page)
  (Modifier Extensions - see JSON page)
      "operation" : { // 1..1 The teardown operation performed
    }
  }
  "presentedForm" : { Attachment }, // 0..1 A document presentation of the test outcomes (e.g. PDF)
  "log" : { Attachment } // 0..1 Text log of the internal execution of the tests
}

@prefix fhir: <http://hl7.org/fhir/> .doco


[ a fhir:TestReport;
  fhir:nodeRole fhir:treeRoot; # if this is the parser root

  fhir:id [ id ] ; # 0..1 Logical id of this artifact
  fhir:meta [ Meta ] ; # 0..1 I Metadata about the resource
  fhir:implicitRules [ uri ] ; # 0..1 I A set of rules under which this content was created
  fhir:language [ code ] ; # 0..1 I Language of the resource content
  fhir:text [ Narrative ] ; # 0..1 I Text summary of the resource, for human interpretation
  fhir:contained  ( [ Resource ] ... ) ; # 0..* Contained, inline Resources
  fhir:extension  ( [ Extension ] ... ) ; # 0..* I Additional content defined by implementations
  fhir:modifierExtension  ( [ Extension ] ... ) ; # 0..* I Extensions that cannot be ignored
  fhir:identifier [ Identifier ] ; # 0..1 External identifier
  fhir:name [ string ] ; # 0..1 Informal name of the executed TestReport
  fhir:status [ code ] ; # 1..1 completed | in-progress | waiting | stopped | entered-in-error
  fhir:testScript [ canonical(TestScript) ] ; # 1..1 Canonical URL to the version-specific TestScript that was executed to produce this TestReport
  fhir:result [ code ] ; # 1..1 pass | fail | pending
  fhir:score [ decimal ] ; # 0..1 The final score (percentage of tests passed, so 0..100) resulting from the execution of the TestScript
  fhir:tester [ string ] ; # 0..1 Name of the tester producing this report (Organization or individual)
  fhir:issued [ dateTime ] ; # 0..1 When the TestScript was executed and this TestReport was generated
  fhir:participant  ( [ BackboneElement ] ... ) ; # 0..* I A participant in the test execution, either the execution engine, a client, or a server
  fhir:parameter  ( [ BackboneElement ] ... ) ; # 0..* I A parameter passed to the runner performing the test
  fhir:setup [ BackboneElement ] ; # 0..1 I The results of the series of required setup operations before the tests were executed
  fhir:test  ( [ BackboneElement ] ... ) ; # 0..* I A test executed from the test script
  fhir:teardown [ BackboneElement ] ; # 0..1 I The results of running the series of required clean up steps
  fhir:presentedForm [ Attachment ] ; # 0..1 A document presentation of the test outcomes (e.g. PDF)
  fhir:log [ Attachment ] ; # 0..1 Text log of the internal execution of the tests
]

Differential View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. TestReport 0..* DomainResource Describes the results of a TestScript execution

Elements defined in Ancestors:id, meta, implicitRules, language, text, contained, extension, modifierExtension
... identifier Σ 0..1 Identifier External identifier
... name Σ 0..1 string Informal name of the executed TestReport
... status ?!Σ 1..1 code completed | in-progress | waiting | stopped | entered-in-error
Binding: TestReportStatus (required): The current status of the test script execution.
... result Σ 1..1 code pass | fail | pending
Binding: TestReportResult (required): The overall execution result of the TestScript.
... score Σ 0..1 decimal The final score (percentage of tests passed, so 0..100) resulting from the execution of the TestScript
... tester Σ 0..1 string Name of the tester producing this report (Organization or individual)
... issued Σ 0..1 dateTime When the TestScript was executed and this TestReport was generated
... participant 0..* BackboneElement A participant in the test execution, either the execution engine, a client, or a server
.... type 1..1 code test-engine | client | server
Binding: TestReportParticipantType (required): The type of participant.
.... uri 0..1 uri The uri of the participant. An absolute URL is preferred
.... version 0..1 uri The version of the participant, if known/applicable
.... display 0..1 string The display name of the participant
... parameter 0..* BackboneElement A parameter passed to the runner performing the test
.... name 1..1 string Name of the parameter passed in
.... documentation 0..1 markdown Documentation about the impact of the parameter
... setup 0..1 BackboneElement The results of the series of required setup operations before the tests were executed
.... action C 1..* BackboneElement A setup operation or assert that was executed
Constraints: tr-0
..... operation C 0..1 BackboneElement The operation to perform
...... result 1..1 code pass | skip | fail | warning | error
Binding: TestReportActionResult (required): The result of the execution of an individual action.
...... message 0..1 markdown A message associated with the result
...... detail 0..1 uri A link to further details on the result
..... assert C 0..1 BackboneElement The assertion to perform
...... result 1..1 code pass | skip | fail | warning | error
Binding: TestReportActionResult (required): The result of the execution of an individual action.
...... message 0..1 markdown A message associated with the result
...... detail 0..1 string A link to further details on the result
...... requirement 0..* BackboneElement Links or references to the testing requirements
....... link[x] 0..1 Link or reference to the testing requirement
........ linkUri uri
........ linkCanonical canonical(Requirements)
... test 0..* BackboneElement A test executed from the test script
.... name 0..1 string Tracking/logging name of this test (link to test in TestScript)
.... description 0..1 string Tracking/reporting short description of the test
.... result 0..1 code pass | skip | fail | warning | error
Binding: TestReportActionResult (required): The result of the execution of the test.
.... period 0..1 Period Start and End times running the test (accurate to milliseconds)
.... action C 1..* BackboneElement A test operation or assert that was performed
Constraints: tr-2
..... operation 0..1 See operation The operation performed
..... assert 0..1 See assert The assertion performed
.... log 0..1 Attachment Text log of the internal execution of the tests
... teardown 0..1 BackboneElement The results of running the series of required clean up steps
.... action 1..* BackboneElement One or more teardown operations performed
..... operation 1..1 See operation The teardown operation performed
... presentedForm 0..1 Attachment A document presentation of the test outcomes (e.g. PDF)
... log 0..1 Attachment Text log of the internal execution of the tests

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
TestReport.status Base required Test Report Status 📦6.0.0-ballot3 FHIR Std.
TestReport.result Base required Test Report Result 📦6.0.0-ballot3 FHIR Std.
TestReport.participant.​type Base required Test Report Participant Type 📦6.0.0-ballot3 FHIR Std.
TestReport.setup.action.​operation.result Base required Test Report Action Result 📦6.0.0-ballot3 FHIR Std.
TestReport.setup.action.​assert.result Base required Test Report Action Result 📦6.0.0-ballot3 FHIR Std.
TestReport.test.result Base required Test Report Action Result 📦6.0.0-ballot3 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
tr-0 error TestReport.setup.action Setup action SHALL contain either an operation or assert but not both. operation.exists() xor assert.exists()
tr-2 error TestReport.test.action Test action SHALL contain either an operation or assert but not both. operation.exists() xor assert.exists()

 

Other representations of resource: CSV, Excel

Notes:

Please refer to the Testing FHIR - How Tos for examples on working with this resource.

Name Type Description Expression
identifier token

An external identifier for the test report

TestReport.identifier
issued date

The test report generation date

TestReport.issued
participant uri

The reference to a participant in the test execution

TestReport.participant.uri
result token

The result disposition of the test execution

TestReport.result
status token

The current status of the test report

TestReport.status
tester string

The name of the testing organization

TestReport.tester
testscript reference

The test script executed to produce this report

TestReport.testScript