Skip to main content

Module constants

Module constants 

Source
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:

Enums§

ConstantValue
Neutral SoF constant value covering every value[X] primitive family the SoF v2 spec allows for ViewDefinition.constant[].

Functions§

parse_constant_from_json
Parses a raw JSON ViewDefinition.constant[] entry into (name, value).