Foundation
This
page
is
part
of
the
Continuous
Integration
Build
of
FHIR
Specification
(v5.0.0:
R5
-
STU
).
This
is
the
current
published
version
in
it's
permanent
home
(it
will
always
(will
be
available
incorrect/inconsistent
at
this
URL).
For
a
full
list
of
available
versions,
see
times).
See
the
Directory
of
published
versions
.
Page
versions:
R5
R4B
| Responsible Owner: FHIR Infrastructure Work Group | Standards Status : Informative | Compartments : No defined compartments |
ShEx statement for subscriptionstatus
PREFIX fhir: <http://hl7.org/fhir/> PREFIX fhirvs: <http://hl7.org/fhir/ValueSet/> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>IMPORT <code.shex> IMPORT <instant.shex># ShEx Version 2.2 IMPORT <Code.shex> IMPORT <Coding.shex> IMPORT <String.shex> IMPORT <Instant.shex> IMPORT <Resource.shex>IMPORT <integer64.shex>IMPORT <Integer64.shex> IMPORT <Reference.shex>IMPORT <canonical.shex>IMPORT <Canonical.shex> IMPORT <Subscription.shex> IMPORT <DomainResource.shex> IMPORT <CodeableConcept.shex> IMPORT <BackboneElement.shex> start=@<SubscriptionStatus> AND {fhir:nodeRole [fhir:treeRoot]} # Status information about a Subscription provided during event notification <SubscriptionStatus> EXTENDS @<DomainResource> CLOSED { a [fhir:SubscriptionStatus]?;fhir:nodeRole [fhir:treeRoot]?;a [fhir:SubscriptionStatus]?; fhir:nodeRole [fhir:treeRoot]?; fhir:status @<code> ANDfhir:status @<Code> AND {fhir:v @fhirvs:subscription-status}?; # requested | active | error | off | # entered-in-errorfhir:type @<code> ANDfhir:type @<Code> AND {fhir:v @fhirvs:subscription-notification-type}; # handshake | heartbeat | # event-notification | query-status # | query-eventfhir:eventsSinceSubscriptionStart @<integer64>?; # Events since the Subscription wasfhir:eventsSinceSubscriptionStart @<Integer64>?; # Events since the Subscription was # created fhir:notificationEvent @<OneOrMore_SubscriptionStatus.notificationEvent>?; # Detailed information about any # events relevant to this # notificationfhir:subscription @<Reference> AND {fhir:linkfhir:subscription @<Reference> AND {fhir:l @<Subscription> ? }; # Reference to the Subscription # responsible for this notificationfhir:topic @<canonical>?; # Reference to the SubscriptionTopicfhir:topic @<Canonical>?; # Reference to the SubscriptionTopic # this notification relates to fhir:error @<OneOrMore_CodeableConcept>?; # List of errors on the subscription } # Query describing data relevant to this notification <SubscriptionStatus.notificationEvent.relatedQuery> EXTENDS @<BackboneElement> CLOSED { fhir:queryType @<Coding>?; # Coded information describing the # type of data this query provides fhir:query @<String>; # Query to perform } # Detailed information about any events relevant to this notification <SubscriptionStatus.notificationEvent> EXTENDS @<BackboneElement> CLOSED {fhir:eventNumber @<integer64>; # Sequencing index of this event fhir:timestamp @<instant>?; # The instant this event occurred fhir:focus @<Reference> AND {fhir:linkfhir:eventNumber @<Integer64>; # Sequencing index of this event fhir:triggerEvent @<OneOrMore_CodeableConcept>?; # Event that triggered this # notification fhir:timestamp @<Instant>?; # The instant this event occurred fhir:focus @<Reference> AND {fhir:l @<Resource> ? }?; # Reference to the primary resource # or information of this event fhir:additionalContext @<OneOrMore_Reference_Resource>?; # References related to the focus # resource and/or context of this # event fhir:relatedQuery @<OneOrMore_SubscriptionStatus.notificationEvent.relatedQuery>?; # Query describing data relevant to # this notification fhir:authorizationHint @<OneOrMore_SubscriptionStatus.notificationEvent.authorizationHint>?; # Authorization information relevant # to a notification }#---------------------- Cardinality Types (OneOrMore) -------------------# Authorization information relevant to a notification <SubscriptionStatus.notificationEvent.authorizationHint> EXTENDS @<BackboneElement> CLOSED { fhir:authorizationType @<Coding>; # Classification of the # authorization hint, e.g., # 'oAuthChallengeToken' fhir:value @<String>?; # Authorization value, as defined by # the 'authorizationType' } #---------------------- Cardinality Types (OneOrMore) ------------------- <OneOrMore_SubscriptionStatus.notificationEvent> CLOSED { rdf:first @<SubscriptionStatus.notificationEvent> ; rdf:rest [rdf:nil] OR @<OneOrMore_SubscriptionStatus.notificationEvent> } <OneOrMore_CodeableConcept> CLOSED { rdf:first @<CodeableConcept> ; rdf:rest [rdf:nil] OR @<OneOrMore_CodeableConcept> } <OneOrMore_Reference_Resource> CLOSED {rdf:first @<Reference> AND {fhir:linkrdf:first @<Reference> AND {fhir:l @<Resource> } ; rdf:rest [rdf:nil] OR @<OneOrMore_Reference_Resource> } <OneOrMore_SubscriptionStatus.notificationEvent.relatedQuery> CLOSED { rdf:first @<SubscriptionStatus.notificationEvent.relatedQuery> ; rdf:rest [rdf:nil] OR @<OneOrMore_SubscriptionStatus.notificationEvent.relatedQuery> } <OneOrMore_SubscriptionStatus.notificationEvent.authorizationHint> CLOSED { rdf:first @<SubscriptionStatus.notificationEvent.authorizationHint> ; rdf:rest [rdf:nil] OR @<OneOrMore_SubscriptionStatus.notificationEvent.authorizationHint> } #---------------------- Value Sets ------------------------ # The type of notification represented by the status message. fhirvs:subscription-notification-type ["handshake" "heartbeat" "event-notification" "query-status" "query-event"] # State values for FHIR Subscriptions. fhirvs:subscription-status ["requested" "active" "error" "off" "entered-in-error"]
Usage note: every effort has been made to ensure that the ShEx files are correct and useful, but they are not a normative part of the specification.
FHIR
®©
HL7.org
2011+.
FHIR
R5
hl7.fhir.core#5.0.0
R6
hl7.fhir.core#6.0.0-ballot3
generated
on
Sun,
Mar
26,
2023
15:26+1100.
Fri,
Nov
21,
2025
00:02+0000.
Links:
Search
|
Version
History
|
Contents
|
Glossary
|
QA
|
Compare
to
R4
|
Compare
to
R4B
R5
|
Compare
to
Last
Ballot
|
|
Propose
a
change