How subayel-wali/hospital-management-system works
HMAS is a Django hospital-management application for patient, doctor, and staff workflows. Patients register and create patient records, browse doctors and availability, book appointments, then view history or submit feedback; doctors manage profiles and availability, appointments, notes, tests, and feedback; staff manage availability, appointments, tests, and audit views. The map includes the shared domain models, role checks, and major documented capabilities. Evidence is limited to the README and indexed or excerpted files; unsampled route wiring and audit configuration are not inferred.
Main entry points: staff/views.py Staff workflows · models.py Appointment records · doctor/views.py Doctor workflows · appointment/views.py Appointment workflows
Components 18
Access and Home
- Accounts and roles
hmes/account/views.py - User profiles
hmes/account/models.py - Role checks
hmes/hmes/decorator.py - Home and dashboard
hmes/home/views.py - Homepage content
hmes/home/models.py
Patients and Appointments
- Patient records
hmes/patient/views.py - Patient data
hmes/patient/models.py - Appointment workflows
hmes/appointment/views.py - Appointment forms
hmes/appointment/forms.py - Appointment records
hmes/appointment/models.py
Doctors and Tests
- Doctor workflows
hmes/doctor/views.py - Doctor forms
hmes/doctor/forms.py - Doctors and slots
hmes/doctor/models.py - Diagnostic tests
hmes/hospital_test/models.py
Staff Operations
- Staff workflows
hmes/staff/views.py - Staff forms
hmes/staff/forms.py - Audit history
hmes/staff/views.py
Other components
- Hospital user
Connections 29
- Hospital user → Accounts and roles: registers or logs in
hmes/account/views.py - Accounts and roles → User profiles: creates profile
hmes/account/views.py - Home and dashboard → Homepage content: loads images
hmes/home/views.py - Home and dashboard → Patient records: redirects by role
hmes/home/views.py - Home and dashboard → Doctor workflows: redirects by role
- Home and dashboard → Staff workflows: redirects by role
- Patient records → Role checks: checks access
hmes/patient/views.py - Patient records → Patient data: creates and reads
hmes/patient/views.py - Patient records → User profiles: reads role profile
hmes/patient/views.py - Patient records → Appointment records: loads history
hmes/patient/views.py - Hospital user → Doctor workflows: browses doctors
hmes/doctor/views.py - Doctor workflows → Doctors and slots: reads and updates
hmes/doctor/views.py - Doctor workflows → Doctor forms: saves profile
hmes/doctor/views.py - Doctor workflows → Appointment records: reads and updates
hmes/doctor/views.py - Doctor workflows → Diagnostic tests: lists and adds tests
hmes/doctor/views.py - Appointment workflows → Role checks: checks access
hmes/appointment/views.py - Appointment workflows → Doctors and slots: loads doctor slots
hmes/appointment/views.py - Appointment workflows → Patient data: loads patient records
hmes/appointment/views.py - Appointment workflows → Appointment forms: uses feedback form
hmes/appointment/views.py - Appointment workflows → Appointment records: books and updates
hmes/appointment/views.py - Staff workflows → Role checks: checks access
hmes/staff/views.py - Staff workflows → Doctors and slots: updates availability
hmes/staff/views.py - Staff workflows → Appointment records: lists appointments
hmes/staff/views.py - Staff workflows → Diagnostic tests: creates and updates
hmes/staff/views.py - Staff workflows → Staff forms: uses test form
hmes/staff/views.py - Staff workflows → Audit history: loads log entries
hmes/staff/views.py - Appointment records → Doctors and slots: references slots
hmes/appointment/models.py - Appointment records → Patient data: references patients
hmes/appointment/models.py - Appointment records → Diagnostic tests: associates tests
hmes/appointment/models.py