How ahzer0coder/clinic-management-system works
This is a WPF clinic-management app. Its main workflow spans patient registration, appointment booking, reception check-in and priority ordering, then doctor consultation and visit recording; reports provide a separate summary capability. Startup loads clinic data and initializes the in-memory services, while text files persist patients, appointments, visits, and waiting-room state. The shown excerpts establish startup, persistence, patient operations, and heap behavior; some screen-to-service links are documented by the README rather than shown in source.
Main entry points: StorageService.cs Text-file storage · WaitingRoomService.cs Waiting room · App.xaml.cs Application startup · PatientsView.xaml.cs Patient management
Components 19
Clinic screens
- Patient management
Datastructure_project/Views/PatientsView.xaml.cs - Appointment booking
Datastructure_project/Views/AppointmentsView.xaml.cs - Reception check-in
Datastructure_project/Views/ReceptionView.xaml.cs - Doctor consultation
Datastructure_project/Views/DoctorView.xaml.cs - Clinic reports
Datastructure_project/Views/ReportsView.xaml.cs
Clinic services
- Patient records
Datastructure_project/Services/PatientService.cs - Appointment scheduling
Datastructure_project/Services/AppointmentService.cs - Waiting room
Datastructure_project/Services/WaitingRoomService.cs - Priority min-heap
Datastructure_project/DataStructures/MinHeap.cs - Text-file storage
Datastructure_project/Services/StorageService.cs
Domain data
- Patient
Datastructure_project/Models/Patient.cs - Appointment
Datastructure_project/Models/Appointment.cs - Priority levels
Datastructure_project/Models/Priority.cs - Queue entry
Datastructure_project/Models/QueueEntry.cs - Visit record
Datastructure_project/Models/Visit.cs - Priority report data
Datastructure_project/Models/PriorityReport.cs
Runtime and persistence
- Application startup
Datastructure_project/App.xaml.cs - Clinic data files
Datastructure_project/DATA
Other components
- Clinic staff
Connections 27
- Clinic staff → Patient management: manages patients
README.md - Clinic staff → Appointment booking: books appointments
README.md - Clinic staff → Reception check-in: checks in
README.md - Clinic staff → Doctor consultation: records visits
README.md - Clinic staff → Clinic reports: views totals
README.md - Patient management → Patient records: adds or deletes
Datastructure_project/Views/PatientsView.xaml.cs - Patient management → Appointment scheduling: removes appointments
Datastructure_project/Views/PatientsView.xaml.cs - Patient management → Waiting room: removes from queue
Datastructure_project/Views/PatientsView.xaml.cs - Appointment booking → Appointment scheduling: books or edits
README.md - Reception check-in → Waiting room: checks in patients
README.md - Doctor consultation → Waiting room: calls next
README.md - Clinic reports → Priority report data: shows summaries
README.md - Application startup → Text-file storage: loads and saves
Datastructure_project/App.xaml.cs - Application startup → Patient records: initializes
Datastructure_project/App.xaml.cs - Application startup → Appointment scheduling: initializes
Datastructure_project/App.xaml.cs - Application startup → Waiting room: initializes
Datastructure_project/App.xaml.cs - Text-file storage → Clinic data files: reads and writes
Datastructure_project/Services/StorageService.cs - Waiting room → Priority min-heap: orders arrivals
Datastructure_project/Services/WaitingRoomService.cs - Priority min-heap → Queue entry: prioritizes
Datastructure_project/DataStructures/MinHeap.cs - Priority min-heap → Priority levels: compares levels
Datastructure_project/DataStructures/MinHeap.cs - Patient records → Patient: manages records
Datastructure_project/Services/PatientService.cs - Appointment scheduling → Appointment: manages bookings
Datastructure_project/Services/AppointmentService.cs - Text-file storage → Patient: loads and saves
Datastructure_project/Services/StorageService.cs - Text-file storage → Appointment: loads and saves
Datastructure_project/Services/StorageService.cs - Text-file storage → Visit record: loads and saves
Datastructure_project/Services/StorageService.cs - Text-file storage → Queue entry: loads and saves
Datastructure_project/Services/StorageService.cs - Text-file storage → Priority levels: serializes levels
Datastructure_project/Services/StorageService.cs