"From Patient Admission to Discharge - Everything Digitized"
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.
| 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 | Login | View Data | Edit Data | Delete Data | Reports |
|---|---|---|---|---|---|
| Admin 👨💼 | ✅ | ✅ | ✅ | ✅ | ✅ |
| Doctor 👨⚕️ | ✅ | ✅ | ✅ | ❌ | ✅ |
| Nurse 👩⚕️ | ✅ | ✅ | ✅ | ❌ | ✅ |
| Lab Tech 🧪 | ✅ | ✅ | ✅ | ❌ | ✅ |
| Pharmacist 💊 | ✅ | ✅ | ✅ | ❌ | ✅ |
| Worker 👷 | ✅ | ✅ | ❌ | ❌ | ❌ |
| Patient 🧑🦰 | ✅ | ✅ | ❌ | ❌ | ✅ |
Note: ✅ = Allowed | ❌ = Not Allowed
- 👨💼 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
✅ Username + PasswordAuthentication🔢 4-Digit OTPfor critical operations🚫 3-Attempt LockoutAnti-brute force protection📝 Real-time Audit Log- Complete activity tracking with timestamp
- 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
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]
- 💻 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
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
- ✅ 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
- 🖼️ GUI Version using JavaFX
- 🗄️ MySQL Database Integration
- 🌐 Web Portal for online appointments
- 📄 PDF Bill & Report Generation
- 📊 Admin Analytics Dashboard
Developed by: MOHANARAJ RISVIKA
🎓 HND in Computer Science Student
🏫 [UPBRIGHT] | Stu ID: [UB004HNDCS]
📧 GitHub: @Rishas2006
Submitted for: UB004CS Assignment 007