model
Pydantic record for the patient_enrichment cache table (v1).
Classes
PatientEnrichmentRecord
class PatientEnrichmentRecord(**data: Any):One externally-supplied measurement.
Re-runs upsert on
(task_hash, bitfount_patient_id, source, code_code, laterality, measured_at).
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be
validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Variables
- static
bitfount_patient_id : str
- static
code_code : str
- static
code_system : str
- static
laterality : str
- static
measured_at : str
- static
model_config
- static
mrn : str | None
- static
processed_at : datetime.datetime
- static
run_id : str | None
- static
source : str
- static
source_hash : str
- static
tags : dict[str, typing.Any] | None
- static
task_hash : str
- static
unit : str | None
- static
value_num : float | None
- static
value_str : str | None