schema
SQLAlchemy ORM for the patient_eligibility cache table (v1).
One row per (patient, trial), keyed by task_hash. evidence_json is the
rolled-up view whose scan-level criteria all come from the single
determined_by_scan (coherent, no cross-eye cherry-picking). Declares its own
local Base (isolated MetaData) carrying the shared nullable tags column.
evidence_json bears PHI (clinical values per criterion) and is stored
plaintext.
Classes
Base
class Base(**kwargs: Any):Local declarative base for patient_eligibility v1.
Owns an isolated MetaData and carries the shared nullable tags JSON
column that every ORM in this version inherits.
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and
values in kwargs.
Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.
Ancestors
Subclasses
Variables
- static
metadata
- static
registry
- static
tags : sqlalchemy.orm.base.Mapped[dict[str, typing.Any] | None]
PatientEligibility
class PatientEligibility(**kwargs):SQLAlchemy model for the patient_eligibility table.
A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and
values in kwargs.
Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.
Ancestors
Variables
-
bitfount_patient_id : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
created_date : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
determined_by_scan : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
evidence_json : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
processed_at : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
project_id : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
run_id : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
status : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
tags : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
task_hash : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]