FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packagehl7.fhir.uv.testing
Resource TypeTestPlan
IdTestPlan-tx-example.json
FHIR VersionR6
Sourcehttps://build.fhir.org/ig/HL7/fhir-testing-ig/TestPlan-tx-example.html
URLhttp://hl7.org/fhir/TestPlan/tx-example
Statusdraft
TitleTerminology Ecosystem Test Plan
Realmuv
Authorityhl7
DescriptionThis is a subset of the full [terminology ecosystem tests](https://github.com/HL7/fhir-tx-ecosystem-ig/tree/main/tests)

Resources that use this resource

No resources found


Resources that this resource uses

No resources found


Narrative

Note: links and images are rebased to the (stated) source

Generated Narrative: TestPlan tx-example

Language: en

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

scope

reference: CodeSystem

scope

reference: 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

mode

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

Expecteds

-NameFile
*responsecapstmt.json

suite

name: simple-cases

description: basic tests, setting up for the more complex API tests to come

mode: general

input

file: simple/codesystem-simple.json

input

file: simple/valueset-all.json

test

name: simple-expand-all

description: Expansion containing all the code system

operation: expand

Inputs

-NameFile
*requestsimple/simple-expand-all-request-parameters.json

Expecteds

-NameFile
*responsesimple/simple-expand-all-response-valueSet.json

test

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

Inputs

-NameFile
*requestsimple/simple-expand-isa-o2-request-parameters.json

Expecteds

-NameFile
*responsesimple/simple-expand-isa-o2-response-valueSet.json

Source1

{
  "resourceType": "TestPlan",
  "resourceDefinition": "http://hl7.org/fhir/StructureDefinition/TestPlan|0.1.0-SNAPSHOT",
  "id": "tx-example",
  "language": "en",
  "text": {
    "status": "generated",
    "div": "<!-- snip (see above) -->"
  },
  "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"
            }
          ]
        }
      ]
    }
  ]
}