Skip to main content

protocol

What the eligibility domain needs of the data layer.

The evidence behind a patient's verdict for one trial.

Classes​

EligibilityRepository​

class EligibilityRepository(*args, **kwargs):

Read-facade over patient-eligibility data.

Methods speak the API's vocabulary (trial/project and patient IDs) and return pydantic response models. Implementations hide any underlying storage detail (e.g. the cache's task_hash keying).

Methods​


get_eligibility_evidence​

def get_eligibility_evidence(    self, bitfount_patient_id: str, project_id: str,) ‑> EligibilityEvidence | None:

Return eligibility evidence for a patient on a trial, or None.

Arguments

  • bitfount_patient_id: The Bitfount patient ID.
  • project_id: The trial (project) ID.

Returns The eligibility evidence, or None if the (patient, trial) pair is not found.