Subscription.channel, Aidbox additionally provides the long-polling endpoint as a
$polloperation on the Subscription resource.
$pollendpoint returns a FHIR Bundle containing matched resources. Every resource has a
versionIdelement is quite important in context of polling because it contains a transaction ID of operation which caused the event. It's an integer and it's always increasing which means if event B happened after event A, then B's
versionIdwill be greater than A's
versionId. A client can specify the last
versionIdhe received with the
fromparameter in the request's query string. In this case, the
$pollendpoint will return only notifications which have
versionIdgreater than the number provided in the
fromparameter. This approach guarantees that client will never miss a notification because of time spans between requests to the
$pollendpoint. If a client polls with
from=0, Aidbox will return all the notifications that ever happened.
versionIdand enter url in the browser:
rest-hookshould be created. All
headersprovided with channel will be attached to the request to
endpoint. If the
payloadfield is omitted, the request will not contain body.
endpoint. Let's open this URL:
active, each resource that satisfies the
criteriawill trigger the hook. In our case, you will see the following result of the hook execution: