@prefix fhir: .
@prefix owl: .
@prefix rdfs: .
@prefix xsd: .
# - resource -------------------------------------------------------------------
[a fhir:Bundle ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "bundle-example"] ; #
fhir:meta [
fhir:lastUpdated [ fhir:v "2014-08-18T01:43:30Z"^^xsd:dateTime ]
] ; # this example bundle is a search set , when the search was executed
fhir:type [ fhir:v "searchset"] ; #
fhir:total [ fhir:v "3"^^xsd:nonNegativeInteger] ; # the total number of matches. This is a stupid example - there's a grand total of 3 matches, and
# we're only going to return the first 1, with a next link, in order to demonstrate what a page link
# looks like
fhir:link ( [
fhir:relation [ fhir:v "self" ] ;
fhir:url [ fhir:v "https://example.com/base/MedicationRequest?patient=347&_include=MedicationRequest.medication&_count=2"^^xsd:anyURI ]
] [
fhir:relation [ fhir:v "next" ] ;
fhir:url [ fhir:v "https://example.com/base/MedicationRequest?patient=347&searchId=ff15fd40-ff71-4b48-b366-09c706bed9d0&page=2"^^xsd:anyURI ]
] ) ; # all search sets include the self link - the server's statement of what it thought it was
# searching on. The client can use this to cross-check whether the server executed what it
# asked the server to, if it cares
fhir:entry ( [
fhir:fullUrl [ fhir:v "https://example.com/base/MedicationRequest/3123"^^xsd:anyURI ] ;
fhir:resource ( ) ; # snip
fhir:search [
fhir:mode [ fhir:v "match" ] ; # this resource included as a match to the search criteria.\n Servers are not required to populate this, but should, because\n there are a few cases where it might be ambiguous whether a \n resource is added because it's a match or an include
fhir:score [ fhir:v "1"^^xsd:decimal ] # score. For matches where the criteria are not determinate,\n e.g. text search on narrative, the server can include a score to indicate\n how well the resource matches the conditions. Since this search is by patient\n identifier, there's nothing fuzzy about it, but for example purposes:
] # and now optional search information
] [
fhir:fullUrl [ fhir:v "https://example.com/base/Medication/example"^^xsd:anyURI ] ;
fhir:resource ( ) ;
fhir:search [
fhir:mode [ fhir:v "include" ] # added because the client asked to include the medications
]
] )] . # now, the actual entries
a fhir:MedicationRequest ;
fhir:id [ fhir:v "3123"] ; #
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "