v1
ehr_patient_ids record, v1 — canonical aliases.
Consumers and the record registry import from here and never touch the inner
module names, mirroring steps/*/v1/__init__.py.
Module
Submodules
- bitfount.cache.types.ehr_patient_ids.v1.migrations - No inbound migration — this is the base version.
- bitfount.cache.types.ehr_patient_ids.v1.model - Pydantic record for the
ehr_patient_idscache table (v1). - bitfount.cache.types.ehr_patient_ids.v1.schema - SQLAlchemy ORM for the
ehr_patient_idscache table (v1). - bitfount.cache.types.ehr_patient_ids.v1.store - CRUD for the
ehr_patient_idsrecord (v1).
Classes
ORM
class ORM(**kwargs):SQLAlchemy model for the ehr_patient_ids cache table.
One row per patient ID returned by the EHR's patient listing endpoint.
Populated by the ehr_patient_lister step, which pages through every
patient on the configured EHR backend (NextGen or FHIR R4).
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
-
patient_id : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
processed_at : Union[sqlalchemy.orm.attributes.InstrumentedAttribute[+_T_co], +_T_co]
-
run_id : 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]
Record
class Record(**data: Any):Stored EHR patient ID record.
One row per patient surfaced by the EHR's patient listing endpoint
during an ehr_patient_lister run. Re-runs upsert on
(task_hash, patient_id).
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
model_config
- static
patient_id : str
- static
processed_at : datetime.datetime
- static
run_id : str | None
- static
tags : dict[str, typing.Any] | None
- static
task_hash : str