Nexus EMR profile for Flag, carrying a singleton administrative free-text field about a patient (booking alert or patient note). The patient-flag-type coding discriminates the field; the free text rides on Flag.code.text. Backs the Patient Profile Notes section.
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-flag-admin-is-a-field
this profile
error
Flag
An administrative flag carries a patient-flag type and the field's text -- it is a singleton Patient Profile field, not a free alert category.coding.where(system = 'http://terminology.hl7.org/CodeSystem/flag-category' and code = 'admin').exists() implies (code.coding.where(system = '../CodeSystem/nexus-emr-patient-flag-type').exists() and code.text.exists())
dom-2
inherited
error
Flag
If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3
inherited
error
Flag
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
Flag
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
Flag
If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6
inherited
warning
Flag
A resource should have narrative for robust management text.div.exists()
ele-1
inherited
error
Flag.meta
All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1
inherited
error
Flag.meta.extension
Must have either extensions or value[x], not both extension.exists() != value.exists()