Real Time Location Services Implementation Guide
1.0.0-ballot - CI Build International flag

This page is part of the Real Time Location Services Implementation Guide (v1.0.0-ballot: STU 1.0 Ballot 1) based on FHIR v5.0.0. . For a full list of available versions, see the Directory of published versions

Resource Profile: RTLS Subscription Status Profile ( Experimental )

Official URL: http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionStatus Version: 1.0.0-ballot
Standards status: Informative Computable Name: RTLSSubscriptionStatus

SubscriptionStatus resource used in RTLS workflows

This profile defines minimum expectations for a subscription status resource used in RTLS workflows.

Usage:

  • This Resource Profile is not used by any profiles in this Implementation Guide

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from SubscriptionStatus

NameFlagsCard.TypeDescription & Constraintsdoco
.. SubscriptionStatus 0..*SubscriptionStatusStatus information about a Subscription provided during event notification
... status S0..1coderequested | active | error | off | entered-in-error
... type S1..1codeSet to "event-notification"
... notificationEvent
.... timestamp S1..1instantThe instant this event occurred
.... focus S0..1Reference(RTLS Tag Device Profile)Reference to the primary resource or information of this event
... topic S0..1canonical(SubscriptionTopic)Reference to the rtlsSbuscriptionTopic resource this notification relates to (http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionTopic).

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. SubscriptionStatus C0..*SubscriptionStatusStatus information about a Subscription provided during event notification
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... contained 0..*ResourceContained, inline Resources
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... type ?!SΣC1..1codeSet to "event-notification"
Binding: SubscriptionNotificationType (required): The type of notification represented by the status message.

... notificationEvent C0..*BackboneElementDetailed information about any events relevant to this notification
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... eventNumber 1..1integer64Sequencing index of this event
.... timestamp S1..1instantThe instant this event occurred
.... focus S0..1Reference(RTLS Tag Device Profile)Reference to the primary resource or information of this event
... subscription SΣ1..1Reference(Subscription)Reference to the rtlsSubscription resource responsible for this notification (http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscription).
... topic SΣ0..1canonical(SubscriptionTopic)Reference to the rtlsSbuscriptionTopic resource this notification relates to (http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionTopic).

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
SubscriptionStatus.statusrequiredSubscriptionStatusCodes
SubscriptionStatus.typerequiredSubscriptionNotificationType

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorSubscriptionStatusIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorSubscriptionStatusIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorSubscriptionStatusIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorSubscriptionStatusIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceSubscriptionStatusA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
sst-1errorSubscriptionStatusEvent notifications must contain events
: (type = 'event-notification' or type = 'query-event') implies notificationEvent.exists()
sst-2errorSubscriptionStatusStatus messages must contain status
: type = 'query-status' implies status.exists()
NameFlagsCard.TypeDescription & Constraintsdoco
.. SubscriptionStatus C0..*SubscriptionStatusStatus information about a Subscription provided during event notification
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... status SΣC0..1coderequested | active | error | off | entered-in-error
Binding: SubscriptionStatusCodes (required): The status of a subscription at the time this notification was generated.

... type ?!SΣC1..1codeSet to "event-notification"
Binding: SubscriptionNotificationType (required): The type of notification represented by the status message.

... eventsSinceSubscriptionStart Σ0..1integer64Events since the Subscription was created
... notificationEvent C0..*BackboneElementDetailed information about any events relevant to this notification
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... eventNumber 1..1integer64Sequencing index of this event
.... timestamp S1..1instantThe instant this event occurred
.... focus S0..1Reference(RTLS Tag Device Profile)Reference to the primary resource or information of this event
.... additionalContext 0..*Reference(Resource)References related to the focus resource and/or context of this event
... subscription SΣ1..1Reference(Subscription)Reference to the rtlsSubscription resource responsible for this notification (http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscription).
... topic SΣ0..1canonical(SubscriptionTopic)Reference to the rtlsSbuscriptionTopic resource this notification relates to (http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionTopic).
... error Σ0..*CodeableConceptList of errors on the subscription
Binding: SubscriptionErrorCodes (example): Codes to represent subscription error details.



doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
SubscriptionStatus.languagerequiredAllLanguages
SubscriptionStatus.statusrequiredSubscriptionStatusCodes
SubscriptionStatus.typerequiredSubscriptionNotificationType
SubscriptionStatus.errorexampleSubscriptionErrorCodes

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from SubscriptionStatus

Summary

Mandatory: 0 element (1 nested mandatory element)
Must-Support: 6 elements

Structures

This structure refers to these other structures:

Differential View

This structure is derived from SubscriptionStatus

NameFlagsCard.TypeDescription & Constraintsdoco
.. SubscriptionStatus 0..*SubscriptionStatusStatus information about a Subscription provided during event notification
... status S0..1coderequested | active | error | off | entered-in-error
... type S1..1codeSet to "event-notification"
... notificationEvent
.... timestamp S1..1instantThe instant this event occurred
.... focus S0..1Reference(RTLS Tag Device Profile)Reference to the primary resource or information of this event
... topic S0..1canonical(SubscriptionTopic)Reference to the rtlsSbuscriptionTopic resource this notification relates to (http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionTopic).

doco Documentation for this format

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. SubscriptionStatus C0..*SubscriptionStatusStatus information about a Subscription provided during event notification
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... contained 0..*ResourceContained, inline Resources
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... type ?!SΣC1..1codeSet to "event-notification"
Binding: SubscriptionNotificationType (required): The type of notification represented by the status message.

... notificationEvent C0..*BackboneElementDetailed information about any events relevant to this notification
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... eventNumber 1..1integer64Sequencing index of this event
.... timestamp S1..1instantThe instant this event occurred
.... focus S0..1Reference(RTLS Tag Device Profile)Reference to the primary resource or information of this event
... subscription SΣ1..1Reference(Subscription)Reference to the rtlsSubscription resource responsible for this notification (http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscription).
... topic SΣ0..1canonical(SubscriptionTopic)Reference to the rtlsSbuscriptionTopic resource this notification relates to (http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionTopic).

doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
SubscriptionStatus.statusrequiredSubscriptionStatusCodes
SubscriptionStatus.typerequiredSubscriptionNotificationType

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorSubscriptionStatusIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorSubscriptionStatusIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorSubscriptionStatusIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorSubscriptionStatusIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceSubscriptionStatusA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
sst-1errorSubscriptionStatusEvent notifications must contain events
: (type = 'event-notification' or type = 'query-event') implies notificationEvent.exists()
sst-2errorSubscriptionStatusStatus messages must contain status
: type = 'query-status' implies status.exists()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. SubscriptionStatus C0..*SubscriptionStatusStatus information about a Subscription provided during event notification
... id Σ0..1idLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored
... status SΣC0..1coderequested | active | error | off | entered-in-error
Binding: SubscriptionStatusCodes (required): The status of a subscription at the time this notification was generated.

... type ?!SΣC1..1codeSet to "event-notification"
Binding: SubscriptionNotificationType (required): The type of notification represented by the status message.

... eventsSinceSubscriptionStart Σ0..1integer64Events since the Subscription was created
... notificationEvent C0..*BackboneElementDetailed information about any events relevant to this notification
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... eventNumber 1..1integer64Sequencing index of this event
.... timestamp S1..1instantThe instant this event occurred
.... focus S0..1Reference(RTLS Tag Device Profile)Reference to the primary resource or information of this event
.... additionalContext 0..*Reference(Resource)References related to the focus resource and/or context of this event
... subscription SΣ1..1Reference(Subscription)Reference to the rtlsSubscription resource responsible for this notification (http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscription).
... topic SΣ0..1canonical(SubscriptionTopic)Reference to the rtlsSbuscriptionTopic resource this notification relates to (http://hl7.org/fhir/uv/rtls/StructureDefinition/rtlsSubscriptionTopic).
... error Σ0..*CodeableConceptList of errors on the subscription
Binding: SubscriptionErrorCodes (example): Codes to represent subscription error details.



doco Documentation for this format

Terminology Bindings

PathConformanceValueSet
SubscriptionStatus.languagerequiredAllLanguages
SubscriptionStatus.statusrequiredSubscriptionStatusCodes
SubscriptionStatus.typerequiredSubscriptionNotificationType
SubscriptionStatus.errorexampleSubscriptionErrorCodes

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from SubscriptionStatus

Summary

Mandatory: 0 element (1 nested mandatory element)
Must-Support: 6 elements

Structures

This structure refers to these other structures:

 

Other representations of profile: CSV, Excel, Schematron