TestReport | Medplum
On this page
A summary of information based on the results of executing a TestScript.
Elements
| Name | Required | Type | Description |
|---|---|---|---|
| identifier | Identifier | External identifier Details Identifier for the TestScript assigned for external purposes outside the context of FHIR. | |
| name | string | Informal name of the executed TestScript Details A free text natural language name identifying the executed TestScript. Not expected to be globally unique. | |
| status | ✓ | code | completed | in-progress | waiting | stopped | entered-in-error Details The current state of this test report. The status represents where the execution is currently within the test script execution life cycle. This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid. |
| testScript | ✓ | Reference< TestScript > | Reference to the version-specific TestScript that was executed to produce this TestReport Details Ideally this is an absolute URL that is used to identify the version-specific TestScript that was executed, matching the TestScript.url. |
| result | ✓ | code | pass | fail | pending Details The overall result from the execution of the TestScript. The pass and fail result represents a completed test script execution. The pending result represents a test script execution that has not yet started or is currently in progress. |
| score | decimal | The final score (percentage of tests passed) resulting from the execution of the TestScript Details The final score (percentage of tests passed) resulting from the execution of the TestScript. | |
| tester | string | Name of the tester producing this report (Organization or individual) Details Name of the tester producing this report (Organization or individual). Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context. | |
| issued | dateTime | When the TestScript was executed and this TestReport was generated Details When the TestScript was executed and this TestReport was generated. Additional specific dates may be added as extensions. | |
| participant | TestReportParticipant[] | A participant in the test execution, either the execution engine, a client, or a server Details A participant in the test execution, either the execution engine, a client, or a server. | |
| id | string | Unique id for inter-element referencing Details Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces. | |
| extension | Extension[] | Additional content defined by implementations Details May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. | |
| modifierExtension | Extension[] | Extensions that cannot be ignored even if unrecognized Details May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself). There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone. | |
| type | ✓ | code | test-engine | client | server Details The type of participant. |
| uri | ✓ | uri | The uri of the participant. An absolute URL is preferred Details The uri of the participant. An absolute URL is preferred. |
| display | string | The display name of the participant Details The display name of the participant. | |
| setup | TestReportSetup | The results of the series of required setup operations before the tests were executed Details The results of the series of required setup operations before the tests were executed. |
Search Parameters
| 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 |
| tester | string | The name of the testing organization | TestReport.tester |
| testscript | reference | The test script executed to produce this report | TestReport.testScript |
Inherited Elements
| Name | Required | Type | Description |
|---|---|---|---|
| id | string | Logical id of this artifact Details The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes. The only time that a resource does not have an id is when it is being submitted to the server using a create operation. | |
| meta | Meta | Metadata about the resource Details The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource. | |
| implicitRules | uri | A set of rules under which this content was created Details A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc. | |
| language | code | Language of the resource content Details The base language in which the resource is written. | |
| text | Narrative | Text summary of the resource, for human interpretation Details A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. | |
| contained | Resource[] | Contained, inline Resources Details These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently. | |
| extension | Extension[] | Additional content defined by implementations Details May be used to represent additional information that is not part of the basic definition of the resource. | |
| modifierExtension | Extension[] | Extensions that cannot be ignored Details May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element. |
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.
Background
Implementers should be familiar with the testing concepts and descriptions found in Testing FHIR before working with this resource.