Patients own their history
The Patient row is the root of everything clinical. Medical Entries, consents and audit events all
point at patient.id. There is no separate "patient record" entity that could drift from
the person.
patient.user_id is nullable on purpose. A Patient can exist before the person has an account, so a
Provider can file for someone who has never registered. The demo data has 37 of its
125 patients in that state. The screen that creates an unclaimed Patient, and the step where the person later claims
it, are not built; filing for an existing Patient ID is.