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 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:scope ( [
fhir:artifact [
a fhir:canonical ;
fhir:v "http://hl7.org/fhir/StructureDefinition/Observation"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/StructureDefinition/Observation>
]
] ) ; #
fhir:testCase ( [
fhir:key [ fhir:v "obs-read" ] ;
fhir:testRun ( [
fhir:narrative [ fhir:v "Read a JSON formatted Observation" ] ;
fhir:script [
fhir:language [
fhir:coding ( [
fhir:system [ fhir:v "http://hl7.org/fhir/testplan-script-language"^^xsd:anyURI ] ;
fhir:code [ fhir:v "postman" ] ;
fhir:display [ fhir:v "Postman" ]
] )
] ;
fhir:source [
a fhir:string ;
fhir:v "Postman test script contents"
]
]
] ) ;
fhir:testData ( [
fhir:type [ ] ;
fhir:source [
a fhir:string ;
fhir:v "Description of observation test data"
]
] )
] ) . #
# -------------------------------------------------------------------------------------
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.