FoundationThis is the Continuous Integration Build of FHIR (will be incorrect/inconsistent at times).
See the Directory of published versions
| 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#>
# ShEx Version 2.2
IMPORT <Code.shex>
IMPORT <Coding.shex>
IMPORT <String.shex>
IMPORT <Instant.shex>
IMPORT <Resource.shex>
IMPORT <Integer64.shex>
IMPORT <Reference.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]?;
fhir:status @<Code> AND
{fhir:v @fhirvs:subscription-status}?; # requested | active | error | off |
# entered-in-error
fhir:type @<Code> AND
{fhir:v @fhirvs:subscription-notification-type}; # handshake | heartbeat |
# event-notification | query-status
# | query-event
fhir:eventsSinceSubscriptionStart @<Integer64>?; # Events since the Subscription was
# created
fhir:notificationEvent @<OneOrMore_SubscriptionStatus.notificationEvent>?; # Detailed information about any
# events relevant to this
# notification
fhir:subscription @<Reference> AND {fhir:l
@<Subscription> ? }; # Reference to the Subscription
# responsible for this notification
fhir:topic @<Canonical>?; # Reference to the SubscriptionTopic
# this notification relates to
fhir:error @<OneOrMore_CodeableConcept>?; # List of errors on the subscription
}
# Detailed information about any events relevant to this notification
<SubscriptionStatus.notificationEvent> EXTENDS @<BackboneElement> CLOSED {
fhir: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
}
# 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
}
#---------------------- 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: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>
}
#---------------------- 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 R6 hl7.fhir.core#6.0.0-ballot3 generated on Sat, Nov 8, 2025 17:20+0000.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R4 |
Compare to R5 |
Compare to Last Ballot |
|
Propose a change