# TestReport

Canonical page: https://docs.ovok.com/api/fhir/r4/test-report

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

These interaction paths describe standard FHIR R4 patterns. Availability can depend on the API capabilities enabled for your Ovok project.

| **Interaction** | **Method** | **Path** |
| --- | --- | --- |
| Read | `GET` | `/fhir/R4/TestReport/[id]` |
| Vread | `GET` | `/fhir/R4/TestReport/[id]/_history/[vid]` |
| Update | `PUT` | `/fhir/R4/TestReport/[id]` |
| Patch | `PATCH` | `/fhir/R4/TestReport/[id]` |
| Delete | `DELETE` | `/fhir/R4/TestReport/[id]` |
| Create | `POST` | `/fhir/R4/TestReport` |
| Search | `GET` | `/fhir/R4/TestReport` |
| History | `GET` | `/fhir/R4/TestReport/[id]/_history` |

## Top-level elements [#top-level-elements]

| **Element** | **Type** | **Cardinality** | **Description** |
| --- | --- | --- | --- |
| <span id="element-id"></span>`id` | [string](/fhir-elements/primitive/string) | `0..1` | Logical id of this artifact |
| <span id="element-meta"></span>`meta` | [Meta](/fhir-elements/complex/meta) | `0..1` | Metadata about the resource |
| <span id="element-implicit-rules"></span>`implicitRules` | [uri](/fhir-elements/primitive/uri) | `0..1` | A set of rules under which this content was created |
| <span id="element-language"></span>`language` | [code](/fhir-elements/primitive/code) | `0..1` | Language of the resource content |
| <span id="element-text"></span>`text` | [Narrative](/fhir-elements/complex/narrative) | `0..1` | Text summary of the resource, for human interpretation |
| <span id="element-contained"></span>`contained` | [Resource](/fhir-elements/foundation/resource) | `0..*` | Contained, inline Resources |
| <span id="element-extension"></span>`extension` | [Extension](/fhir-elements/complex/extension) | `0..*` | Additional content defined by implementations |
| <span id="element-modifier-extension"></span>`modifierExtension` | [Extension](/fhir-elements/complex/extension) | `0..*` | Extensions that cannot be ignored |
| <span id="element-identifier"></span>`identifier` | [Identifier](/fhir-elements/complex/identifier) | `0..1` | External identifier |
| <span id="element-name"></span>`name` | [string](/fhir-elements/primitive/string) | `0..1` | Informal name of the executed TestScript |
| <span id="element-status"></span>`status` | [code](/fhir-elements/primitive/code) | `1..1` | completed \| in-progress \| waiting \| stopped \| entered-in-error |
| <span id="element-test-script"></span>`testScript` | [Reference](/fhir-elements/complex/reference) | `1..1` | Reference to the  version-specific TestScript that was executed to produce this TestReport |
| <span id="element-result"></span>`result` | [code](/fhir-elements/primitive/code) | `1..1` | pass \| fail \| pending |
| <span id="element-score"></span>`score` | [decimal](/fhir-elements/primitive/decimal) | `0..1` | The final score (percentage of tests passed) resulting from the execution of the TestScript |
| <span id="element-tester"></span>`tester` | [string](/fhir-elements/primitive/string) | `0..1` | Name of the tester producing this report (Organization or individual) |
| <span id="element-issued"></span>`issued` | [dateTime](/fhir-elements/primitive/date-time) | `0..1` | When the TestScript was executed and this TestReport was generated |
| <span id="element-participant"></span>`participant` | [BackboneElement](/fhir-elements/complex/backbone-element) | `0..*` | A participant in the test execution, either the execution engine, a client, or a server |
| <span id="element-setup"></span>`setup` | [BackboneElement](/fhir-elements/complex/backbone-element) | `0..1` | The results of the series of required setup operations before the tests were executed |
| <span id="element-test"></span>`test` | [BackboneElement](/fhir-elements/complex/backbone-element) | `0..*` | A test executed from the test script |
| <span id="element-teardown"></span>`teardown` | [BackboneElement](/fhir-elements/complex/backbone-element) | `0..1` | The results of running the series of required clean up steps |

## Resource-specific search parameters [#resource-specific-search-parameters]

| **Parameter** | **Type** | **Description** |
| --- | --- | --- |
| `identifier` | token | An external identifier for the test report |
| `issued` | date | The test report generation date |
| `participant` | uri | The reference to a participant in the test execution |
| `result` | token | The result disposition of the test execution |
| `tester` | string | The name of the testing organization |
| `testscript` | reference | The test script executed to produce this report |

## Reference [#reference]

Official FHIR R4 spec: [TestReport](https://hl7.org/fhir/R4/testreport.html).  
Maturity: Draft (FMM 0).
