Example Bundle/bundle-search-warning (Turtle)
Raw Turtle (+ also see Turtle/RDF Format Specification)
An example an empty search result with a warning
@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:Bundle;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "bundle-search-warning"]; #
fhir:Resource.meta [
fhir:Meta.lastUpdated [ fhir:value "2017-03-14T08:23:30+11:00"^^xsd:dateTime ]
]; #
fhir:Bundle.type [ fhir:value "searchset"]; #
fhir:Bundle.total [ fhir:value "0"^^xsd:nonNegativeInteger]; #
fhir:Bundle.link [
fhir:index 0;
fhir:Bundle.link.relation [ fhir:value "self" ];
fhir:Bundle.link.url [ fhir:value "https://example.org/fhir/Observation?patient.identifier=http://example.com/fhir/identifier/mrn|123456" ]
]; #
fhir:Bundle.entry [
fhir:index 0;
fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:2866af9c-137d-4458-a8a9-eeeec0ce5583" ];
fhir:Bundle.entry.resource <urn:uuid:2866af9c-137d-4458-a8a9-eeeec0ce5583>;
fhir:Bundle.entry.search [
fhir:Bundle.entry.search.mode [ fhir:value "outcome" ] # this is not a match - it's about the search
]
]] . #
<urn:uuid:2866af9c-137d-4458-a8a9-eeeec0ce5583> a fhir:OperationOutcome;
fhir:Resource.id [ fhir:value "warning"]; #
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">There is no matching patient for MRN 123456</div>"
]; #
fhir:OperationOutcome.issue [
fhir:index 0;
fhir:OperationOutcome.issue.severity [ fhir:value "warning" ];
fhir:OperationOutcome.issue.code [ fhir:value "not-found" ];
fhir:OperationOutcome.issue.details [
fhir:CodeableConcept.text [ fhir:value "There is no matching patient for MRN 123456" ]
]
] . #
# - ontology header ------------------------------------------------------------
[a owl:Ontology;
owl:imports fhir:fhir.ttl] .
# -------------------------------------------------------------------------------------
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.