This page is part of the Subscriptions R5 Backport (v1.0.0: STU 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
As described in Topic-Based Subscription Components, all notifications use the same structure: a Bundle, with the type
of history
, and a SubscriptionStatus as the first entry
that contains information about the subscription and notification.
The notification bundle has a profile defined in this IG, see Backported R5 Subscription Notification Bundle.
For detailed information about the SubscriptionStatus
resource, please see the HL7 FHIR website:
In FHIR R5, a new type of Bundle
has been introduced, which uses the new SubscriptionStatus
resource to convey status information in notifications. For FHIR R4, notifications are instead based on a history Bundle, and a SubscriptionStatus resource is used to convey related meta-information (e.g., which subscription the notification is for).
Note that since notifications use history
type Bundles, all notifications need to comply with the requirements for that bundle type. Specifically, there are two invariants on Bundle (bdl-3
and bdl-4
) that require a Bundle.entry.request
element for every Bundle.entry
.
entry[0]
), the request SHALL be filled out to match a request to the $status
operation.POST
or PUT
operation on the resource, etc.). However, a server MAY choose to simply include a GET
to the relevant resource instead.In addition to the SubscriptionStatus
resource, each notification MAY include additional resources or references to resources (URLs or ids). The notification shape SHALL be based on the definitions from the SubscriptionTopic
relevant to the notification:
Each topic trigger defines a resource type that is the focus for notifications. For example: SubscriptionTopic.resourceTrigger.resource and SubscriptionTopic.eventTrigger.resource.
Servers MAY choose to include additional resources with notifications that may be of interest to clients. Servers SHALL conform to the payload configuration of the subscription when adding additional resources (e.g., if the subscription is id-only
, then only ids of additional resources may be provided; if the subscription is full-resource
, then full resources should be provided).
In order to aid servers in determining which resources may be of interest to clients, subscription topics can define a list of included resources (see SubscriptionTopic.notificationShape.include). Included resources are matches based on the type of focus resource specified.
Note that the include list MAY contain resources that do not exist in a particular context (e.g., an Encounter with no Observations) or that a user may not be authorized to access (e.g., an Observation tagged as sensitive that cannot be shared with the owner of a subscription). Servers SHOULD attempt to provide the resources described in the topic, however clients SHALL expect that any resource beyond the focus resource are not guaranteed to be present.