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

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