http://hl7.org/fhir/StructureDefinition/Subscription|4.0.1

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.
NameFlagsCardTypeDescription & Constraints
Subscription
0..*Server push subscription criteria
 
status *
?!Σ
1..1coderequested | active | error | off SubscriptionStatus (required)
 
contact
Σ
0..*ContactPointContact details for source (e.g. troubleshooting)
 
end
Σ
0..1instantWhen to automatically delete the subscription
 
reason *
Σ
1..1stringDescription of why this subscription was created
 
criteria *
Σ
1..1stringRule for server push
 
error
Σ
0..1stringLatest error note
 
channel *
Σ
1..1BackboneElementThe channel on which to report matches to the criteria
 
 
type *
Σ
1..1coderest-hook | websocket | email | sms | message SubscriptionChannelType (required)
 
 
endpoint
Σ
0..1urlWhere the channel points to
 
 
payload
Σ
0..1codeMIME type to send, or omit for no payload MimeType (required)
 
 
header
Σ
0..*stringUsage depends on the channel type