types
Shared types and constants for steps.
The canonical home for the domain types (dataclasses) and column-name constants
used across the steps package. Split by kind of thing, so a name is locatable
from its module:
operators— the comparison vocabulary a filter accepts.clinical_defaults— default clinical bounds and thresholds.scan_columns,dicom_columns,ehr_columns,eligibility_columns,identifiers— column names, grouped by where the column comes from.enrichment— code-system and laterality-code constants for externally supplied patient data.segmentation— the biomarker label universes, display names and colours.mask_groups— a named group of segmentation labels and how its mask is combined.layers— the retinal layers a thickness is measured between.field_specs— building the catalog of matchable fields a step advertises.metrics— the calculation steps' output dataclasses.pdf_report,csv_report— per-report column selection and constants.
Nothing is re-exported here on purpose: import from the submodule that owns the name, so the import line says where the name lives.
The legacy location bitfount.federated.algorithms.ophthalmology. ophth_algo_types holds its own parallel definitions of the same domain types
(it does not import from here); the two are kept in step by design, with one
intentional divergence: GAMetrics.to_record here maps an absent
segmentation-area label to np.nan (resolving to UNKNOWN in criteria
matching), whereas the legacy copy maps it to 0.0. New code should depend on
this package, not the legacy module.
Module
Submodules
- bitfount.steps.types.clinical_defaults - Default clinical bounds and thresholds for criteria matching.
- bitfount.steps.types.csv_report - Column selection and renaming for the generated CSV reports.
- bitfount.steps.types.dicom_columns - Column names as they arrive from the DICOM datasource.
- bitfount.steps.types.ehr_columns - Column names on the EHR (non-file-system) grain.
- bitfount.steps.types.eligibility_columns - Column names and cell values carrying an eligibility verdict.
- bitfount.steps.types.enrichment - Constants for externally-supplied patient enrichment data.
- bitfount.steps.types.field_specs - Building the catalog of matchable fields a step advertises.
- bitfount.steps.types.identifiers - The patient-identifier columns, and the store tracking uploaded MRNs.
- bitfount.steps.types.imaging - Column names describing an image's placement and physical dimensions.
- bitfount.steps.types.layers - The retinal layers a thickness measurement is taken between.
- bitfount.steps.types.mask_groups - A named group of segmentation labels and how its mask is combined.
- bitfount.steps.types.metrics - The output dataclasses of the per-scan calculation steps.
- bitfount.steps.types.operators - The operator vocabulary a criteria-matching filter compares with.
- bitfount.steps.types.pdf_report - Constants and field descriptors for the generated PDF report.
- bitfount.steps.types.scan_columns - Column names for the per-scan metrics the calculation steps emit.
- bitfount.steps.types.segmentation - The segmentation and classification label universes.