This page is part of the FHIR Specification (v1.8.0: STU 3 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3
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" ] ], [ 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:index 0; 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>stage</b>: original-order <span>(Details : {[not stated] code 'original-order' = 'original-order)</span></p><p><b>medication</b>: <a>Medication/example</a></p><p><b>patient</b>: <a>Patient/347</a></p></div>" ]; fhir:MedicationRequest.stage [ fhir:CodeableConcept.coding [ fhir:index 0; fhir:Coding.code [ fhir:value "original-order" ] ] ]; fhir:MedicationRequest.medicationReference [ fhir:link <http://hl7.org/fhir/Medication/example>; fhir:Reference.reference [ fhir:value "Medication/example" ] ]; fhir:MedicationRequest.patient [ 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:index 0; 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>" ] . # -------------------------------------------------------------------------------------
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.