A full-stack, enterprise-grade Clinic Management System featuring a dark-themed glassmorphism UI, multi-threaded Java backend, real-time telemetry dashboard, role-based access control, and comprehensive patient EMR management.
Aegis Suite is a Single Page Application (SPA) designed for modern healthcare clinics. It provides a unified platform for managing patients, doctors, appointments, prescriptions, billing, and real-time system diagnostics β all accessible through an elegant, premium dark-mode interface with glass-morphism design elements.
- Dual-Portal Login β Split login panel with separate Staff Login and Patient Login tabs
- Staff Registration β Register as Doctor, Receptionist, or Administrator with role-specific fields (e.g., medical specialty for doctors)
- Patient Sign-Up β Self-service patient registration with demographics, blood type, and secure passwords
- Forgot Password β Self-service password reset pipeline via email/username lookup
- Role-Based Access Control (RBAC) β Patients see a restricted dashboard; staff get full clinical tools
- Consolidated 6-Column Master Index β Dense, responsive patient table with:
- Patient Info (Name, ID, Registration Date)
- Contact & Demographics (Gender, Age, Phone, Email)
- Blood Type (color-coded badge)
- Active Alerts (allergies & chronic conditions)
- Vitals Trend (SVG sparkline charts)
- Quick Actions (View, Edit, Delete)
- Full CRUD Operations β Add, edit, view, and retire patient records
- Real-Time Search & Filtering β Instant patient lookup across all fields
- Interactive Calendar View β Visual scheduling with day/week/month navigation
- Live Clinical Queue β Drag-and-drop Kanban board for appointment status tracking
- Doctor Availability β Schedule appointments based on doctor specialties and availability
- Medication Records β Track drug names, dosages, frequencies, and durations
- Doctor-Patient Linking β Each prescription is tied to a specific doctor and patient
- Active Treatment Dashboard β View all active prescriptions at a glance
- Invoice Generation β Create itemized bills with multiple line items
- Payment Status Tracking β Track paid, pending, and overdue invoices
- Financial Overview β Dashboard summaries of total revenue, outstanding amounts, and overdue notices
- Real-Time System Metrics β Live monitoring of:
- JVM Heap Memory Usage
- Active Thread Count
- Server Uptime
- Total API Requests Served
- Average Response Time
- Database Record Count
- Glassmorphism Telemetry Cards β Responsive 4-column grid with color-coded accent borders
- SVG Sparkline Analytics β Inline vitals trend visualizations for patient records
- Dark Mode Glassmorphism β Frosted glass panels with backdrop blur effects
- Lucide Icon Integration β Crisp, modern iconography throughout the interface
- Micro-Animations β Smooth hover effects, transitions, and interactive feedback
- Fully Responsive β Adapts from desktop to tablet to mobile viewports
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β CLIENT (Browser SPA) β
β β
β index.html ββββ styles.css ββββ app.js β
β analytics.js β
β scheduler.js β
β β
β βββββββββββββββ ββββββββββββ βββββββββββββββββββββ β
β β Auth Portal β β Dashboardβ β EMR Patient Index β β
β β (Login/ β β (Stats & β β (CRUD Table + β β
β β Signup/ β β Tele- β β Sparklines) β β
β β Forgot PW) β β metry) β β β β
β βββββββββββββββ ββββββββββββ βββββββββββββββββββββ β
β βββββββββββββββ ββββββββββββ βββββββββββββββββββββ β
β β Scheduler β β Prescrip-β β Billing & Ledger β β
β β (Calendar + β β tions β β (Invoices + β β
β β Kanban) β β β β Payments) β β
β βββββββββββββββ ββββββββββββ βββββββββββββββββββββ β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β HTTP REST API (JSON)
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β JAVA BACKEND (com.sun.net.httpserver) β
β β
β ClinicServer.java βββ Multi-threaded HTTP Server β
β β (CachedThreadPool on port 8081) β
β β β
β βββ StaticFileHandler β Serves /public/* assets β
β βββ ApiHandler β RESTful JSON endpoints β
β βββ /api/patients (GET, POST, PUT, DELETE) β
β βββ /api/doctors (GET, POST, PUT, DELETE) β
β βββ /api/appointments (GET, POST, PUT, DELETE) β
β βββ /api/prescriptions (GET, POST, PUT, DELETE) β
β βββ /api/billing (GET, POST, PUT, DELETE) β
β βββ /api/dashboard (GET β telemetry metrics) β
β βββ /api/login (POST β authentication) β
β βββ /api/register (POST β user registration) β
β βββ /api/forgot-password (POST β password reset) β
β β
β Database.java βββ Data Persistence Layer β
β Logger.java βββ Request/Response Logging β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DATA PERSISTENCE β
β β
β π clinic_database.json (JSON flat-file storage) β
β ποΈ clinic.db (SQLite database) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
CLINIC MANAGEMENT SYSTEM/
β
βββ π README.md # This file
βββ π compile.bat # Java compilation script
βββ π run.bat # Server launch script (compile + run)
β
βββ π data/ # Persistent data storage
β βββ clinic_database.json # JSON flat-file database
β βββ clinic.db # SQLite database
β
βββ π lib/ # Java dependencies (bundled)
β βββ gson.jar # Google Gson β JSON serialization
β βββ sqlite-jdbc.jar # SQLite JDBC driver
β βββ slf4j-api-2.0.9.jar # SLF4J logging API
β βββ slf4j-simple-2.0.9.jar # SLF4J simple implementation
β
βββ π public/ # Frontend SPA assets
β βββ index.html # Main SPA entry point (1100+ lines)
β βββ π css/
β β βββ styles.css # Full design system & glassmorphism theme
β βββ π js/
β βββ app.js # Core SPA logic, routing, CRUD, auth
β βββ analytics.js # SVG sparkline chart engine
β βββ scheduler.js # Calendar & appointment scheduling
β
βββ π src/main/java/com/clinic/ # Java backend source
β βββ ClinicServer.java # HTTP server, API routing, handlers
β βββ Database.java # Data access layer & persistence
β βββ Logger.java # Request/response logging utility
β βββ π models/ # Data model POJOs
β βββ Patient.java # Patient entity (vitals, allergies, etc.)
β βββ Doctor.java # Doctor entity (specialty, schedule)
β βββ Appointment.java # Appointment entity
β βββ Prescription.java # Prescription entity (medications)
β βββ Billing.java # Billing/invoice entity (line items)
β βββ User.java # Authentication user entity
β
βββ π target/classes/ # Compiled Java .class files
| Requirement | Version |
|---|---|
| Java JDK | 11 or higher |
| Operating System | Windows 10/11 |
| Browser | Chrome, Edge, Firefox (modern) |
No Maven, Gradle, or Node.js required! All dependencies are bundled in the
lib/folder.
1. Clone the repository
git clone https://github.com/silentguyracer/CLINIC-MANAGEMENT-SYSTEM-.git
cd CLINIC-MANAGEMENT-SYSTEM-2. Run the application
.\run.batThis will:
- β Compile all Java source files
- β Start the multi-threaded HTTP server
- β Serve the frontend on http://localhost:8081
3. Open in browser
http://localhost:8081
| Portal | Username / Email | Password |
|---|---|---|
| Staff Login | admin |
admin123 |
| Patient Login | (Register via Sign Up) | (Your password) |
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/patients |
List all patients |
POST |
/api/patients |
Create a new patient |
PUT |
/api/patients |
Update patient record |
DELETE |
/api/patients?id={id} |
Delete a patient |
GET |
/api/doctors |
List all doctors |
POST |
/api/doctors |
Add a new doctor |
GET |
/api/appointments |
List all appointments |
POST |
/api/appointments |
Schedule an appointment |
GET |
/api/prescriptions |
List all prescriptions |
POST |
/api/prescriptions |
Create a prescription |
GET |
/api/billing |
List all invoices |
POST |
/api/billing |
Create a billing entry |
GET |
/api/dashboard |
System telemetry metrics |
POST |
/api/login |
Authenticate user |
POST |
/api/register |
Register new staff/patient |
POST |
/api/forgot-password |
Reset password |
| Layer | Technology |
|---|---|
| Frontend | HTML5, CSS3 (Glassmorphism), Vanilla JavaScript (ES6+) |
| Icons | Lucide Icons (CDN) |
| Backend | Java 11+ with com.sun.net.httpserver |
| Database | SQLite (via JDBC) + JSON flat-file |
| JSON Parsing | Google Gson |
| Logging | SLF4J Simple |
| Build System | Batch scripts (compile.bat, run.bat) |
| Concurrency | CachedThreadPool for multi-threaded request handling |
- π Dark-First Design β Carefully curated dark palette with HSL-tuned accent colors (cyan, purple, emerald, rose, amber)
- πͺ Glassmorphism β Frosted-glass panels with
backdrop-filter: blur()and subtle transparency - π± Responsive-First β CSS Grid & Flexbox layouts that adapt across desktop, tablet, and mobile
- β‘ Zero Dependencies (Frontend) β No React, No Angular, No build step β pure vanilla JS SPA
- π Role-Based Security β Patients and staff see entirely different interfaces based on authentication state
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is open source and available under the MIT License.
Sahil Kumar
- GitHub: @silentguyracer
Built with β€οΈ for modern healthcare management
Aegis Suite Β© 2026