Back to Data Models
Patient
DraftUpdated 2024-04-05
A person receiving medical care through the platform.
Open questions / notes
Open question: do we store full EHR data here or only a reference to the hospital's system? Current lean is reference-only for GDPR.
Fields
8 fields defined
| Name | Type | Required | Unique | Description |
|---|---|---|---|---|
| id | uuid | Primary key | ||
| firstName | string | — | Legal first name | |
| lastName | string | — | Legal last name | |
| dateOfBirth | date | — | Used for identity verification | |
| bsn | string | optional | Dutch citizen service number — nullable for non-NL patients | |
| string | Login email and notification address | |||
| ehrReference | string | optional | — | External ID in the hospital's EHR system |
| createdAt | datetime | — | When the patient registered |
Relationships
How this model connects to others
Patienthas manyConsultation
All consultations this patient has had
ER Diagram
Auto-generated from the fields and relationships above
Other Models
More models in this project