
• Two-tier patient classification (Normal and Preferred)
• Ability to add new patients with their attendence type
• Automatic sorting of patients into appropriate lists
• Next patient calling system that prioritizes preferred patients
• Real-time display of patient lists with counts
• Menu-driven user interface
• Input validation for attendence type
• Java Runtime Environment (JRE) 8 or higher
• Basic understanding of Java programming
• Command line interface to run the application
• No special installation required beyond Java
• Clone the repository (if applicable):
git clone https://github.com/albiecr/hospital-attendence-list-management.git
cd hospital-attendence-list-management
javac management/*.java
java management.Main
1. Add patients
2. Call next patient
3. Show current patient lists
4. Exit the program
src/
└── management/
├── patient.java // Patient entity class
├── typeAttendence.java // Enum for appointment types
├── HospitalList.java // Core list management logic
└── Main.java // CLI interface and program entry point
Class | Responsibility |
---|---|
patient | Stores patient data (name + appointment type) |
typeAttendence | Defines enum values (REGULAR, PRIORITY) |
HospitalList | Manages two priority queues and core operations |
Main | Handles user interaction and menu system |
-
HospitalList
addPatient(Patient)
→ Adds to correct queuecallNext()
→ Retrieves next patient (priority first)showLists()
→ Displays current queue status
-
Main
- Interactive menu with 4 options:
- Add patient
- Call next patient
- Show lists
- Exit
- Interactive menu with 4 options:
Project Link: https://github.com/albiecr/hospital-attendence-list-management • Add patient ID or unique identifier system
• Implement persistence to save/load patient data
• Add priority levels within preferred patients
• Include patient medical information
• Develop GUI interface
• Add search functionality for patients
• Implement time tracking for patient wait times
• Add statistics generation (average wait times, etc.)
• Include emergency patient handling
• Add unit tests for better code reliability

- Fork the project
- Create your feature branch
git checkout -b feature/AmazingFeature
- Commit your changes
git commit -m 'Add some AmazingFeature'
- Push to the branch
git push origin feature/AmazingFeature
- Open a pull request