Release 5 R6 Ballot (3rd Draft)
This page is part of the FHIR Specification (v5.0.0: R5 - STU ). This is the current published version in it's permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Publish-box (todo)

Example TestPlan/example (Turtle)

FHIR Infrastructure Work Group Maturity Level : N/A Standards Status : Informative Compartments : No defined compartments

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

#    insert contents here   

[a fhir:TestPlan ;

<http://hl7.org/fhir/TestPlan/example> a fhir:TestPlan ;

  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: TestPlan</b><a name=\"example\"> </a></p><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\">Resource TestPlan &quot;example&quot; </p></div><p><b>status</b>: draft</p></div>"
  ] ; # 
  fhir:status [ fhir:v "draft"]] . # 

  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.