FHIR CI-Build

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

Example TestPlan/example (XML)

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

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

Example of manual testplan (id = "example")

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

<TestPlan xmlns="http://hl7.org/fhir">
  <id value="example"/> 
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/> 
  </extension> 
  <url value="http://hl7.org/fhir/TestPlan/testplan-example"/> 
  <identifier> 
    <system value="urn:oid:0.1.2.3.4.5.6.7"/> 
    <value value="1234"/> 
  </identifier> 
  <status value="draft"/> 
  <publisher value="HL7 International / FHIR Infrastructure"/> 
  <contact> 
    <telecom> 
      <system value="url"/> 
      <value value="http://www.hl7.org/Special/committees/fiwg"/> 
    </telecom> 
  </contact> 
  <description value="This test plan describes a manual test that a given observation can be read from
   the server using POSTMan. The user is instructed in the documentation to perform
   a POSTMan get with the $id in the URL and the Accept header, and compare with the
   expected output."/> 
  <scope> 
    <reference value="http://hl7.org/fhir/StructureDefinition/Observation"/> 
  </scope> 
  <runner value="http://example.org/testing/my-manual-runner"/> 
  <suite> 
    <name value="Basic Observation Handling"/> 
    <test> 
      <name value="obs-read"/> 
      <description value="Read a JSON formatted Observation"/> 
      <operation value="postman/GET"/> 
      <parameter> 
        <name value="$id"/> 
        <valueString value="123124"/> 
      </parameter> 
      <parameter> 
        <name value="Accept"/> 
        <valueString value="application/fhir+json"/> 
      </parameter> 
      <expected> 
        <name value="response"/> 
        <file value="response1.json"/> 
      </expected> 
    </test> 
  </suite> 
</TestPlan> 

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.