How johndave-padolina/data-structures works
This is a console-based hospital data-management system, implemented in one Python file with text-file records. Its central workflow supports appointments and consultation updates, including queueing patients, recording care, and completing consultations. The same program also provides record maintenance and patient consultation history. The excerpts show queue and action handling, but not the complete menu routing or all file operations; dashed edges indicate unverified entry-point relationships, and unsampled capabilities are represented only where supported by the file tree or excerpts.
Main entry points: hospital_system.py Priority queue · consultations.txt Consultations · doctors.txt Doctors · clinics.txt Clinics
Components 17
Consultation workflow
- Appointments
hospital_system.py - Priority queue
hospital_system.py - Care updates
hospital_system.py - Action stack
hospital_system.py
Records and history
- Record maintenance
hospital_system.py - Patient history
hospital_system.py
Text-file data
- Consultations
consultations.txt - Consultation history
consultation_history.txt - Patients
patients.txt - Doctors
doctors.txt - Hospitals
hospitals.txt - Clinics
clinics.txt - Illnesses
illnesses.txt - Symptoms
symptoms.txt - Facilities
facilities.txt
Other components
- Staff user
- Console system
hospital_system.py
Connections 12
- Staff user → Console system: uses
- Console system → Appointments: offers
hospital_system.py - Console system → Record maintenance: offers
hospital_system.py - Console system → Patient history: offers
hospital_system.py - Appointments → Priority queue: queues patients
hospital_system.py - Priority queue → Care updates: dispatches care
hospital_system.py - Care updates → Action stack: records actions
hospital_system.py - Care updates → Priority queue: dequeues completion
hospital_system.py - Priority queue → Consultations: rebuilds from
hospital_system.py - Priority queue → Doctors: looks up
hospital_system.py - Record maintenance → Clinics: saves records
hospital_system.py - Patient history → Consultations: reads history
hospital_system.py