Expand description
Shared SoF v2 ViewDefinition.constant[] parsing.
Both the in-process FHIRPath evaluator (this crate’s
crate::run_view_definition) and the in-DB SQL compiler in
helios-persistence walk ViewDefinition.constant[] and interpret the same
value[X] field family per the SoF v2 spec. This module is the single
source of truth for that field list and primitive recognition, so a new
primitive only needs to be added in one place.
Engines convert from ConstantValue into their own value types:
helios-sofbuilds anEvaluationResultviaConstantValue::to_evaluation_resultfor the in-process FHIRPath evaluator. The four per-versionViewDefinitionConstantTraitimpls incrate::traitsmap their typedViewDefinitionConstantValuevariants intoConstantValueand call this method.helios-persistencewalksserde_json::Valueand callsparse_constant_from_json, then lifts to itsLitValue.
Enums§
- Constant
Value - Neutral SoF constant value covering every
value[X]primitive family the SoF v2 spec allows forViewDefinition.constant[].
Functions§
- parse_
constant_ from_ json - Parses a raw JSON
ViewDefinition.constant[]entry into(name, value).