Skip to content

Curated Value Set Profile

Canonical../StructureDefinition/nexus-valueset
Statusdraft · 1.26.0
BaseValueSet (constraint)
SourceFSH · JSON

A curated pick-list as this estate stores one: the coded options a clinician chooses from in the chart, held per tenant and fetched by the application at the point of use.

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
dom-2 inherited error ValueSet If the resource is contained in another resource, it SHALL NOT contain nested Resources
contained.contained.empty()
dom-3 inherited error ValueSet 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 ValueSet 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 ValueSet If a resource is contained in another resource, it SHALL NOT have a security label
contained.meta.security.empty()
dom-6 inherited warning ValueSet A resource should have narrative for robust management
text.div.exists()
ele-1 inherited error ValueSet.meta All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
ext-1 inherited error ValueSet.extension Must have either extensions or value[x], not both
extension.exists() != value.exists()
vsd-0 inherited warning ValueSet Name should be usable as an identifier for the module by machine processing applications such as code generation
name.matches('A-Z{0,254}')
vsd-1 inherited error ValueSet.compose.include A value set include/exclude SHALL have a value set or a system
valueSet.exists() or system.exists()
vsd-10 inherited error ValueSet.expansion.contains Must have a system if a code is present
code.empty() or system.exists()
vsd-2 inherited error ValueSet.compose.include A value set with concepts or filters SHALL include a system
(concept.exists() or filter.exists()) implies system.exists()
vsd-3 inherited error ValueSet.compose.include Cannot have both concept and filter
concept.empty() or filter.empty()
vsd-6 inherited error ValueSet.expansion.contains SHALL have a code or a display
code.exists() or display.exists()
vsd-9 inherited error ValueSet.expansion.contains Must have a code if not abstract
code.exists() or abstract = true