Skip to content

Source Value Extension

Canonicalhttps://fhir.apps.health/StructureDefinition/nexus-source-value
Statusdraft · 1.33.0
BaseExtension (constraint)
ContextDomainResource (element)
SourceFSH · JSON

Incoming values this guide has no element for, kept on the record they belong to. Each child extension is one source field: its url is the field, https://fhir.apps.health/source-field/<source>/<field>, and its value is what the source held.

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
nexus-source-value-blank this profile error Extension A coded source value is only ever the code empty, for a blank. Anything else the source held is a valueString.
extension.value.ofType(code).all($this = 'empty')
nexus-source-value-fields this profile error Extension Every source value names its field with an absolute url under https://fhir.apps.health/source-field/ (/).
extension.all(url.startsWith('https://fhir.apps.health/source-field/'))
ele-1 inherited error Extension All FHIR elements must have a @value or children
hasValue() or (children().count() > id.count())
ext-1 inherited error Extension Must have either extensions or value[x], not both
extension.exists() != value.exists()