Patient Login
Patient authentication and self-registration
Authenticate Patient
Request
Response
Same flow as staff login — single org returns token directly, multiple orgs require selection via /select-organization.
The JWT for patients includes patient_id instead of practitioner:
Register Patient
Self-registration for new patients:
Request
Response
Registration Status Flow
| Status | Description |
|---|---|
self-registered | Just registered, pending verification |
patient | Active patient |
verified | Identity verified |
inactive | Deactivated |
Notes
- Patient authentication is a wholly separate path from staff — different membership records, different endpoint, different token issuance
- Patient detection in code:
!!claims.patient_id - Patient tokens do NOT have
practitionerorpractitioner_referenceclaims