This
page
is
part
of
the
FHIR
Specification
(v4.0.1:
R4
-
Mixed
Normative
and
STU
)
in
it's
permanent
home
(it
will
always
be
available
at
this
URL).
(v5.0.0-snapshot1:
R5
Snapshot
#1).
The
current
version
which
supercedes
this
version
is
5.0.0
.
For
a
full
list
of
available
versions,
see
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
R4
R3
R2
FHIR
Infrastructure
Work
Group
|
Maturity
Level
:
|
Trial Use | Security Category : Business | Compartments : Not linked to any defined compartments |
Detailed Descriptions for the elements in the Subscription resource.
| Subscription | |
| Element Id | Subscription |
| Definition |
The
subscription
resource
|
| Cardinality | 0..* |
| Type | DomainResource |
| Alternate Names | WebHook; Hook; Routing Rule |
| Summary | false |
| Subscription.identifier | |
| Element Id | Subscription.identifier |
| Definition | A formal identifier that is used to identify this code system when it is represented in other formats, or referenced in a specification, model, design or an instance. |
| Note | This is a business identifier, not a resource identifier (see discussion ) |
| Cardinality | 0..* |
| Type | Identifier |
| Summary | true |
| Subscription.name | |
| Element Id | Subscription.name |
| Definition | A natural language name identifying the subscription. |
| Cardinality | 0..1 |
| Type | string |
| Summary | true |
| Subscription.status | |
| Element Id | Subscription.status |
| Definition |
The status of the subscription, which marks the server state for managing the subscription. |
| Cardinality | 1..1 |
| Terminology Binding |
|
| Type | code |
| Is Modifier | true (Reason: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid) |
| Summary | true |
| Comments |
A client can only submit subscription resources in the requested or off state. Only the server can move a subscription from requested to active, and then to error. Either the server or the client can turn a subscription off. This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid. |
| Subscription.topic | |
| Element Id | Subscription.topic |
| Definition | The reference to the subscription topic to be notified about. |
| Cardinality | 1..1 |
| Type | canonical ( SubscriptionTopic ) |
| Summary | true |
| Subscription.contact | |
| Element Id | Subscription.contact |
| Definition |
Contact details for a human to contact about the subscription. The primary use of this for system administrator troubleshooting. |
| Cardinality | 0..* |
| Type | ContactPoint |
| Summary | true |
| Subscription.end | |
| Element Id | Subscription.end |
| Definition |
The time for the server to turn the subscription off. |
| Cardinality | 0..1 |
| Type | instant |
| Summary | true |
| Comments |
The server is permitted to deviate from this time but should observe it. |
| Subscription.reason | |
| Element Id | Subscription.reason |
| Definition |
A description of why this subscription is defined. |
| Cardinality |
|
| Type | string |
| Summary | true |
|
|
|
| Element Id |
|
| Definition |
The
|
| Cardinality | 0..* |
| Summary | true |
| Subscription.filterBy.resourceType | |
| Element Id | Subscription.filterBy.resourceType |
| Definition |
If
the
element
is
a
reference
to
|
| Cardinality |
|
| Terminology Binding | FHIRDefinedType ( Extensible ) |
| Type |
|
| Summary | true |
| Subscription.filterBy.searchParamName | |
|
| Subscription.filterBy.searchParamName |
| Definition |
The
|
| Cardinality | 1..1 |
| Type | string |
| Summary | true |
|
|
|
| Element Id |
|
| Definition |
|
| Cardinality | 0..1 |
| Terminology Binding | Subscription Search Modifier ( Required ) |
| Type |
|
| Summary | true |
|
|
|
| Element Id |
|
| Definition |
|
| Cardinality | 1..1 |
| Type | string |
| Summary | true |
|
|
|
| Element Id |
|
| Definition |
The type of channel to send notifications on. |
| Cardinality | 1..1 |
| Terminology Binding |
|
| Type |
|
| Summary | true |
|
|
|
| Element Id |
|
| Definition |
The url that describes the actual end-point to send messages to. |
| Cardinality | 0..1 |
| Type | url |
| Summary | true |
| Comments |
For
|
|
|
|
| Element Id |
|
| Definition |
|
| Cardinality | 0..* |
| Type | string |
| Summary | true |
| Comments |
Exactly
what
these
mean
depend
on
the
channel
type.
They
can
convey
additional
information
to
the
recipient
and/or
meet
security
requirements;
for
example,
support
of
multiple
headers
in
|
| Subscription.heartbeatPeriod | |
| Element Id | Subscription.heartbeatPeriod |
| Definition |
If
present,
a
'hearbeat"
notification
(keepalive)
is
sent
via
this
channel
with
an
the
interval
period
equal
to
this
elements
integer
value
in
seconds.
If
not
present,
|
| Cardinality | 0..1 |
| Type | unsignedInt |
| Summary | true |
| Subscription.timeout | |
| Element Id | Subscription.timeout |
| Definition |
If
present,
the
|
| Cardinality | 0..1 |
| Type | unsignedInt |
| Summary | true |
| Subscription.contentType | |
| Element Id | Subscription.contentType |
| Definition |
The
mime
type
to
send
the
payload
in
-
either
application/fhir+xml,
or
application/fhir+json.
The
MIME
types
"text/plain"
and
"text/html"
may
also
be
used
for
Email
|
| Cardinality | 0..1 |
| Terminology Binding | MimeType ( Required ) |
| Type | code |
| Summary | true |
| Subscription.content | |
| Element Id | Subscription.content |
| Definition | How much of the resource content to deliver in the notification payload. The choices are an empty payload, only the resource id, or the full resource content. |
| Cardinality | 0..1 |
| Terminology Binding | SubscriptionPayloadContent ( Required ) |
| Type | code |
| Summary | true |
| Comments |
Sending the payload has obvious security implications. The server is responsible for ensuring that the content is appropriately secured. |
|
|
|
| Element Id |
|
| Definition |
|
| Cardinality |
|
| Terminology Binding | SubscriptionUrlLocation ( Required ) |
| Type |
|
| Summary | true |
| Subscription.maxCount | |
|
| Subscription.maxCount |
| Definition |
|
| Cardinality | 0..1 |
| Type | positiveInt |
| Summary | true |