Subscriptions R5 Backport
1.1.0 - Standard for Trial Use International flag

This page is part of the Subscriptions R5 Backport (v1.1.0: STU 1.1) based on FHIR v4.3.0. This is the current published version in its permanent home (it will always be available at this URL). For a full list of available versions, see the Directory of published versions

Example Bundle: R4 Notification: Multiple Resources

This Bundle provides an example of an full-resource notification that includes a related resource (e.g., the triggering resource of Encounter and the related Patient). This Bundle is typical of what may be posted to a notification endpoint (e.g., a listening HTTP server, etc.).

Bundle r4-notification-multi-resource of type history


Entry 1 - fullUrl = urn:uuid:7bd91d26-c951-4520-9ac6-67f41bfbe897

Request:

GET https://example.org/fhir/Subscription/admission/$status

Response:

200

Resource Parameters:

Parameters

subscriptionhttps://example.org/fhir/Subscription/admission
topichttp://hl7.org/SubscriptionTopic/admission
statusactive
typeevent-notification
events-since-subscription-start2
notification-event
 event-number2
 timestamp2020-05-29 11:44:13-0500
 focushttps://example.org/fhir/Encounter/86009987-eabe-42bf-8c02-b112b18cb616
 additional-contexthttps://example.org/fhir/Patient/1599eb66-431a-447c-a3de-6897fe9ae9a1


Entry 2 - fullUrl = https://example.org/fhir/Encounter/86009987-eabe-42bf-8c02-b112b18cb616

Request:

POST Encounter

Response:

201

Resource Encounter:

Not done yet


Entry 3 - fullUrl = https://example.org/fhir/Patient/1599eb66-431a-447c-a3de-6897fe9ae9a1

Request:

GET Patient/1599eb66-431a-447c-a3de-6897fe9ae9a1

Response:

200

Resource Patient:

Example Patient null, DoB:

Notes:

In order to satisfy the requirements of a history Bundle (specifically bdl-3 and bdl-4), note that Bundle.entry.request must exist.

For the status resource (entry[0]), the request is filled out to match a request to the $status operation.

For additional entries, the request SHOULD be filled out in a way that makes sense given the subscription (e.g., a POST or PUT operation on the resource). However, a server MAY choose to simply include a GET to the relevant resource instead.