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

: Terminology Ecosystem Test Plan

Page standards status: Informative

Raw json | Download

{
  "resourceType" : "TestPlan",
  "resourceDefinition" : "http://hl7.org/fhir/StructureDefinition/TestPlan|0.1.0-SNAPSHOT",
  "id" : "tx-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 tx-example</b></p><a name=\"tx-example\"> </a><a name=\"hctx-example\"> </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/tx-example\">http://hl7.org/fhir/TestPlan/tx-example</a></p><p><b>title</b>: Terminology Ecosystem 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 is a subset of the full <a href=\"https://github.com/HL7/fhir-tx-ecosystem-ig/tree/main/tests\">terminology ecosystem tests</a></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><code>http://hl7.org/fhir/uv/tx-ecosystem/ImplementationGuide/hl7.fhir.uv.tx-ecosystem</code></td></tr></table><p><b>runner</b>: <a href=\"https://github.com/hapifhir/org.hl7.fhir.core/blob/master/documentation/tx-runner.md\">https://github.com/hapifhir/org.hl7.fhir.core/blob/master/documentation/tx-runner.md</a></p><blockquote><p><b>mode</b></p><p><b>code</b>: general</p><p><b>description</b>: The tests a general purpose terminology server has to pass, but not codesystem specific terminology servers</p></blockquote><blockquote><p><b>mode</b></p><p><b>code</b>: tx.fhir.org</p><p><b>description</b>: Tests that are only applicable for tx.fhir.org. Generally these are internal QA tests that haven't been made interopable (and don't need to be)</p></blockquote><blockquote><p><b>suite</b></p><p><b>name</b>: metadata</p><p><b>description</b>: These tests apply to all servers</p><blockquote><p><b>test</b></p><p><b>name</b>: metadata</p><p><b>description</b>: Check that the minimum expected things are found in the server CapabilityStatement</p><p><b>operation</b>: metadata</p></blockquote></blockquote><p><b style=\"color: maroon\">Exception Generating Narrative: Unable to resolve content reference http://hl7.org/fhir/StructureDefinition/TestPlan#TestPlan.suite.input trying to resolve TestPlan.suite.test.expected </b></p></div>"
  },
  "url" : "http://hl7.org/fhir/TestPlan/tx-example",
  "title" : "Terminology Ecosystem Test Plan",
  "status" : "draft",
  "publisher" : "HL7 International / FHIR Infrastructure",
  "description" : "This is a subset of the full [terminology ecosystem tests](https://github.com/HL7/fhir-tx-ecosystem-ig/tree/main/tests)",
  "scope" : [
    {
      "reference" : "http://hl7.org/fhir/uv/tx-ecosystem/ImplementationGuide/hl7.fhir.uv.tx-ecosystem"
    }
  ],
  "runner" : "https://github.com/hapifhir/org.hl7.fhir.core/blob/master/documentation/tx-runner.md",
  "mode" : [
    {
      "code" : "general",
      "description" : "The tests a general purpose terminology server has to pass, but not codesystem specific terminology servers"
    },
    {
      "code" : "tx.fhir.org",
      "description" : "Tests that are only applicable for tx.fhir.org. Generally these are internal QA tests that haven't been made interopable (and don't need to be)"
    }
  ],
  "suite" : [
    {
      "name" : "metadata",
      "description" : "These tests apply to all servers",
      "test" : [
        {
          "name" : "metadata",
          "description" : "Check that the minimum expected things are found in the server CapabilityStatement",
          "operation" : "metadata",
          "expected" : [
            {
              "name" : "response",
              "file" : "capstmt.json"
            }
          ]
        }
      ]
    },
    {
      "name" : "simple-cases",
      "description" : "basic tests, setting up for the more complex API tests to come",
      "mode" : "general",
      "input" : [
        {
          "file" : "simple/codesystem-simple.json"
        },
        {
          "file" : "simple/valueset-all.json"
        }
      ],
      "test" : [
        {
          "name" : "simple-expand-all",
          "description" : "Expansion containing all the code system",
          "operation" : "expand",
          "input" : [
            {
              "name" : "request",
              "file" : "simple/simple-expand-all-request-parameters.json"
            }
          ],
          "expected" : [
            {
              "name" : "response",
              "file" : "simple/simple-expand-all-response-valueSet.json"
            }
          ]
        },
        {
          "name" : "simple-expand-isa-o2",
          "description" : "Expansion containing a filter on the code system using is-a relationship with paging (tx.fhir.org internal test)",
          "operation" : "expand",
          "mode" : "tx.fhir.org",
          "input" : [
            {
              "name" : "request",
              "file" : "simple/simple-expand-isa-o2-request-parameters.json"
            }
          ],
          "expected" : [
            {
              "name" : "response",
              "file" : "simple/simple-expand-isa-o2-response-valueSet.json"
            }
          ]
        }
      ]
    }
  ]
}