Skip to content

Communication Profile

Canonicalhttps://fhir.apps.health/StructureDefinition/nexus-emr-core-communication
Statusdraft (experimental) · 1.33.0
BaseCommunication (constraint)
SourceFSH · JSON

Nexus EMR profile for Communication, covering three distinct populations: WELL-internal staff chat about a patient, eReferral correspondence passed through from or to external partners, and outbound delivery (one fax, SMS or email sent to one recipient through a delivery service). First pass -- the pass-through boundary and message threading are not yet settled.

Invariants

Every rule in force on a conforming instance. This profile rows are stated here; inherited rows come from the base resource and are listed so that a constraint named on an element is findable. Invariant keys elsewhere on this page link into this table.

Key Source Severity On Rule
communication-has-category this profile warning Communication SHOULD carry a category identifying which population this Communication belongs to (internal chat vs external eReferral traffic) -- the two are otherwise indistinguishable to a reader
category.exists()
nexus-communication-outbound-delivery-address this profile error Communication A Communication carrying the nexus-communication-category outbound-delivery code SHALL carry exactly one https://fhir.apps.health/StructureDefinition/nexus-communication-delivery-address extension: the number or address the message was actually sent to.
category.coding.where(system = 'https://fhir.apps.health/CodeSystem/nexus-communication-category' and code = 'outbound-delivery').exists() implies extension.where(url = 'https://fhir.apps.health/StructureDefinition/nexus-communication-delivery-address').count() = 1
nexus-communication-outbound-medium this profile error Communication A Communication carrying the nexus-communication-category outbound-delivery code SHALL carry exactly one medium, and it SHALL carry a code from the nexus-communication-medium value set: v3 ParticipationMode FAXWRIT, EMAILWRIT or SMSWRIT.
category.coding.where(system = 'https://fhir.apps.health/CodeSystem/nexus-communication-category' and code = 'outbound-delivery').exists() implies (medium.count() = 1 and medium.coding.where((system = 'http://terminology.hl7.org/CodeSystem/v3-ParticipationMode' and (code = 'FAXWRIT' or code = 'EMAILWRIT' or code = 'SMSWRIT'))).exists())
nexus-note-extension-not-where-native this profile error Communication The resource-note extension is not used on a resource that has a native note element -- that element is the home
extension('https://fhir.apps.health/StructureDefinition/nexus-emr-resource-note').empty()
dom-2 inherited error Communication If the resource is contained in another resource, it SHALL NOT contain nested Resources
contained.contained.empty()
dom-3 inherited error Communication If 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
dom-4 inherited error Communication If 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-5 inherited error Communication If a resource is contained in another resource, it SHALL NOT have a security label
contained.meta.security.empty()
dom-6 inherited warning Communication A resource should have narrative for robust management
text.div.exists()
ele-1 inherited error Communication.meta All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
ext-1 inherited error Communication.meta.extension Must have either extensions or value[x], not both
extension.exists() != value.exists()