Skip to main content

Module project_parameters

Module project_parameters 

Source
Expand description

A project’s own SearchParameters, resolved on top of the HL7 base parameters.

A process caches a project’s parameters for PROJECT_PARAMETERS_TTL. Two things refresh a copy sooner: the indexing worker drops a project’s copy once it has indexed one of its SearchParameters ([index_search_parameters_first]), and a lookup by name that misses rebuilds the copy once, so a new parameter is searchable as soon as it is indexed. The TTL bounds what neither catches: an update or delete seen by a server, a list by type (_include=*), and a second worker process.

Structs§

ProjectParameterResolver
Resolves the HL7 base parameters plus each project’s own active SearchParameters, which Index finds and Repo reads. A base parameter takes precedence over a project’s of the same name.

Constants§

PROJECT_PARAMETERS_TTL
How long a process trusts its cached copy of a project’s parameters.

Traits§

IndexSearch
A search backend’s index, as far as the resolver needs it: a type-level search whose parameters are resolved with the base parameters alone.