queries
Query layer over the per-table cache types.
bitfount.cache.types is decomposed by table: one package per record, each
owning its own ORM, migrations and store. Some questions a consumer asks are
about a concept that spans tables — a patient's eligibility for a trial, for
instance, which is the analysis verdict (patient_eligibility) overridden by
the site's own review (patient_reviews), resolved against the published
trials_published_data_pointer.
Those questions live here, in sibling modules named for the concept rather than
the table. The dependency runs one way: queries reads the types' schemas,
models and stores; a type's store never imports another type, nor this package.
Module
Submodules
- bitfount.cache.queries.dataset_liveness - Whether a dataset is still live for a trial.
- bitfount.cache.queries.dataset_scans - Which of a trial's stored scans the file inventory holds under given datasets.
- bitfount.cache.queries.eligibility - The trial-eligibility read model.