How nagarjuna-pradeepkumar/hospital-management-system works
This is a Vue/Express/MongoDB clinic-management application. Staff log in to role-based workspaces: reception registers and queues patients, doctors review patient records and maintain clinical history, complaints, prescriptions and lab results, while administrators manage users and attendance. The browser calls API routes, which dispatch to controllers that validate requests and read or update MongoDB models. The README documents the attendance planning/reporting and clinical capabilities; their detailed wiring is not fully shown in the sampled source, so those links are represented only where documented or evidenced.
Main entry points: index.js API route dispatch · Doctor.vue Doctor workspace · App.vue Vue app shell · Admin.vue Admin workspace
Components 34
Staff workspaces
- Vue app shell
client/src/App.vue - Login workspace
client/src/views/Login.vue - Reception desk
client/src/views/Reception.vue - Patient registration
client/src/components/reception/addeditpatientform.vue - Queue tokens
client/src/components/reception/queview.vue - Doctor workspace
client/src/views/Doctor.vue - Doctor dashboard
client/src/components/doctor/doctor_dashboard.vue - Doctor queue
client/src/components/doctor/doctor_que_view.vue - Patient console
client/src/components/doctor/patient_console.vue - Patient search
client/src/components/doctor/searchpatient.vue - Patient history
client/src/components/doctor/history.vue - Complaints and tests
client/src/components/doctor/complaint.vue - Admin workspace
client/src/views/Admin.vue - User management
client/src/components/admin/addeditdeleteform.vue - Attendance tools
client/src/components/admin/attendence.vue - Attendance planning
client/src/components/admin/workingdays.vue - Monthly reports
client/src/components/admin/calculate_attendence.vue
Application API
- HTTP API
client/src/plugins/axios.js - API route dispatch
server/router/index.js - Role checks
server/functions/User_check.js
Patient care
- Patient details
server/controller/patients/patient_details/index.js - Patient queue
server/controller/patients/patient_que/index.js - History records
server/controller/patients/patient_records/index.js - Clinical notes and tests
server/controller/patients/patient_complaint/index.js - Doctor statistics
server/controller/doctor/doctor_statistics/index.js
Administration
- User and login
server/controller/users/user_details/index.js - Calendar plans
server/controller/calendar/index.js - Attendance operations
server/controller/users/user_attendence/index.js
MongoDB records
- User records
server/models/Users_schema.js - Patient records
server/models/patient_schema.js - Queue records
server/models/patient_que_schema.js - Clinical records
server/models/patient-record_schema.js - Attendance records
server/models/attendence_schema.js
Other components
- Clinic staff
Connections 38
- Clinic staff → Vue app shell: uses
README.md - Vue app shell → Login workspace: routes to
README.md - Vue app shell → Reception desk: routes to
README.md - Vue app shell → Doctor workspace: routes to
README.md - Vue app shell → Admin workspace: routes to
README.md - Reception desk → Patient registration: presents
README.md - Reception desk → Queue tokens: presents
README.md - Doctor workspace → Doctor dashboard: presents
client/src/views/Doctor.vue - Doctor workspace → Doctor queue: presents
client/src/views/Doctor.vue - Doctor workspace → Patient console: presents
client/src/views/Doctor.vue - Doctor workspace → Patient search: presents
README.md - Doctor workspace → Patient history: presents
README.md - Doctor workspace → Complaints and tests: presents
README.md - Admin workspace → User management: presents
README.md - Admin workspace → Attendance tools: presents
README.md - Admin workspace → Attendance planning: presents
README.md - Admin workspace → Monthly reports: presents
README.md - Patient search → HTTP API: requests patients
client/src/components/doctor/searchpatient.vue - HTTP API → API route dispatch: sends API requests
README.md - API route dispatch → User and login: dispatches users
server/router/index.js - API route dispatch → Calendar plans: dispatches calendar
server/router/index.js - API route dispatch → Attendance operations: dispatches attendance
server/router/index.js - API route dispatch → Patient details: dispatches patients
server/router/index.js - API route dispatch → Patient queue: dispatches queue
server/router/index.js - API route dispatch → History records: dispatches records
server/router/index.js - API route dispatch → Clinical notes and tests: dispatches complaints
server/router/index.js - API route dispatch → Doctor statistics: dispatches statistics
server/router/index.js - User and login → User records: reads and writes
server/controller/users/user_details/index.js - User and login → Attendance records: updates attendance
server/controller/users/user_details/index.js - Calendar plans → Attendance records: plans attendance
- Attendance operations → Attendance records: reads and writes
server/controller/users/user_attendence/index.js - Patient details → Patient records: reads and writes
server/controller/patients/patient_details/index.js - Patient queue → Queue records: reads and writes
server/controller/patients/patient_que/index.js - History records → Clinical records: reads and writes
server/controller/patients/patient_records/index.js - Clinical notes and tests → Clinical records: updates clinical data
server/controller/patients/patient_complaint/index.js - Doctor statistics → Clinical records: reads records
- Role checks → User records: checks roles
server/functions/User_check.js - Clinical notes and tests → Role checks: checks doctor access
server/controller/patients/patient_complaint/index.js