R6 Ballot (2nd Draft)

Publish-box (todo)

Example TestReport/testreport-example (JSON)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

Raw JSON (canonical form + also see JSON Format Specification)

General TestReport Example

{
  "resourceType" : "TestReport",
  "id" : "testreport-example",
  "identifier" : {
    "system" : "urn:ietf:rfc:3986",
    "value" : "urn:oid:1.3.6.1.4.1.21367.2005.3.7.9878"
  },
  "name" : "TestReport Example for TestScript Example",
  "status" : "completed",
  "testScript" : "http://example.com/TestScript/testscript-example",
  "result" : "pass",
  "score" : 100.0,
  "tester" : "HL7 Execution Engine",
  "issued" : "2016-10-07T08:25:34-05:00",
  "participant" : [{
    "type" : "test-engine",
    "uri" : "http://projectcrucible.org",
    "display" : "Crucible"
  },
  {
    "type" : "server",
    "uri" : "http://fhir3.healthintersections.com.au/open",
    "display" : "HealthIntersections STU3"
  }],
  "setup" : {
    "action" : [{
      "operation" : {
        "result" : "pass",
        "message" : "DELETE Patient",
        "detail" : "http://projectcrucible.org/permalink/1"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "HTTP 204",
        "detail" : "http://projectcrucible.org/permalink/1"
      }
    },
    {
      "operation" : {
        "result" : "pass",
        "message" : "POST Patient/fixture-patient-create",
        "detail" : "http://projectcrucible.org/permalink/1"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "HTTP 201",
        "detail" : "http://projectcrucible.org/permalink/1"
      }
    }]
  },
  "test" : [{
    "id" : "01-ReadPatient",
    "name" : "Read Patient",
    "description" : "Read a Patient and validate response.",
    "action" : [{
      "operation" : {
        "result" : "pass",
        "message" : "GET Patient/fixture-patient-create",
        "detail" : "http://projectcrucible.org/permalink/2"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "HTTP 200",
        "detail" : "http://projectcrucible.org/permalink/2"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "Last-Modified Present",
        "detail" : "http://projectcrucible.org/permalink/2"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "Response is Patient",
        "detail" : "http://projectcrucible.org/permalink/2"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "Response validates",
        "detail" : "http://projectcrucible.org/permalink/2"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "Patient.name.family 'Chalmers'",
        "detail" : "http://projectcrucible.org/permalink/2"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "Patient.name.given 'Peter'",
        "detail" : "http://projectcrucible.org/permalink/2"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "Patient.name.family 'Chalmers'",
        "detail" : "http://projectcrucible.org/permalink/2"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "Patient.name.family 'Chalmers'",
        "detail" : "http://projectcrucible.org/permalink/2"
      }
    },
    {
      "assert" : {
        "result" : "pass",
        "message" : "Patient expected values.",
        "detail" : "http://projectcrucible.org/permalink/2"
      }
    }]
  }],
  "teardown" : {
    "action" : [{
      "operation" : {
        "result" : "pass",
        "message" : "DELETE Patient/fixture-patient-create.",
        "detail" : "http://projectcrucible.org/permalink/3"
      }
    }]
  }
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.