Skip to main content

Subscription

The subscription resource is used to define a push-based subscription from a server to another system. Once a subscription is registered with the server, the server checks every resource that is created or updated, and if the resource matches the given criteria, it sends a message on the defined "channel" so that another system can take an appropriate action.

Structure

Search Parameters

_haste-health-author (reference)
The author of the resource
Resource.meta.extension.where(url='https://haste.health/author').value
_type (token)
Derived from the R4B Definition
$this.type().name
_text (string)
Search on the narrative of the resource
_content (string)
Search on the entire content of the resource
_id (token)
Logical id of this artifact
Resource.id
_lastUpdated (date)
When the resource version last changed
Resource.meta.lastUpdated
_profile (uri)
Profiles this resource claims to conform to
Resource.meta.profile
_query (token)
A custom search profile that describes a specific defined query operation
_security (token)
Security Labels applied to this resource
Resource.meta.security
_source (uri)
Identifies where the resource comes from
Resource.meta.source
_tag (token)
Tags applied to this resource
Resource.meta.tag
contact (token)
Contact details for the subscription
Subscription.contact
criteria (string)
The search rules used to determine when to send a notification
Subscription.criteria
payload (token)
The mime-type of the notification payload
Subscription.channel.payload
status (token)
The current state of the subscription
Subscription.status
type (token)
The type of channel for the sent notifications
Subscription.channel.type
url (uri)
The uri that will receive the notifications
Subscription.channel.endpoint