v1
patient_reviews record, v1 — canonical aliases.
Consumers and the record registry import from here and never touch the inner
module names, mirroring flow_specs/v1/__init__.py.
Module
Submodules
- bitfount.cache.types.patient_reviews.v1.migrations - No inbound migration — this is the base version.
- bitfount.cache.types.patient_reviews.v1.model - Pydantic record for the
patient_reviewscache table (v1). - bitfount.cache.types.patient_reviews.v1.schema - SQLAlchemy ORM for the
patient_reviewscache table (v1). - bitfount.cache.types.patient_reviews.v1.store - Reads and writes for the
patient_reviewsrecord (v1).
Classes
ORM
class ORM(**kwargs):SQLAlchemy model for the patient_reviews cache 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 : sqlalchemy.orm.base.Mapped[str]
-
created_at : sqlalchemy.orm.base.Mapped[str]
-
created_by : sqlalchemy.orm.base.Mapped[str]
-
created_by_username : sqlalchemy.orm.base.Mapped[str]
-
project_id : sqlalchemy.orm.base.Mapped[str]
-
review_event_id : sqlalchemy.orm.base.Mapped[str]
-
review_status : sqlalchemy.orm.base.Mapped[str]
-
tags : sqlalchemy.orm.base.Mapped[dict[str, typing.Any] | None]
Record
class Record(**data: Any):The review currently in force for a patient and trial.
Attributes
project_id: The trial (project) ID.bitfount_patient_id: The Bitfount patient ID.review_event_id: Thepatient_review_eventsrow this projects.review_status: The verdict in force; neverwithdrawn.created_by: The reviewer's Bitfount user ID.created_by_username: The reviewer's username when they reviewed.created_at: When the review was made.tags: Arbitrary flat metadata.
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
created_at : datetime.datetime
- static
created_by : str
- static
created_by_username : str
- static
model_config
- static
project_id : str
- static
review_event_id : str
- static
review_status : bitfount.cache.types._review_shared.ReviewStatus
- static
tags : dict[str, typing.Any] | None