v1
patient_review_events 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_review_events.v1.migrations - No inbound migration — this is the base version.
- bitfount.cache.types.patient_review_events.v1.model - Pydantic record for the
patient_review_eventscache table (v1). - bitfount.cache.types.patient_review_events.v1.schema - SQLAlchemy ORM for the
patient_review_eventscache table (v1). - bitfount.cache.types.patient_review_events.v1.store - CRUD for the
patient_review_eventsrecord (v1).
Classes
ORM
class ORM(**kwargs):SQLAlchemy model for the patient_review_events 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]
-
id : sqlalchemy.orm.base.Mapped[str]
-
project_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):One review a site user made of a patient for a trial.
Attributes
id: The event's ID (a UUID).project_id: The trial (project) ID.bitfount_patient_id: The Bitfount patient ID.review_status: What the user recorded, includingwithdrawn.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
id : str
- static
model_config
- static
project_id : str
- static
review_status : bitfount.cache.types._review_shared.ReviewStatus
- static
tags : dict[str, typing.Any] | None