FHIR Testing IG
0.1.0-SNAPSHOT - International flag

FHIR Testing IG, published by HL7 International / FHIR Infrastructure. This guide is not an authorized publication; it is the continuous build for version 0.1.0-SNAPSHOT built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-testing-ig/ and changes regularly. See the Directory of published versions

: Example Test Plan

Page standards status: Informative

Raw ttl | Download


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

 a fhir:TestPlan ;
  fhir:resourceDefinition http://hl7.org/fhir/StructureDefinition/TestPlan|0.1.0-SNAPSHOT ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example"] ; # 
  fhir:language [ fhir:v "en"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"><p class=\"res-header-id\"><b>Generated Narrative: TestPlan example</b></p><a name=\"example\"> </a><a name=\"hcexample\"> </a><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\">Language: en</p></div><p><b>url</b>: <a href=\"http://hl7.org/fhir/TestPlan/example\">http://hl7.org/fhir/TestPlan/example</a></p><p><b>identifier</b>: <code>urn:oid:0.1.2.3.4.5.6.7</code>/1234</p><p><b>title</b>: Example Test Plan</p><p><b>status</b>: Draft</p><p><b>publisher</b>: HL7 International / FHIR Infrastructure</p><p><b>description</b>: </p><div><p>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.</p>\n</div><h3>Scopes</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Reference</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"http://hl7.org/fhir/R5/observation.html\">Observation</a></td></tr></table><p><b>runner</b>: <a href=\"http://example.org/testing/my-manual-runner\">http://example.org/testing/my-manual-runner</a></p><blockquote><p><b>suite</b></p><p><b>name</b>: Basic Observation Handling</p><blockquote><p><b>test</b></p><p><b>name</b>: obs-read</p><p><b>description</b>: Read a JSON formatted Observation</p><p><b>operation</b>: postman/GET</p></blockquote></blockquote><p><b style=\"color: maroon\">Exception Generating Narrative: Unable to resolve content reference http://hl7.org/fhir/StructureDefinition/TestPlan#TestPlan.parameter trying to resolve TestPlan.suite.test.parameter </b></p></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/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:title [ fhir:v "Example Test Plan"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"] ; # 
  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" ]       ] )     ] )
  ] ) . #