Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 753 Bytes

File metadata and controls

28 lines (21 loc) · 753 Bytes

Roles

The system is designed around three roles:

Patient

  • Owns a User record with role = PATIENT
  • Has optional PatientDetail (medical history, chronic diseases, medications, etc.)
  • Can have:
    • Reports (Report)
    • Appointments with a doctor (Appointment)
    • Messages with a doctor (Message)
    • Consultation questions (Consultation)

Doctor

  • Owns a User record with role = DOCTOR
  • Can be assigned to patients via PatientDetail.doctorId
  • Can:
    • Review patient reports
    • Receive/send messages
    • Answer consultation questions (Consultation.answer)

Admin

  • Owns a User record with role = ADMIN
  • Intended for operational/system management.
  • Admin panel features are planned (see admin-panel.md).