http://hl7.org/fhir/StructureDefinition/TestReport|4.0.1

A summary of information based on the results of executing a TestScript.
description: A summary of information based on the results of executing a TestScript.
derivation: specialization
name: TestReport
type: TestReport
elements:
  tester: {short: Name of the tester producing this report (Organization or individual), isSummary: true, index: 6}
  name: {short: Informal name of the executed TestScript, isSummary: true, index: 1}
  testScript: {short: Reference to the  version-specific TestScript that was executed to produce this TestReport, isSummary: true, index: 3}
  participant:
    short: A participant in the test execution, either the execution engine, a client, or a server
    array: true
    index: 8
    elements:
      type:
        short: test-engine | client | server
        binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/report-participant-type|4.0.1'}
        index: 9
      uri: {short: The uri of the participant. An absolute URL is preferred, index: 10}
      display: {short: The display name of the participant, index: 11}
    required: [uri, type]
  setup:
    short: The results of the series of required setup operations before the tests were executed
    index: 12
    elements:
      action:
        constraint:
          inv-1: {human: Setup action SHALL contain either an operation or assert but not both., severity: error, expression: operation.exists() xor assert.exists()}
        min: 1
        short: A setup operation or assert that was executed
        array: true
        index: 13
        elements:
          operation:
            short: The operation to perform
            index: 14
            elements:
              result:
                short: pass | skip | fail | warning | error
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/report-action-result-codes|4.0.1'}
                index: 15
              message: {short: A message associated with the result, index: 16}
              detail: {short: A link to further details on the result, index: 17}
            required: [result]
          assert:
            short: The assertion to perform
            index: 18
            elements:
              result:
                short: pass | skip | fail | warning | error
                binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/report-action-result-codes|4.0.1'}
                index: 19
              message: {short: A message associated with the result, index: 20}
              detail: {short: A link to further details on the result, index: 21}
            required: [result]
    required: [action]
  status:
    isModifier: true
    short: completed | in-progress | waiting | stopped | entered-in-error
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/report-status-codes|4.0.1'}
    isModifierReason: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
    isSummary: true
    index: 2
  result:
    short: pass | fail | pending
    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/report-result-codes|4.0.1'}
    isSummary: true
    index: 4
  score: {short: The final score (percentage of tests passed) resulting from the execution of the TestScript, isSummary: true, index: 5}
  identifier: {short: External identifier, isSummary: true, index: 0}
  issued: {short: When the TestScript was executed and this TestReport was generated, isSummary: true, index: 7}
  teardown:
    short: The results of running the series of required clean up steps
    index: 28
    elements:
      action:
        min: 1
        short: One or more teardown operations performed
        array: true
        index: 29
        elements:
          operation:
            elementReference: ['http://hl7.org/fhir/StructureDefinition/TestReport', elements, setup, elements, action, elements, operation]
            short: The teardown operation performed
            index: 30
        required: [operation]
    required: [action]
  test:
    short: A test executed from the test script
    array: true
    index: 22
    elements:
      name: {short: Tracking/logging name of this test, index: 23}
      description: {short: Tracking/reporting short description of the test, index: 24}
      action:
        constraint:
          inv-2: {human: Test action SHALL contain either an operation or assert but not both., severity: error, expression: operation.exists() xor assert.exists()}
        min: 1
        short: A test operation or assert that was performed
        array: true
        index: 25
        elements:
          operation:
            elementReference: ['http://hl7.org/fhir/StructureDefinition/TestReport', elements, setup, elements, action, elements, operation]
            short: The operation performed
            index: 26
          assert:
            elementReference: ['http://hl7.org/fhir/StructureDefinition/TestReport', elements, setup, elements, action, elements, assert]
            short: The assertion performed
            index: 27
    required: [action]
class: resource
kind: resource
url: http://hl7.org/fhir/StructureDefinition/TestReport
base: http://hl7.org/fhir/StructureDefinition/DomainResource
version: 4.0.1
required: [testScript, status, result]