Release 4

Bundle-example.ttl

FHIR Infrastructure Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Not linked to any defined compartments

Raw Turtle (+ also see Turtle/RDF Format Specification)

An example of a search response

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

<http://hl7.org/fhir/Bundle/bundle-example> a fhir:Bundle;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "bundle-example"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2014-08-18T01:43:30Z"^^xsd:dateTime ]
  ];
  fhir:Bundle.type [ fhir:value "searchset"];
  fhir:Bundle.total [ fhir:value "3"^^xsd:nonNegativeInteger];
  fhir:Bundle.link [
     fhir:index 0;
     fhir:Bundle.link.relation [ fhir:value "self" ];
     fhir:Bundle.link.url [ fhir:value "https://example.com/base/MedicationRequest?patient=347&_include=MedicationRequest.medication&_count=2" ]
  ], [
     fhir:index 1;
     fhir:Bundle.link.relation [ fhir:value "next" ];
     fhir:Bundle.link.url [ fhir:value "https://example.com/base/MedicationRequest?patient=347&searchId=ff15fd40-ff71-4b48-b366-09c706bed9d0&page=2" ]
  ];
  fhir:Bundle.entry [
     fhir:index 0;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://example.com/base/MedicationRequest/3123" ];
     fhir:Bundle.entry.resource <https://example.com/base/MedicationRequest/3123>;
     fhir:Bundle.entry.search [
       fhir:Bundle.entry.search.mode [ fhir:value "match" ];
       fhir:Bundle.entry.search.score [ fhir:value "1"^^xsd:decimal ]
     ]
  ], [
     fhir:index 1;
     fhir:Bundle.entry.fullUrl [ fhir:value "https://example.com/base/Medication/example" ];
     fhir:Bundle.entry.resource <https://example.com/base/Medication/example>;
     fhir:Bundle.entry.search [
       fhir:Bundle.entry.search.mode [ fhir:value "include" ]
     ]
  ] .

<https://example.com/base/MedicationRequest/3123> a fhir:MedicationRequest;
  fhir:Resource.id [ fhir:value "3123"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 3123</p><p><b>status</b>: unknown</p><p><b>intent</b>: order</p><p><b>medication</b>: <a>Medication/example</a></p><p><b>subject</b>: <a>Patient/347</a></p></div>"
  ];
  fhir:MedicationRequest.status [ fhir:value "unknown"];
  fhir:MedicationRequest.intent [ fhir:value "order"];
  fhir:MedicationRequest.medicationReference [
     fhir:link <http://hl7.org/fhir/Medication/example>;
     fhir:Reference.reference [ fhir:value "Medication/example" ]
  ];
  fhir:MedicationRequest.subject [
     fhir:link <http://hl7.org/fhir/Patient/347>;
     fhir:Reference.reference [ fhir:value "Patient/347" ]
  ] .

<http://hl7.org/fhir/Medication/example> a fhir:Medication .

<http://hl7.org/fhir/Patient/347> a fhir:Patient .

<https://example.com/base/Medication/example> a fhir:Medication;
  fhir:Resource.id [ fhir:value "example"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example</p></div>"
  ] .

# - ontology header ------------------------------------------------------------

<http://hl7.org/fhir/Bundle/bundle-example.ttl> a owl:Ontology;
  owl:imports fhir:fhir.ttl;
  owl:versionIRI <http://build.fhir.org/Bundle/bundle-example.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.