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.

These interaction paths describe standard FHIR R4 patterns. Availability can depend on the API capabilities enabled for your Ovok project.

InteractionMethodPath
ReadGET/fhir/R4/Subscription/[id]
VreadGET/fhir/R4/Subscription/[id]/_history/[vid]
UpdatePUT/fhir/R4/Subscription/[id]
PatchPATCH/fhir/R4/Subscription/[id]
DeleteDELETE/fhir/R4/Subscription/[id]
CreatePOST/fhir/R4/Subscription
SearchGET/fhir/R4/Subscription
HistoryGET/fhir/R4/Subscription/[id]/_history

Top-level elements​

ElementTypeCardinalityDescription
idstring0..1Logical id of this artifact
metaMeta0..1Metadata about the resource
implicitRulesuri0..1A set of rules under which this content was created
languagecode0..1Language of the resource content
textNarrative0..1Text summary of the resource, for human interpretation
containedResource0..*Contained, inline Resources
extensionExtension0..*Additional content defined by implementations
modifierExtensionExtension0..*Extensions that cannot be ignored
statuscode1..1requested | active | error | off
contactContactPoint0..*Contact details for source (e.g. troubleshooting)
endinstant0..1When to automatically delete the subscription
reasonstring1..1Description of why this subscription was created
criteriastring1..1Rule for server push
errorstring0..1Latest error note
channelBackboneElement1..1The channel on which to report matches to the criteria

Resource-specific search parameters​

ParameterTypeDescription
contacttokenContact details for the subscription
criteriastringThe search rules used to determine when to send a notification
payloadtokenThe mime-type of the notification payload
statustokenThe current state of the subscription
typetokenThe type of channel for the sent notifications
urluriThe uri that will receive the notifications

Reference​

Official FHIR R4 spec: Subscription.
Maturity: Trial Use 3 (FMM 3).