Post-Acute Orders (PAO) (DME-Orders)
0.2.0 - STU1 Ballot

This page is part of the Post Acute Orders FHIR IG (v0.2.0: STU 1 Ballot 2) based on FHIR R4. . For a full list of available versions, see the Directory of published versions

Resource Profile: PAOxSubscription

PAO Subscription Resource Profile The subscription resource should accompany the initial message bundle to provide a mechanism of informing the ordering provider when there is a change in the order as indicated by a change in the Task resorurce. The subscriber has the option of receiving a notifiction when a change occurs or receiving the updated task and any relevant order resources (device, service, medication)

The official URL for this profile is:

http://hl7.org/fhir/us/dme-orders/StructureDefinition/PAOX-subscription

Intro

Formal Views of Profile Content

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

This structure is derived from Subscription

Summary

Must-Support: 8 elements

This structure is derived from Subscription

NameFlagsCard.TypeDescription & Constraintsdoco
.. Subscription 0..*SubscriptionServer push subscription criteria
... status S1..1coderequested | active | error | off
... reason S1..1stringDescription of why this subscription was created
... criteria S1..1stringRule for server push
.... type S1..1coderest-hook | websocket | email | sms | message
.... endpoint S0..1urlWhere the channel points to
.... payload S0..1codeMIME type to send, or omit for no payload
.... header S0..*stringUsage depends on the channel type

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Subscription I0..*SubscriptionServer push subscription criteria
... id Σ0..1stringLogical id of this artifact
... meta ΣI0..1MetaMetadata about the resource
... implicitRules ?!ΣI0..1uriA set of rules under which this content was created
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension I0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!I0..*ExtensionExtensions that cannot be ignored
... status ?!SΣI1..1coderequested | active | error | off
Binding: SubscriptionStatus (required)
... contact ΣI0..*ContactPointContact details for source (e.g. troubleshooting)
... end ΣI0..1instantWhen to automatically delete the subscription
... reason SΣI1..1stringDescription of why this subscription was created
... criteria SΣI1..1stringRule for server push
... error ΣI0..1stringLatest error note
... channel SΣI1..1BackboneElementThe channel on which to report matches to the criteria
.... id 0..1stringUnique id for inter-element referencing
.... extension I0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!ΣI0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... type SΣI1..1coderest-hook | websocket | email | sms | message
Binding: SubscriptionChannelType (required)
.... endpoint SΣI0..1urlWhere the channel points to
.... payload SΣI0..1codeMIME type to send, or omit for no payload
Binding: Mime Types (required)
.... header SΣI0..*stringUsage depends on the channel type

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Subscription I0..*SubscriptionServer push subscription criteria
... status ?!ΣI1..1coderequested | active | error | off
Binding: SubscriptionStatus (required)
... reason ΣI1..1stringDescription of why this subscription was created
... criteria ΣI1..1stringRule for server push
.... type ΣI1..1coderest-hook | websocket | email | sms | message
Binding: SubscriptionChannelType (required)
.... endpoint ΣI0..1urlWhere the channel points to
.... payload ΣI0..1codeMIME type to send, or omit for no payload
Binding: Mime Types (required)
.... header ΣI0..*stringUsage depends on the channel type

doco Documentation for this format

This structure is derived from Subscription

Summary

Must-Support: 8 elements

Differential View

This structure is derived from Subscription

NameFlagsCard.TypeDescription & Constraintsdoco
.. Subscription 0..*SubscriptionServer push subscription criteria
... status S1..1coderequested | active | error | off
... reason S1..1stringDescription of why this subscription was created
... criteria S1..1stringRule for server push
.... type S1..1coderest-hook | websocket | email | sms | message
.... endpoint S0..1urlWhere the channel points to
.... payload S0..1codeMIME type to send, or omit for no payload
.... header S0..*stringUsage depends on the channel type

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Subscription I0..*SubscriptionServer push subscription criteria
... id Σ0..1stringLogical id of this artifact
... meta ΣI0..1MetaMetadata about the resource
... implicitRules ?!ΣI0..1uriA set of rules under which this content was created
... text I0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension I0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!I0..*ExtensionExtensions that cannot be ignored
... status ?!SΣI1..1coderequested | active | error | off
Binding: SubscriptionStatus (required)
... contact ΣI0..*ContactPointContact details for source (e.g. troubleshooting)
... end ΣI0..1instantWhen to automatically delete the subscription
... reason SΣI1..1stringDescription of why this subscription was created
... criteria SΣI1..1stringRule for server push
... error ΣI0..1stringLatest error note
... channel SΣI1..1BackboneElementThe channel on which to report matches to the criteria
.... id 0..1stringUnique id for inter-element referencing
.... extension I0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!ΣI0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... type SΣI1..1coderest-hook | websocket | email | sms | message
Binding: SubscriptionChannelType (required)
.... endpoint SΣI0..1urlWhere the channel points to
.... payload SΣI0..1codeMIME type to send, or omit for no payload
Binding: Mime Types (required)
.... header SΣI0..*stringUsage depends on the channel type

doco Documentation for this format

 

Other representations of profile: Schematron

Terminology Bindings

PathConformanceValueSet
Subscription.languagepreferredCommonLanguages
Max Binding: AllLanguages
Subscription.statusrequiredSubscriptionStatus
Subscription.channel.typerequiredSubscriptionChannelType
Subscription.channel.payloadrequiredMime Types

Constraints

IdPathDetailsRequirements
dom-2SubscriptionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3SubscriptionIf 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().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4SubscriptionIf 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-5SubscriptionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6SubscriptionA resource should have narrative for robust management
: text.`div`.exists()
ele-1Subscription.metaAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.implicitRulesAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.languageAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.textAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Subscription.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Subscription.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Subscription.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Subscription.statusAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.contactAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.endAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.reasonAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.criteriaAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.errorAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.channelAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.channel.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Subscription.channel.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Subscription.channel.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Subscription.channel.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Subscription.channel.typeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.channel.endpointAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.channel.payloadAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Subscription.channel.headerAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())

Notes:

Notes