Skip to main content

environment_variables

Function environment_variables 

Source
pub fn environment_variables() -> &'static [&'static str]
Expand description

The FHIRPath function catalog and the FHIRPath environment variables, re-exported for a completion endpoint’s function/variable candidates.

helios_fhirpath is already this crate’s own dependency (used above to parse every expression this module lints); re-exporting these four items here — rather than a caller like helios-ui taking a direct helios-fhirpath dependency of its own just to read a static catalog — keeps that catalog reachable through the one edge helios-ui already has to this crate, the same way node_keys exposes the key model instead of a caller duplicating it. The environment variables evaluator resolves as special cases when evaluating %name — the fixed subset of the FHIRPath environment variables that have a single literal name. Excludes the %vs-[name]/%ext-[name] families, which are patterns rather than enumerable names, and %terminologies, which is a namespace object rather than a value.

Kept in sync with evaluator’s handling of these names by a test (each_environment_variable_evaluates_without_an_undefined_variable_error) that evaluates %<name> for each entry against a minimal context and asserts it does not produce the “undefined variable” error an unknown name like %definitelyUnknown does.