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.
- Schema
- Usage
- Relationships
Elements
Name | Required | Type | Description |
---|---|---|---|
status | ✓ | code | requested | active | error | off DetailsThe status of the subscription, which marks the server state for managing the subscription. A client can only submit subscription resources in the requested or off state. Only the server can move a subscription from requested to active, and then to error. Either the server or the client can turn a subscription off. This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid. |
contact | ContactPoint[] | Contact details for source (e.g. troubleshooting) DetailsContact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting. | |
end | instant | When to automatically delete the subscription DetailsThe time for the server to turn the subscription off. The server is permitted to deviate from this time but should observe it. | |
reason | ✓ | string | Description of why this subscription was created DetailsA description of why this subscription is defined. |
criteria | ✓ | string | Rule for server push DetailsThe rules that the server should use to determine when to generate notifications for this subscription. The rules are search criteria (without the [base] part). Like Bundle.entry.request.url, it has no leading "/". |
error | string | Latest error note DetailsA record of the last error that occurred when the server processed a notification. | |
channel |