Criteria Requirements Library Profile¶
| Canonical | ../StructureDefinition/nexus-criteria-requirements |
|---|---|
| Status | draft · 1.26.0 |
| Base | Library (constraint) |
| Source | FSH · 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 Resourcescontained.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 resourcecontained.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.lastUpdatedcontained.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 labelcontained.meta.security.empty() |
dom-6 |
inherited | warning | Library |
A resource should have narrative for robust managementtext. |
drq-1 |
inherited | error | Library.dataRequirement.codeFilter |
Either a path or a searchParam must be provided, but not bothpath.exists() xor searchParam.exists() |
drq-2 |
inherited | error | Library.dataRequirement.dateFilter |
Either a path or a searchParam must be provided, but not bothpath.exists() xor searchParam.exists() |
ele-1 |
inherited | error | Library.meta |
All FHIR elements must have a @value or childrenhasValue() or (children().count() > id.count()) |
ext-1 |
inherited | error | Library.extension |
Must have either extensions or value[x], not bothextension.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 generationname.matches('A-Z{0,254}') |