Skip to content

Criteria Requirements Library Profile

Canonical../StructureDefinition/nexus-criteria-requirements
Statusdraft · 1.26.0
BaseLibrary (constraint)
SourceFSH · JSON

The data-requirements manifest generated for a compiled clinical criterion: a FHIR R4 Library with type = module-definition, declaring the resource types the logic retrieves, the profiles they must satisfy, the code and value-set filters applied, and the elements read. Derived from the compiled logic rather than authored beside it, so it cannot drift from the criteria it describes. A deployment artifact verified when a consuming host starts, not an API surface an application reaches.

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 Library If the resource is contained in another resource, it SHALL NOT contain nested Resources
contained.contained.empty()
dom-3 inherited error Library 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 Library 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 Library If a resource is contained in another resource, it SHALL NOT have a security label
contained.meta.security.empty()
dom-6 inherited warning Library A resource should have narrative for robust management
text.div.exists()
drq-1 inherited error Library.dataRequirement.codeFilter Either a path or a searchParam must be provided, but not both
path.exists() xor searchParam.exists()
drq-2 inherited error Library.dataRequirement.dateFilter Either a path or a searchParam must be provided, but not both
path.exists() xor searchParam.exists()
ele-1 inherited error Library.meta All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
ext-1 inherited error Library.extension Must have either extensions or value[x], not both
extension.exists() != value.exists()
lib-0 inherited warning Library Name should be usable as an identifier for the module by machine processing applications such as code generation
name.matches('A-Z{0,254}')