Skip to content

albiecr/hospital-attendence-list-management

Repository files navigation

Typing SVG

📜 Description

Simple project developed in the Java Programming discipline at Senac Florianópolis with the aim of studying the use of classes in Java.

✨ Features

• Patient management system with priority queues
• 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

📋 Requirements

• Java Runtime Environment (JRE) 8 or higher
• Basic understanding of Java programming
• Command line interface to run the application

⚙️ Installation

• 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

🚀 Usage

• Compile all Java files:

javac management/*.java
• Run the main class:

java management.Main
• The program will:
    1. Add patients
    2. Call next patient
    3. Show current patient lists
    4. Exit the program

🏗️ Code Structure


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 Responsibilities

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

Key Methods

  • HospitalList

    • addPatient(Patient) → Adds to correct queue
    • callNext() → Retrieves next patient (priority first)
    • showLists() → Displays current queue status
  • Main

    • Interactive menu with 4 options:
      1. Add patient
      2. Call next patient
      3. Show lists
      4. Exit

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

✉️ Contact

Albertina Rodrigues - [email protected]
Project Link: https://github.com/albiecr/hospital-attendence-list-management

🔮 Future Improvements

• 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

🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request.

  1. Fork the project

  2. Create your feature branch
    git checkout -b feature/AmazingFeature
  3. Commit your changes
    git commit -m 'Add some AmazingFeature'
  4. Push to the branch
    git push origin feature/AmazingFeature
  5. Open a pull request

About

Attendence List Management - Java CLI Application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages