Skip to content

Attachment Packet Profile

Canonical../StructureDefinition/nexus-attachment-packet
Statusdraft · 1.26.0
BaseList (constraint)
SourceFSH · JSON

An attachment packet: the ordered set of chart items assembled to travel with an outbound artifact -- a letter today, an eReferral next, and forms, emails and chart prints after that.

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
nexus-note-extension-not-where-native this profile error List The resource-note extension is not used on a resource that has a native note element -- that element is the home
extension('../StructureDefinition/nexus-emr-resource-note').empty()
nexus-packet-excluded-pages-are-positive this profile error List An excluded page number is 1-based and therefore at least 1. A zero or negative value is a producer defect, not an edge case: it names no page, and a renderer that ignores it drops a page the assembler meant to keep.
entry.extension.where(url = '../StructureDefinition/nexus-attachment-packet-excluded-page').all(value.ofType(integer) >= 1)
nexus-packet-has-identity this profile error List A packet carries exactly one identifier under the Nexus attachment-packet naming system -- that identifier is which packet this is, and it is what a search for the packets on a chart finds.
identifier.where(system = '../NamingSystem/nexus-attachment-packet').count() = 1
nexus-packet-members-distinct this profile error List A resource appears at most once in a packet. Two entries naming the same resource make the packet's order ambiguous, and let one member carry two different sets of excluded pages.
entry.item.reference.empty() or entry.item.reference.isDistinct()
dom-2 inherited error List If the resource is contained in another resource, it SHALL NOT contain nested Resources
contained.contained.empty()
dom-3 inherited error List 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 List 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 List If a resource is contained in another resource, it SHALL NOT have a security label
contained.meta.security.empty()
dom-6 inherited warning List A resource should have narrative for robust management
text.div.exists()
ele-1 inherited error List.meta All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
ext-1 inherited error List.extension Must have either extensions or value[x], not both
extension.exists() != value.exists()
lst-1 inherited error List A list can only have an emptyReason if it is empty
emptyReason.empty() or entry.empty()
lst-2 inherited error List The deleted flag can only be used if the mode of the list is "changes"
mode = 'changes' or entry.deleted.empty()
lst-3 inherited error List An entry date can only be used if the mode of the list is "working"
mode = 'working' or entry.date.empty()