Back to Data Models
Consultation
AgreedUpdated 2024-03-28
A scheduled or ad-hoc video consultation between a patient and a doctor.
Open questions / notes
Still deciding: should we store a full transcript or just a summary? Doctor wants transcript, legal says summary only.
Fields
9 fields defined
| Name | Type | Required | Unique | Description |
|---|---|---|---|---|
| id | uuid | Primary key | ||
| patientId | uuid | — | FK → Patient attending the consultation | |
| doctorId | uuid | — | FK → Doctor conducting the consultation | |
| scheduledAt | datetime | — | When the consultation is booked for | |
| startedAt | datetime | optional | — | When the call actually began |
| endedAt | datetime | optional | — | When the call ended |
| status | enum scheduledin_progresscompletedcancelledno_show | — | Lifecycle state | |
| videoRoomId | string | optional | Twilio room SID for the video call | |
| summary | text | optional | — | Doctor's notes written after the call |
Relationships
How this model connects to others
Consultationbelongs toPatient
The patient in this consultation
Consultationbelongs toDoctor
The doctor conducting the call
ER Diagram
Auto-generated from the fields and relationships above
Other Models
More models in this project