FHIR Testing IG
0.1.0-snapshot1 - Draft 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-snapshot1 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-snapshot1
Standards status: Draft 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:

  • This Resource is not used by any profiles in this Specification

You can also check for usages in the FHIR IG Statistics

Formal Views of Resource Content

Description Differentials, Snapshots, and other representations.

This structure is derived from DomainResource

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

Elements defined in Ancestors:id, meta, implicitRules, language, text, contained, extension, modifierExtension
This resource is an additional resource
TestReport.identifier This element is included in summaries. 0..1 Identifier External identifier
TestReport.name This element is included in summaries. 0..1 string Informal name of the executed TestReport
TestReport.description 0..1 markdown Natural language description of the test report
TestReport.testScript This element is included in summaries. 1..1 canonical(Test Script) Canonical URL to the version-specific TestScript that was executed to produce this TestReport
TestReport.result This element is included in summaries. 1..1 code pass | fail | pending
Binding: TestReportResultValueSet (required): The overall execution result of the TestScript.
TestReport.score This element is included in summaries. 0..1 decimal The final score (percentage of tests passed, so 0..100) resulting from the execution of the TestScript
TestReport.tester This element is included in summaries. 0..1 string Name of the tester producing this report (Organization or individual)
TestReport.issued This element is included in summaries. 0..1 dateTime When the TestScript was executed and this TestReport was generated
TestReport.participant 0..* BackboneElement A participant in the test execution, either the execution engine, a client, or a server
TestReport.participant.type 1..1 code test-engine | client | server
Binding: TestReportParticipantTypeValueSet (required): The type of participant.
TestReport.participant.uri 0..1 uri The uri of the participant. An absolute URL is preferred
TestReport.participant.version 0..1 uri The version of the participant, if known/applicable
TestReport.participant.display 0..1 string The display name of the participant
TestReport.parameter 0..* BackboneElement A parameter passed to the runner performing the test
TestReport.parameter.name 1..1 string Name of the parameter passed in
TestReport.parameter.documentation 0..1 markdown Documentation about the impact of the parameter
TestReport.setup 0..1 BackboneElement The results of the series of required setup operations before the tests were executed
TestReport.setup.action C 1..* BackboneElement A setup operation or assert that was executed
TestReport.setup.action.operation C 0..1 BackboneElement The operation to perform
TestReport.setup.action.operation.result 1..1 code pass | skip | fail | warning | error
Binding: TestReportActionResultValueSet (required): The result of the execution of an individual action.
TestReport.setup.action.operation.message 0..1 markdown A message associated with the result
TestReport.setup.action.operation.detail 0..1 uri A link to further details on the result
TestReport.setup.action.assert C 0..1 BackboneElement The assertion to perform
TestReport.setup.action.assert.result 1..1 code pass | skip | fail | warning | error
Binding: TestReportActionResultValueSet (required): The result of the execution of an individual action.
TestReport.setup.action.assert.message 0..1 markdown A message associated with the result
TestReport.setup.action.assert.detail 0..1 string A link to further details on the result
TestReport.setup.action.assert.requirement 0..* BackboneElement Links or references to the testing requirements
TestReport.setup.action.assert.requirement.link[x] 0..1 Link or reference to the testing requirement
TestReport.setup.action.assert.requirement.link[x].linkUri uri
TestReport.setup.action.assert.requirement.link[x].linkCanonical canonical(Requirements)
TestReport.test 0..* BackboneElement A test executed from the test script
TestReport.test.name 0..1 string Tracking/logging name of this test (link to test in TestScript)
TestReport.test.description 0..1 string Tracking/reporting short description of the test
TestReport.test.result 0..1 code pass | skip | fail | warning | error
Binding: TestReportActionResultValueSet (required): The result of the execution of the test.
TestReport.test.period 0..1 Period Start and End times running the test (accurate to milliseconds)
TestReport.test.action C 1..* BackboneElement A test operation or assert that was performed
TestReport.test.action.operation 0..1 See operation The operation performed
TestReport.test.action.assert 0..1 See assert The assertion performed
TestReport.test.log 0..1 Attachment Text log of the internal execution of the tests
TestReport.teardown 0..1 BackboneElement The results of running the series of required clean up steps
TestReport.teardown.action 1..* BackboneElement One or more teardown operations performed
TestReport.teardown.action.operation 1..1 See operation The teardown operation performed
TestReport.presentedForm 0..1 Attachment A document presentation of the test outcomes (e.g. PDF)
TestReport.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 Value Set 📍0.1.0-snapshot1 This IG
TestReport.result Base required Test Report Result Value Set 📍0.1.0-snapshot1 This IG
TestReport.participant.​type Base required Test Report Participant Type Value Set 📍0.1.0-snapshot1 This IG
TestReport.setup.action.​operation.result Base required Test Report Action Result Value Set 📍0.1.0-snapshot1 This IG
TestReport.setup.action.​assert.result Base required Test Report Action Result Value Set 📍0.1.0-snapshot1 This IG
TestReport.test.result Base required Test Report Action Result Value Set 📍0.1.0-snapshot1 This IG

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  -->
 <description value="[markdown]"/><!-- 0..1 * Natural language description of the test report  -->
 <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="[string]"/><!-- 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="[string]"/><!-- 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="[string]"/><!-- 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="[string]"/><!-- 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="[string]"/><!-- 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="[string]"/><!-- 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="[string]"/><!-- 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="[string]"/><!-- 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="[string]"/><!-- 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="[string]"/><!-- 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="[string]"/><!-- 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
  "description" : "<markdown>", // 0..1 Natural language description of the test report
  "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" : "<string>", // 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" : "<string>", // 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" : "<string>", // 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" : "<string>", // 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" : "<string>", // 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" : "<string>", // 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" : "<string>", // 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" : "<string>", // 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" : "<string>", // 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" : "<string>", // 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" : "<string>", // 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:description [ markdown ] ; # 0..1 Natural language description of the test report
  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

This structure is derived from DomainResource

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

Elements defined in Ancestors:id, meta, implicitRules, language, text, contained, extension, modifierExtension
This resource is an additional resource
TestReport.identifier This element is included in summaries. 0..1 Identifier External identifier
TestReport.name This element is included in summaries. 0..1 string Informal name of the executed TestReport
TestReport.description 0..1 markdown Natural language description of the test report
TestReport.status This element is a modifier element. This element is included in summaries. 1..1 code completed | in-progress | waiting | stopped | entered-in-error
Binding: TestReportStatusValueSet (required): The current status of the test script execution.
TestReport.testScript This element is included in summaries. 1..1 canonical(Test Script) Canonical URL to the version-specific TestScript that was executed to produce this TestReport
TestReport.result This element is included in summaries. 1..1 code pass | fail | pending
Binding: TestReportResultValueSet (required): The overall execution result of the TestScript.
TestReport.score This element is included in summaries. 0..1 decimal The final score (percentage of tests passed, so 0..100) resulting from the execution of the TestScript
TestReport.tester This element is included in summaries. 0..1 string Name of the tester producing this report (Organization or individual)
TestReport.issued This element is included in summaries. 0..1 dateTime When the TestScript was executed and this TestReport was generated
TestReport.participant 0..* BackboneElement A participant in the test execution, either the execution engine, a client, or a server
TestReport.participant.type 1..1 code test-engine | client | server
Binding: TestReportParticipantTypeValueSet (required): The type of participant.
TestReport.participant.uri 0..1 uri The uri of the participant. An absolute URL is preferred
TestReport.participant.version 0..1 uri The version of the participant, if known/applicable
TestReport.participant.display 0..1 string The display name of the participant
TestReport.parameter 0..* BackboneElement A parameter passed to the runner performing the test
TestReport.parameter.name 1..1 string Name of the parameter passed in
TestReport.parameter.documentation 0..1 markdown Documentation about the impact of the parameter
TestReport.setup 0..1 BackboneElement The results of the series of required setup operations before the tests were executed
TestReport.setup.action C 1..* BackboneElement A setup operation or assert that was executed
TestReport.setup.action.operation C 0..1 BackboneElement The operation to perform
TestReport.setup.action.operation.result 1..1 code pass | skip | fail | warning | error
Binding: TestReportActionResultValueSet (required): The result of the execution of an individual action.
TestReport.setup.action.operation.message 0..1 markdown A message associated with the result
TestReport.setup.action.operation.detail 0..1 uri A link to further details on the result
TestReport.setup.action.assert C 0..1 BackboneElement The assertion to perform
TestReport.setup.action.assert.result 1..1 code pass | skip | fail | warning | error
Binding: TestReportActionResultValueSet (required): The result of the execution of an individual action.
TestReport.setup.action.assert.message 0..1 markdown A message associated with the result
TestReport.setup.action.assert.detail 0..1 string A link to further details on the result
TestReport.setup.action.assert.requirement 0..* BackboneElement Links or references to the testing requirements
TestReport.setup.action.assert.requirement.link[x] 0..1 Link or reference to the testing requirement
TestReport.setup.action.assert.requirement.link[x].linkUri uri
TestReport.setup.action.assert.requirement.link[x].linkCanonical canonical(Requirements)
TestReport.test 0..* BackboneElement A test executed from the test script
TestReport.test.name 0..1 string Tracking/logging name of this test (link to test in TestScript)
TestReport.test.description 0..1 string Tracking/reporting short description of the test
TestReport.test.result 0..1 code pass | skip | fail | warning | error
Binding: TestReportActionResultValueSet (required): The result of the execution of the test.
TestReport.test.period 0..1 Period Start and End times running the test (accurate to milliseconds)
TestReport.test.action C 1..* BackboneElement A test operation or assert that was performed
TestReport.test.action.operation 0..1 See operation The operation performed
TestReport.test.action.assert 0..1 See assert The assertion performed
TestReport.test.log 0..1 Attachment Text log of the internal execution of the tests
TestReport.teardown 0..1 BackboneElement The results of running the series of required clean up steps
TestReport.teardown.action 1..* BackboneElement One or more teardown operations performed
TestReport.teardown.action.operation 1..1 See operation The teardown operation performed
TestReport.presentedForm 0..1 Attachment A document presentation of the test outcomes (e.g. PDF)
TestReport.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 Value Set 📍0.1.0-snapshot1 This IG
TestReport.result Base required Test Report Result Value Set 📍0.1.0-snapshot1 This IG
TestReport.participant.​type Base required Test Report Participant Type Value Set 📍0.1.0-snapshot1 This IG
TestReport.setup.action.​operation.result Base required Test Report Action Result Value Set 📍0.1.0-snapshot1 This IG
TestReport.setup.action.​assert.result Base required Test Report Action Result Value Set 📍0.1.0-snapshot1 This IG
TestReport.test.result Base required Test Report Action Result Value Set 📍0.1.0-snapshot1 This IG

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