Skip to main content

model

Pydantic record for the scan_eligibility cache table (v1).

Classes

ScanEligibilityRecord

class ScanEligibilityRecord(**data: Any):

Stored per-scan eligibility record (one per scan, trial).

Extends EligibilityEvidenceRecord with the scan-specific columns; see the base for the shared fields (task_hash, project_id, bitfount_patient_id, status, evidence, processed_at, run_id, tags).

Attributes

  • scan_id: The scan identifier (part of the composite key).
  • file_path: Original scan-file path (captured for later file serving).
  • study_date: The scan's study date, if known.
  • laterality: The scanned eye, if known.

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 file_path : str
  • static laterality : str | None
  • static model_config
  • static scan_id : str
  • static study_date : str | None