Skip to content

Encounter Profile

Canonical../StructureDefinition/nexus-emr-core-encounter
Statusdraft · 1.26.0
BaseEncounter (constraint)
SourceFSH · JSON

Defines the Encounter resource constraints for the Nexus EMR project (CII), conforming to CA-Core+ requirements.

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
encounter-appointment-single-in-primary-care this profile warning Encounter Primary-care encounters SHOULD reference at most one Appointment (the 1:1 default). Zero is valid for walk-in/unscheduled visits; more than one is valid where a single encounter fulfils several bookings, and several encounters MAY share one Appointment.
appointment.count() <= 1
dom-2 inherited error Encounter If the resource is contained in another resource, it SHALL NOT contain nested Resources
contained.contained.empty()
dom-3 inherited error Encounter 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 Encounter 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 Encounter If a resource is contained in another resource, it SHALL NOT have a security label
contained.meta.security.empty()
dom-6 inherited warning Encounter A resource should have narrative for robust management
text.div.exists()
ele-1 inherited error Encounter.meta All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
ext-1 inherited error Encounter.meta.extension Must have either extensions or value[x], not both
extension.exists() != value.exists()