Subscription

Ontoserver supports the management of Subscriptions.

Subscriptions support SCRUD (Search, Create, Read, Update and Delete) operations as per the FHIR Specification rules for REST and Subscriptions.

Search for subscriptions is limited to the following parameters:

  • the _id, criteria and topic parameters (this additionally supports the :exact, :contains and :missing modifiers)

  • the status and _tag parameters, including code, |code, system| and system|code formats, and the :missing modifier

  • the _lastUpdated parameter, including the lt, gt, ge, le and eq prefixes, and the :missing modifier. This parameter can be provided multiple times for AND semantics, to support use cases such as searching between 2 times

  • the url parameter, including the :missing, :above and :below modifiers, and

  • Composite search parameters are supported, so all parameters can be used multiple times, for AND semantics, or with comma-separated values for OR semantics.

Of these, _id, url, criteria, topic,statusand_lastUpdated` can be used to sort search results.

Status Operation

The $status operation returns the current status of zero or more Subscriptions.

http://ontoserver.base.url/fhir/Subscription/$status (type level)

http://ontoserver.base.url/fhir/Subscription/[id]/$status (instance level)

where the type-level invocation can specify the id (which identifies one or more Subscriptions) and/or status (which constrains these Subscriptions based on their status) parameters either in the parameters of a GET request, or the body of a POST request.

The $status operation is supported according to its definition in the FHIR Specification, and supports the id and status parameters.