Subscription
Official URL: https://roche.com/fhir/iop/StructureDefinition/rdc-Subscription | Version: 1.1.0 | |||
Parent: |
Computable Name:
RdcSubscription |
RDC Subscription profile describes custom rules how to create a valid Subscription resource to be able to subscribe to receive notifications about created/updated resources from Roche.
It is mandatory to include this and only this profile url in the meta.profile
section of the Subscription JSON (see the examples).
Formal Views of Profile Content
RdcSubscription (Subscription) | http://hl7.org/fhir/StructureDefinition/Subscription | ||
name | |||
contact | ..0 | ||
end | ..0 | ||
managingEntity | ..0 | ||
reason | |||
filterBy | 1..1 | ||
filterParameter | Binding | ||
value | |||
channelType | Fixed Value | ||
system | ..0 | ||
version | ..0 | ||
display | ..0 | ||
userSelected | ..0 | ||
endpoint | 1.. | ||
heartbeatPeriod | ..0 | ||
timeout | |||
contentType | 1.. | ||
content | 1.. | Fixed Value | |
maxCount |
Subscription.name | |
Comments | Cannot exceed 255 characters in size |
Subscription.contact | |
Cardinality | ..0 |
Subscription.end | |
Cardinality | ..0 |
Subscription.managingEntity | |
Cardinality | ..0 |
Subscription.reason | |
Comments | Cannot exceed 2048 characters in size |
Subscription.filterBy | |
Cardinality | 1..1 |
Subscription.filterBy.filterParameter | |
Binding | Can be either "patient" or "organization" |
Subscription.filterBy.value | |
Short | ID of the resource |
Definition | For filterParameter having value "organization", the value must correspond to the ID of the managing organization. For filterParameter having value "patient", the value must correspond to ID of a patient within the managing organization. |
Subscription.channelType | |
Definition | The type of channel to send notifications on. Only rest-hook is allowed. |
Fixed Value | { "code": "rest-hook" } |
Subscription.channelType.system | |
Cardinality | ..0 |
Subscription.channelType.version | |
Cardinality | ..0 |
Subscription.channelType.display | |
Cardinality | ..0 |
Subscription.channelType.userSelected | |
Cardinality | ..0 |
Subscription.endpoint | |
Cardinality | 1 |
Comments | Absolute URL to the endpoint to receive notifications. Must start with https:// |
Subscription.heartbeatPeriod | |
Cardinality | ..0 |
Subscription.timeout | |
Comments | Number between 10 and 20. Default is 10. |
Subscription.contentType | |
Definition | The MIME type to send the payload in . Only values |
Cardinality | 1 |
Subscription.content | |
Definition | How much of the resource content to deliver in the notification payload. Only id-only is supported |
Cardinality | 1 |
Fixed Value | id-only |
Subscription.maxCount | |
Comments | By default this value is set to 100. You can change the value to a number higher than 100. |
Attribute description
Attribute | Description | Terminology reference |
---|---|---|
identifier | System/value pairs identifying the subscription. Not used by the server. Stored for the convenience of the subscriber. | |
name | Name of the subscription | |
status | Status of the subscription. For subscription creation, only the value requested is allowed. For subscription update, the allowed values are: active , requested , off . When fetching a subscription, server might also return subscription with status error . |
status |
topic | Canonical URL of the subscription topic. The subscription topic determines the resources about which the subscriber will be notified. | |
filterBy | Enables to filter | |
channelType | Only rest-hook is supported by the server. |
|
endpoint | URL to which the notifications will be sent by the server. Must start with https:// | |
parameter | Collection of name/value pairs to be added as the headers to the notification. | |
timeout | The maximum amount of time (in seconds) a server will allow before failing a notification attempt. Default value is 10 seconds. Allowed values are integers between 10 and 20. | |
contentType | application/json or application/fhir+json |
|
content | Only id-only is supported by the server. |
|
maxCount | Maximum amount of resources that can be bundled together in a single notification. Default is 100, the client can only increase this number. |