This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
Example TestPlan/example (Turtle)
Raw Turtle (+ also see Turtle/RDF Format Specification)
Example of manual 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/example> a fhir:TestPlan ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "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-example"^^xsd:anyURI] ; #
fhir:identifier ( [
fhir:system [ fhir:v "urn:oid:0.1.2.3.4.5.6.7"^^xsd:anyURI ] ;
fhir:value [ fhir:v "1234" ]
] ) ; #
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 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."] ; #
fhir:scope ( [
fhir:reference [
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>
]
] ) ; #
fhir:runner [ fhir:v "http://example.org/testing/my-manual-runner"^^xsd:anyURI] ; #
fhir:suite ( [
fhir:name [ fhir:v "Basic Observation Handling" ] ;
fhir:test ( [
fhir:name [ fhir:v "obs-read" ] ;
fhir:description [ fhir:v "Read a JSON formatted Observation" ] ;
fhir:operation [ fhir:v "postman/GET" ] ;
fhir:parameter ( [
fhir:name [ fhir:v "$id" ] ;
fhir:value [
a fhir:string ;
fhir:v "123124"
]
] [
fhir:name [ fhir:v "Accept" ] ;
fhir:value [
a fhir:string ;
fhir:v "application/fhir+json"
]
] ) ;
fhir:expected ( [
fhir:name [ fhir:v "response" ] ;
fhir:file [ fhir:v "response1.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.