R6 Ballot (2nd Draft)

Publish-box (todo)

Example Bundle/bundle-search-warning (Turtle)

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: No defined compartments

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:id [ fhir:v "bundle-search-warning"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2017-03-14T08:23:30+11:00"^^xsd:dateTime ]
  ] ; # 
  fhir:type [ fhir:v "searchset"] ; # 
  fhir:total [ fhir:v "0"^^xsd:nonNegativeInteger] ; # 
  fhir:link ( [
     fhir:relation [ fhir:v "self" ] ;
     fhir:url [ fhir:v "https://example.org/fhir/Observation?patient.identifier=http://example.com/fhir/identifier/mrn|123456"^^xsd:anyURI ]
  ] ) ; # 
  fhir:entry ( [
     fhir:fullUrl [ fhir:v "urn:uuid:2866af9c-137d-4458-a8a9-eeeec0ce5583"^^xsd:anyURI ] ;
     fhir:resource ( <urn:uuid:2866af9c-137d-4458-a8a9-eeeec0ce5583> ) ;
     fhir:search [
       fhir:mode [ fhir:v "outcome" ] #   this is not a match - it's about the search  
     ]
  ] )] . # 

<urn:uuid:2866af9c-137d-4458-a8a9-eeeec0ce5583> a fhir:OperationOutcome ;
  fhir:id [ fhir:v "warning"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\">There is no matching patient for MRN 123456</div>"
  ] ; # 
  fhir:issue ( [
     fhir:severity [ fhir:v "warning" ] ;
     fhir:code [ fhir:v "not-found" ] ;
     fhir:details [
       fhir:text [ fhir:v "There is no matching patient for MRN 123456" ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------


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.