Skip to content

Attributed Fact Extension

Canonical../StructureDefinition/nexus-attributed-fact
Statusdraft (experimental) · 1.26.0
BaseExtension (constraint)
ContextProvenance (element)
SourceFSH · JSON

One factual statement in a piece of AI-generated text, together with the citation(s) that back it: verbatim quotes from the source material the statement was derived from.

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
attributed-fact-citations-are-substantive this profile error Extension Every citation must carry a non-empty verbatim quote, and the statement itself must be non-empty -- an empty string satisfies the cardinality while citing nothing, leaving a fact that cannot be audited against its source
extension('statement').value.ofType(string) != '' and extension('citation').all(extension('quote').value.ofType(string) != '')
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()