FHIR Testing IG
0.1.0-SNAPSHOT - International flag

FHIR Testing IG, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0-SNAPSHOT built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-testing-ig/ and changes regularly. See the Directory of published versions

: Example Test Plan

Page standards status: Informative

Raw json | Download

{
  "resourceType" : "TestPlan",
  "resourceDefinition" : "http://hl7.org/fhir/StructureDefinition/TestPlan|0.1.0-SNAPSHOT",
  "id" : "example",
  "language" : "en",
  "text" : {
    "status" : "generated",
    "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: TestPlan example</b></p><a name=\"example\"> </a><a name=\"hcexample\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Language: en</p></div><p><b>url</b>: <a href=\"http://hl7.org/fhir/TestPlan/example\">http://hl7.org/fhir/TestPlan/example</a></p><p><b>identifier</b>: <code>urn:oid:0.1.2.3.4.5.6.7</code>/1234</p><p><b>title</b>: Example Test Plan</p><p><b>status</b>: Draft</p><p><b>publisher</b>: HL7 International / FHIR Infrastructure</p><p><b>description</b>: </p><div><p>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.</p>\n</div><h3>Scopes</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Reference</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://hl7.org/fhir/R5/observation.html\">Observation</a></td></tr></table><p><b>runner</b>: <a href=\"http://example.org/testing/my-manual-runner\">http://example.org/testing/my-manual-runner</a></p><blockquote><p><b>suite</b></p><p><b>name</b>: Basic Observation Handling</p><blockquote><p><b>test</b></p><p><b>name</b>: obs-read</p><p><b>description</b>: Read a JSON formatted Observation</p><p><b>operation</b>: postman/GET</p></blockquote></blockquote><p><b style=\"color: maroon\">Exception Generating Narrative: Unable to resolve content reference http://hl7.org/fhir/StructureDefinition/TestPlan#TestPlan.parameter trying to resolve TestPlan.suite.test.parameter </b></p></div>"
  },
  "url" : "http://hl7.org/fhir/TestPlan/example",
  "identifier" : [
    {
      "system" : "urn:oid:0.1.2.3.4.5.6.7",
      "value" : "1234"
    }
  ],
  "title" : "Example Test Plan",
  "status" : "draft",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "description" : "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" : "http://hl7.org/fhir/StructureDefinition/Observation"
    }
  ],
  "runner" : "http://example.org/testing/my-manual-runner",
  "suite" : [
    {
      "name" : "Basic Observation Handling",
      "test" : [
        {
          "name" : "obs-read",
          "description" : "Read a JSON formatted Observation",
          "operation" : "postman/GET",
          "parameter" : [
            {
              "name" : "$id",
              "valueString" : "123124"
            },
            {
              "name" : "Accept",
              "valueString" : "application/fhir+json"
            }
          ],
          "expected" : [
            {
              "name" : "response",
              "file" : "response1.json"
            }
          ]
        }
      ]
    }
  ]
}