This is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
FHIR Infrastructure Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: No defined compartments |
Raw Turtle (+ also see Turtle/RDF Format Specification)
General TestReport Example
@prefix fhir: <http://hl7.org/fhir/> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . # - resource ------------------------------------------------------------------- [a fhir:TestReport ; fhir:nodeRole fhir:treeRoot ; fhir:id [ fhir:v "testreport-example"] ; # fhir:identifier [ fhir:system [ fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ] ; fhir:value [ fhir:v "urn:oid:1.3.6.1.4.1.21367.2005.3.7.9878" ] ] ; # fhir:name [ fhir:v "TestReport Example for TestScript Example"] ; # fhir:status [ fhir:v "completed"] ; # fhir:testScript [ fhir:v "http://example.com/TestScript/testscript-example"^^xsd:anyURI ; fhir:link <http://example.com/TestScript/testscript-example> ] ; # fhir:result [ fhir:v "pass"] ; # fhir:score [ fhir:v "100.0"^^xsd:decimal] ; # fhir:tester [ fhir:v "HL7 Execution Engine"] ; # fhir:issued [ fhir:v "2016-10-07T08:25:34-05:00"^^xsd:dateTime] ; # fhir:participant ( [ fhir:type [ fhir:v "test-engine" ] ; fhir:uri [ fhir:v "http://projectcrucible.org"^^xsd:anyURI ] ; fhir:display [ fhir:v "Crucible" ] ] [ fhir:type [ fhir:v "server" ] ; fhir:uri [ fhir:v "http://fhir3.healthintersections.com.au/open"^^xsd:anyURI ] ; fhir:display [ fhir:v "HealthIntersections STU3" ] ] ) ; # fhir:setup [ fhir:action ( [ fhir:operation [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "DELETE Patient" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/1"^^xsd:anyURI ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "HTTP 204" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/1" ] ] ] [ fhir:operation [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "POST Patient/fixture-patient-create" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/1"^^xsd:anyURI ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "HTTP 201" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/1" ] ] ] ) ] ; # fhir:test ( [ fhir:id [ fhir:v "01-ReadPatient" ] ; fhir:name [ fhir:v "Read Patient" ] ; fhir:description [ fhir:v "Read a Patient and validate response." ] ; fhir:action ( [ fhir:operation [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "GET Patient/fixture-patient-create" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/2"^^xsd:anyURI ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "HTTP 200" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/2" ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "Last-Modified Present" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/2" ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "Response is Patient" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/2" ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "Response validates" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/2" ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "Patient.name.family 'Chalmers'" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/2" ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "Patient.name.given 'Peter'" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/2" ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "Patient.name.family 'Chalmers'" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/2" ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "Patient.name.family 'Chalmers'" ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/2" ] ] ] [ fhir:assert [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "Patient expected values." ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/2" ] ] ] ) ] ) ; # fhir:teardown [ fhir:action ( [ fhir:operation [ fhir:result [ fhir:v "pass" ] ; fhir:message [ fhir:v "DELETE Patient/fixture-patient-create." ] ; fhir:detail [ fhir:v "http://projectcrucible.org/permalink/3"^^xsd:anyURI ] ] ] ) ]] . # # -------------------------------------------------------------------------------------
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.
FHIR ®© HL7.org 2011+. FHIR R6 hl7.fhir.core#6.0.0-ballot2 generated on Mon, Nov 11, 2024 07:31+0000.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R5 |
|
Propose a change