PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.core@1.8.0
    http://hl7.org/fhir/StructureDefinition/TestReport
description: Base StructureDefinition for TestReport Resource
package_name: hl7.fhir.core
derivation: specialization
name: TestReport
type: TestReport
elements:
  tester: {short: Name of the tester producing this report (Organization or individual), comments: 'Usually an organization, but may be an individual. This item SHOULD be populated unless the information is available from context.', type: string, isSummary: true, index: 4}
  name: {short: Informal name of the executed TestScript, comments: Not expected to be globally unique., type: string, isSummary: true, index: 1}
  testScript:
    short: Reference to the  version-specific TestScript that was executed to produce this TestReport
    refers: ['http://hl7.org/fhir/StructureDefinition/TestScript']
    type: Reference
    isSummary: true
    index: 5
  participant:
    type: BackboneElement
    short: A participant in the test execution, either the execution engine, a client, or a server
    array: true
    index: 7
    elements:
      type: {type: code, short: test-engine | client | server, index: 8}
      uri: {type: uri, short: The uri of the participant. An absolute URL is preferred, index: 9}
      display: {type: string, short: The display name of the participant, index: 10}
    required: [uri, type]
  setup:
    type: BackboneElement
    short: The results of the series of required setup operations before the tests were executed
    index: 11
    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
        index: 12
        comments: An action should contain either an operation or an assertion but not both.  It can contain any number of variables.
        type: BackboneElement
        array: true
        elements:
          operation:
            type: BackboneElement
            short: The operation to perform
            index: 13
            elements:
              result: {type: code, short: pass | skip | fail | warning | error, index: 14}
              message: {type: markdown, short: A message associated with the result, index: 15}
              detail: {type: uri, short: A link to further details on the result, index: 16}
            required: [result]
          assert:
            type: BackboneElement
            short: The assertion to perform
            index: 17
            elements:
              result: {type: code, short: pass | skip | fail | warning | error, index: 18}
              message: {type: markdown, short: A message associated with the result, index: 19}
              detail: {type: string, short: A link to further details on the result, index: 20}
            required: [result]
    required: [action]
  status: {isModifier: true, short: complete | pending | error, type: code, isSummary: true, index: 2}
  score: {type: decimal, short: The final score (percentage of tests passed) resulting from the execution of the TestScript, isSummary: true, index: 3}
  identifier: {short: External identifier, type: Identifier, isSummary: true, index: 0}
  issued: {short: When the TestScript was executed and this TestReport was generated, comments: Additional specific dates may be added as extensions., type: dateTime, isSummary: true, index: 6}
  teardown:
    type: BackboneElement
    short: The results of running the series of required clean up steps
    index: 27
    elements:
      action:
        min: 1
        short: One or more teardown operations performed
        index: 28
        comments: An action should contain either an operation or an assertion but not both.  It can contain any number of variables.
        type: BackboneElement
        array: true
        elements:
          operation:
            short: The teardown operation performed
            elementReference: ['http://hl7.org/fhir/StructureDefinition/TestReport', elements, setup, elements, action, elements, operation]
            index: 29
        required: [operation]
    required: [action]
  test:
    type: BackboneElement
    short: A test executed from the test script
    array: true
    index: 21
    elements:
      name: {type: string, short: Tracking/logging name of this test, index: 22}
      description: {type: string, short: Tracking/reporting short description of the test, index: 23}
      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
        index: 24
        comments: An action should contain either an operation or an assertion but not both.  It can contain any number of variables.
        type: BackboneElement
        array: true
        elements:
          operation:
            short: The operation performed
            elementReference: ['http://hl7.org/fhir/StructureDefinition/TestReport', elements, setup, elements, action, elements, operation]
            index: 25
          assert:
            short: The assertion performed
            elementReference: ['http://hl7.org/fhir/StructureDefinition/TestReport', elements, setup, elements, action, elements, assert]
            index: 26
    required: [action]
package_version: 1.8.0
class: resource
kind: resource
url: http://hl7.org/fhir/StructureDefinition/TestReport
base: http://hl7.org/fhir/StructureDefinition/DomainResource
version: null
required: [testScript, status]