Skip to content

This project implements a hospital queue management system with a graphical user interface using Python and Tkinter.

Notifications You must be signed in to change notification settings

prchlmrie/Hospital-Queue-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Hospital Queue Management System

This project implements a hospital queue management system with a graphical user interface using Python and Tkinter.

Files

  1. main.py: Contains the GUI implementation using Tkinter.
  2. queue_functions.py: Implements the core functionality of the queue management system.

Usage

To run the application, execute the main.py file:

python main.py

The application will open a login window. Use the staff ID "12345" to log in.

queue_functions.py

This file contains two main classes:

Patient

Represents a patient in the hospital queue.

Attributes:

  • name: Patient's name
  • id: Unique identifier for the patient
  • symptoms: Patient's symptoms
  • severity: Severity level of the patient's condition (1-10)
  • timestamp: Time when the patient was added to the queue

HospitalQueue

Manages the priority queue of patients.

Methods:

  • __init__(): Initializes the queue and loads existing data.
  • generate_id(): Generates a unique ID for new patients.
  • add_patient(name, symptoms, severity): Adds a new patient to the queue.
  • admit_patient(): Admits the patient with the highest priority.
  • delete_patient(id): Removes a patient from the queue.
  • delete_admitted_patient(id): Removes a patient from the admitted list.
  • search_patient(id): Searches for a patient by ID.
  • update_patient(id, symptoms, severity): Updates a patient's information.
  • get_queue(): Returns the current queue of patients.
  • save_data(): Saves the current queue and admitted patients to files.
  • load_data(): Loads queue and admitted patients data from files.

main.py

This file implements the GUI for the hospital queue management system. It provides the following functionalities:

  1. Staff Login
  2. Add New Patient
  3. View Patient Queue
  4. Admit Patient
  5. Search Patient
  6. Update Patient Information
  7. Delete Patient Record

The GUI is designed with a modern, color-coded interface for ease of use.

Note

This system uses file-based storage (hospital_queue.txt and admitted_patients.txt) to persist data between sessions. Ensure that the application has write permissions in its directory.

Screenshots

  • Login Frame

image

  • New Student Frame

image

  • View Queue Frame

image

  • Admit Patient Frame

image

  • Search Patient Frame

image image

  • Update Patient Frame

image

  • Delete Patient Frame

image

About

This project implements a hospital queue management system with a graphical user interface using Python and Tkinter.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages