This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
Example TestPlan/tx-example (Turtle)
Raw Turtle (+ also see Turtle/RDF Format Specification)
Example of an automated testplan
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
<http://hl7.org/fhir/TestPlan/tx-example> a fhir:TestPlan ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "tx-example"] ; #
fhir:extension ( [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ] ;
fhir:value [
a fhir:code ;
fhir:v "fhir"
]
] ) ; #
fhir:url [ fhir:v "http://hl7.org/fhir/TestPlan/testplan-tx-example"^^xsd:anyURI] ; #
fhir:status [ fhir:v "draft"] ; #
fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; #
fhir:contact ( [
fhir:telecom ( [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ]
] )
] ) ; #
fhir:description [ fhir:v "This is a subset of the full [terminology ecosystem tests](https://github.com/HL7/fhir-tx-ecosystem-ig/tree/main/tests)"] ; #
fhir:scope ( [
fhir:reference [
fhir:v "http://hl7.org/fhir/uv/tx-ecosystem/ImplementationGuide/hl7.fhir.uv.tx-ecosystem"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/uv/tx-ecosystem/ImplementationGuide/hl7.fhir.uv.tx-ecosystem>
]
] ) ; #
fhir:runner [ fhir:v "https://github.com/hapifhir/org.hl7.fhir.core/blob/master/documentation/tx-runner.md"^^xsd:anyURI] ; #
fhir:mode ( [
fhir:code [ fhir:v "general" ] ;
fhir:description [ fhir:v "The tests a general purpose terminology server has to pass, but not codesystem specific terminology servers" ]
] [
fhir:code [ fhir:v "tx.fhir.org" ] ;
fhir:description [ fhir:v "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)" ]
] ) ; #
fhir:suite ( [
fhir:name [ fhir:v "metadata" ] ;
fhir:description [ fhir:v "These tests apply to all servers" ] ;
fhir:test ( [
fhir:name [ fhir:v "metadata" ] ;
fhir:description [ fhir:v "Check that the minimum expected things are found in the server CapabilityStatement" ] ;
fhir:operation [ fhir:v "metadata" ] ;
fhir:expected ( [
fhir:name [ fhir:v "response" ] ;
fhir:file [ fhir:v "capstmt.json" ]
] )
] )
] [
fhir:name [ fhir:v "simple-cases" ] ;
fhir:description [ fhir:v "basic tests, setting up for the more complex API tests to come" ] ;
fhir:mode [ fhir:v "general" ] ;
fhir:input ( [
fhir:file [ fhir:v "simple/codesystem-simple.json" ]
] [
fhir:file [ fhir:v "simple/valueset-all.json" ]
] ) ;
fhir:test ( [
fhir:name [ fhir:v "simple-expand-all" ] ;
fhir:description [ fhir:v "Expansion containing all the code system" ] ;
fhir:operation [ fhir:v "expand" ] ;
fhir:input ( [
fhir:name [ fhir:v "request" ] ;
fhir:file [ fhir:v "simple/simple-expand-all-request-parameters.json" ]
] ) ;
fhir:expected ( [
fhir:name [ fhir:v "response" ] ;
fhir:file [ fhir:v "simple/simple-expand-all-response-valueSet.json" ]
] )
] [
fhir:name [ fhir:v "simple-expand-isa-o2" ] ;
fhir:description [ fhir:v "Expansion containing a filter on the code system using is-a relationship with paging (tx.fhir.org internal test)" ] ;
fhir:operation [ fhir:v "expand" ] ;
fhir:mode [ fhir:v "tx.fhir.org" ] ;
fhir:input ( [
fhir:name [ fhir:v "request" ] ;
fhir:file [ fhir:v "simple/simple-expand-isa-o2-request-parameters.json" ]
] ) ;
fhir:expected ( [
fhir:name [ fhir:v "response" ] ;
fhir:file [ fhir:v "simple/simple-expand-isa-o2-response-valueSet.json" ]
] )
] )
] ) . #
# -------------------------------------------------------------------------------------
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.