{
  "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><blockquote><p><b>scope</b></p><p><b>reference</b>: <a href=\"http://hl7.org/fhir/R5/codesystem.html\">CodeSystem</a></p></blockquote><blockquote><p><b>scope</b></p><p><b>reference</b>: <a href=\"http://hl7.org/fhir/R5/valueset.html\">ValueSet</a></p></blockquote><p><b>runner</b>: <a href=\"https://example.org/hapifhir/org.hl7.fhir.core/blob/master/documentation/tx-runner.md\">https://example.org/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><h3>Expecteds</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>File</b></td></tr><tr><td style=\"display: none\">*</td><td>response</td><td>capstmt.json</td></tr></table></blockquote></blockquote><blockquote><p><b>suite</b></p><p><b>name</b>: simple-cases</p><p><b>description</b>: basic tests, setting up for the more complex API tests to come</p><p><b>mode</b>: general</p><blockquote><p><b>input</b></p><p><b>file</b>: simple/codesystem-simple.json</p></blockquote><blockquote><p><b>input</b></p><p><b>file</b>: simple/valueset-all.json</p></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: simple-expand-all</p><p><b>description</b>: Expansion containing all the code system</p><p><b>operation</b>: expand</p><h3>Inputs</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>File</b></td></tr><tr><td style=\"display: none\">*</td><td>request</td><td>simple/simple-expand-all-request-parameters.json</td></tr></table><h3>Expecteds</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>File</b></td></tr><tr><td style=\"display: none\">*</td><td>response</td><td>simple/simple-expand-all-response-valueSet.json</td></tr></table></blockquote><blockquote><p><b>test</b></p><p><b>name</b>: simple-expand-isa-o2</p><p><b>description</b>: Expansion containing a filter on the code system using is-a relationship with paging (tx.fhir.org internal test)</p><p><b>operation</b>: expand</p><p><b>mode</b>: tx.fhir.org</p><h3>Inputs</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>File</b></td></tr><tr><td style=\"display: none\">*</td><td>request</td><td>simple/simple-expand-isa-o2-request-parameters.json</td></tr></table><h3>Expecteds</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>File</b></td></tr><tr><td style=\"display: none\">*</td><td>response</td><td>simple/simple-expand-isa-o2-response-valueSet.json</td></tr></table></blockquote></blockquote></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/StructureDefinition/CodeSystem"
  },
  {
    "reference" : "http://hl7.org/fhir/StructureDefinition/ValueSet"
  }],
  "runner" : "https://example.org/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"
      }]
    }]
  }]
}