This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). 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 xs: <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"^^xs:dateTime ] ]; fhir:Bundle.type [ fhir:value "searchset"]; fhir:Bundle.total [ fhir:value "3"^^xs:int]; fhir:Bundle.link [ fhir:index 0; fhir:Bundle.link.relation [ fhir:value "self" ]; fhir:Bundle.link.url [ fhir:value "https://example.com/base/MedicationOrder?patient=347&_include=MedicationOrder.medication" ] ]; fhir:Bundle.link [ fhir:index 1; fhir:Bundle.link.relation [ fhir:value "next" ]; fhir:Bundle.link.url [ fhir:value "https://example.com/base/MedicationOrder?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/MedicationOrder/3123" ]; fhir:Bundle.entry.resource [ fhir:MedicationOrder [ fhir:index 0; fhir:Resource.id [ fhir:value "3123" ]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ] ]; fhir:MedicationOrder.medicationReference [ fhir:reference <http://hl7.org/fhir/Medication/example>; fhir:Reference.reference [ fhir:value "Medication/example" ] ]; fhir:MedicationOrder.patient [ fhir:reference <http://hl7.org/fhir/Patient/347>; fhir:Reference.reference [ fhir:value "Patient/347" ] ] ] ]; fhir:Bundle.entry.search [ fhir:Bundle.entry.search.mode [ fhir:value "match" ]; fhir:Bundle.entry.search.score [ fhir:value "1"^^xs:decimal ] ] ]; fhir:Bundle.entry [ fhir:index 1; fhir:Bundle.entry.fullUrl [ fhir:value "https://example.com/base/Medication/example" ]; fhir:Bundle.entry.resource [ fhir:Medication [ fhir:index 0; fhir:Resource.id [ fhir:value "example" ]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ] ] ] ]; fhir:Bundle.entry.search [ fhir:Bundle.entry.search.mode [ fhir:value "include" ] ] ]. # -------------------------------------------------------------------------------------
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.