Skip to main content

Module bind

Module bind 

Source
Expand description

Bind values from a supplied Parameters resource to Library.parameter declarations, using FHIR type codes to choose the right rusqlite value.

Structs§

BoundParam
A named, type-checked binding. The handler passes a Vec<BoundParam> to the engine; name is the Library.parameter.name without a leading colon.

Constants§

BINDABLE_PARAMETER_TYPES
FHIR type codes this binder knows how to map to a Parameters.parameter.value[x] — the source of truth for what a Library.parameter[].type value this module can actually bind, and the list a caller building a type picker (#841’s “Add parameter”) should offer so it never diverges from what running the query actually supports.

Functions§

bind_supplied_params
Walks the supplied parameters Parameters resource and produces bindings for every Library.parameter[use="in"]. Missing values fall back to the declared default; if no default, returns BindParameter.