FHIR CI-Build

This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions

Example TestReport/testreport-example (XML)

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

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

General TestReport Example (id = "testreport-example")

<?xml version="1.0" encoding="UTF-8"?>

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

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.