CPE112 · Data Structures
Hospital Management System
A C++ terminal application that applies custom data structures to role-based patient intake, emergency prioritization, medical history, and administrative recovery workflows.
- Status
- Completed
- Role
- Team course project · 3 contributors
- Source reviewed
- 8 May 2025
What it solves
A hospital workflow needs different access paths for administrators, doctors, nurses, and patients, while routine queues, emergency priority, medical history, and reversible administration each demand different data behavior.
The team built a C++ terminal system that connects those workflows to purpose-built structures: standard and ESI-priority queues for patient flow, trees for history, maps and sets for identity, and a stack-backed undo path for administrative changes.
Architecture
- Role-based terminal
- Authenticated patients, nurses, doctors, and admins enter dedicated terminal workflows.
- Triage pipeline
- Patients move from FIFO intake through nurse-assigned ESI triage into a doctor-facing priority queue.
- CSV-backed state
- Local CSV files preserve users, queue state, and timestamped medical histories.
Technology
- C++17
- GCC
- Custom data structures
- CSV persistence
Team
Suthang Sukrueangkun, Sorawit Chaithong, Wathit Tritsananawakit.
The repository remains the source of truth for implementation details. Inspect the source