Hospital Management System
The Hospital Management System (HMS) is a comprehensive software application designed to
manage all aspects of a hospital’s operations — from patient registration to discharge. It integrates
modules for patient records, appointments, billing, staff management, and pharmacy, ensuring
smooth coordination between departments and efficient use of resources.
Objectives:
To automate patient data entry and retrieval. To streamline appointment scheduling and billing. To
manage medical staff, departments, and inventory efficiently. To maintain accurate patient medical
histories and reports.
Major Modules:
Module Description
Patient Management Handles patient registration, admission, discharge, and records.
Doctor Management Maintains doctor details, schedules, and specialization.
Appointment Scheduling Manages patient appointments with doctors efficiently.
Billing System Generates invoices and tracks payments for services provided.
Pharmacy Management Tracks medicines stock, issue, and purchase details.
Staff & Payroll Manages staff details, attendance, and salary processing.
Reports Generates medical, financial, and administrative reports.
Sample Java Code (Patient Registration Module):
import java.util.*; class Patient { String name; int age; String gender; String
disease; public Patient(String name, int age, String gender, String disease) {
this.name = name; this.age = age; this.gender = gender; this.disease = disease; } }
public class HospitalManagement { public static void main(String[] args) { List
patients = new ArrayList<>(); Scanner sc = new Scanner(System.in);
System.out.print("Enter number of patients: "); int n = sc.nextInt(); for (int i =
0; i < n; i++) { System.out.println("\nEnter details for patient " + (i + 1) + ":");
System.out.print("Name: "); String name = sc.next(); System.out.print("Age: "); int
age = sc.nextInt(); System.out.print("Gender: "); String gender = sc.next();
System.out.print("Disease: "); String disease = sc.next(); patients.add(new
Patient(name, age, gender, disease)); } System.out.println("\nPatient Records:");
for (Patient p : patients) { System.out.println(p.name + " (" + p.age + ", " +
p.gender + ") - " + p.disease); } } }
Conclusion:
The Hospital Management System provides a digital solution to manage hospital workflows
effectively, ensuring accuracy, accessibility, and efficiency. By automating manual processes, it
improves patient care and reduces administrative burden.