Skip to main content

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​

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.

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: The patient_review_events row this projects.
  • review_status: The verdict in force; never withdrawn.
  • 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_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