Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏥 RH HOSPITAL MANAGEMENT SYSTEM - RHMS

Smart Healthcare Solution Powered by Java

"From Patient Admission to Discharge - Everything Digitized"


🎯 📌 Project Vision

RHMS is a next-generation, role-based console application built in pure Java. It automates the entire hospital workflow - from patient registration to final billing - with enterprise-level security and data persistence.

Core Mission: Reduce 80% paperwork, Eliminate human errors, Save time for doctors to focus on patients.


🌟 ✨ Key Highlights

Feature Description
👥 Multi-Role System 7 Dedicated roles with separate dashboards
🔐 Enterprise Security OTP + 3-Attempt Lock + Real-time Audit Logs
💾 Smart Data Persistence File-based storage, Auto Save/Load
🏥 End-to-End Workflow Complete Patient Lifecycle Management
⚡ High Performance Array-based processing, Zero external dependencies

👥 🔐 Role-Based Access Matrix

Role Login View Data Edit Data Delete Data Reports
Admin 👨‍💼
Doctor 👨‍⚕️
Nurse 👩‍⚕️
Lab Tech 🧪
Pharmacist 💊
Worker 👷
Patient 🧑‍🦰

Note: ✅ = Allowed | ❌ = Not Allowed


🚀 ⚡ Core Features

👥 Role-Based Modules

  • 👨‍💼 Admin: Staff management, System audit, Master control
  • 👨‍⚕️ Doctor: Diagnosis, Prescription, Appointment management
  • 👩‍⚕️ Nurse: Patient care, Ward/Bed allocation, Vitals monitoring
  • 🧪 Lab Technician: Test requests, Report upload, Result management
  • 💊 Pharmacist: Medicine stock, Billing, Dispensing
  • 👷 Worker: Support operations, Inventory
  • 🧑‍🦰 Patient: Self-registration, Book appointments, View bills

🔒 Security Arsenal

  • ✅ Username + Password Authentication
  • 🔢 4-Digit OTP for critical operations
  • 🚫 3-Attempt Lockout Anti-brute force protection
  • 📝 Real-time Audit Log - Complete activity tracking with timestamp

💾 Smart Data Management

  • File-Based Database - No external DB needed
  • Auto Save/Load on program start/exit
  • Data Validation - Prevent duplicate Patient IDs
  • Relationship Mapping - Patient ↔ Doctor ↔ Bill ↔ Appointment

📊 📋 Complete Workflow

 A[📝 Patient Registration] --> B[📅 Book Appointment] --> C[👨‍⚕️ Doctor Consultation] --> D{Need Lab Test?}
    D -->|Yes| --> E[🧪 Lab Test & Report]
    D -->|No| --> F[💊 Pharmacy]
    E --> F --> G[🛏️ Ward/Bed Allocation] --> H[💰 Generate Bill] --> I[✅ Discharge]

🛠️ ## ⚙️ Technologies & Concepts Used

  • 💻 Language: Java 17 ☕
  • 🧠 OOP Concepts: Encapsulation, Inheritance, Polymorphism, Abstraction
  • 📦 Data Structures: Arrays, ArrayList, Objects
  • 📂 File I/O: FileWriter, BufferedReader, Data Persistence
  • ⌨️ Input Handling: java.util.Scanner
  • 🛡️ Exception Handling: Custom error management
  • 🎨 UI: Color-coded Console Menu System

📁 ## 🗂️ Project Architecture


RHMS/
│
├── 📂 src/
│   ├── Main.java                    # 🚀 System Entry Point
│   ├── 📂 models/                   # Data Blueprints
│   │   ├── Patient.java
│   │   ├── Doctor.java
│   │   └── Bill.java
│   ├── 📂 modules/                  # 7 Role Controllers
│   │   ├── AdminModule.java
│   │   ├── DoctorModule.java
│   │   └── ...
│   └── 📂 utils/                    # 🔧 Helpers
│       ├── OTPGenerator.java
│       ├── AuditLogger.java
│       └── FileManager.java
│
├── 📂 data/                         # 💾 Persistent Storage
│   ├── patients.txt
│   ├── doctors.txt
│   ├── appointments.txt
│   ├── bills.txt
│   └── audit_log.txt
│
└── 📄 README.md


🏆 ## 📈 Key Achievements

  • 100% Paperless Patient record management
  • 7-in-1 System - All hospital departments covered
  • Zero Data Loss with persistent file storage
  • Enterprise Grade Security in a Console Application

🎯 ## 🔮 Future Upgrades

  • 🖼️ GUI Version using JavaFX
  • 🗄️ MySQL Database Integration
  • 🌐 Web Portal for online appointments
  • 📄 PDF Bill & Report Generation
  • 📊 Admin Analytics Dashboard

👨‍💻 ## Assignment

Developed by: MOHANARAJ RISVIKA
🎓 HND in Computer Science Student
🏫 [UPBRIGHT] | Stu ID: [UB004HNDCS]
📧 GitHub: @Rishas2006

Submitted for: UB004CS Assignment 007

About

Hospital Management System

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages