Repository navigation
Admin Guide
Complete guide for system administrators using HealthFirst Hospital Management System.
- Admin Dashboard Overview
- User Management
- Doctor Management
- Appointment Management
- System Configuration
- Reports & Analytics
- Audit Logs
-
Login:
- URL:
http://localhost:8080/login - Username:
admin - Password:
password(change immediately!)
- URL:
-
Dashboard URL:
- After login:
http://localhost:8080/admin/dashboard
- After login:
The admin dashboard displays:
| Widget | Description |
|---|---|
| Total Users | Count of all system users |
| Active Doctors | Number of registered doctors |
| Today's Appointments | Appointments scheduled for today |
| Pending Invoices | Outstanding payment count |
| Low Stock Medicines | Pharmacy inventory alerts |
| Recent Activities | Latest system activities |
Navigation: Dashboard β Users β All Users
π URL: /admin/users
Features:
- View all registered users
- Filter by role (Patient, Doctor, Pharmacist, etc.)
- Search by name or email
- Sort by registration date
Steps:
- Click "Add New User" button
- Fill in user details:
- Full Name - Email Address - Username - Phone Number - Role (Admin/Doctor/Patient/Pharmacist/Accountant/Receptionist) - Initial Password - Click "Create User"
- User receives welcome email
Code Example:
// UserController.java
@PostMapping("/admin/users/create")
public String createUser(@ModelAttribute User user) {
userService.createUser(user);
return "redirect:/admin/users?success";
}Steps:
- Navigate to user list
- Click "Edit" next to user
- Modify user information
- Click "Update User"
Editable Fields:
- Name
- Phone
- Role
- Account Status (Active/Inactive)
Steps:
- Navigate to user list
- Click "Delete" button
- Confirm deletion in popup
- User and associated data will be removed
Cascade Deletion:
- User profile deleted
- Associated appointments marked as cancelled
- Audit log entry created
Steps:
- Select user from list
- Click "Reset Password"
- New temporary password generated
- Password sent to user's email
Navigation: Dashboard β Doctors β Add Doctor
Required Information:
Personal Details:
- Full Name *
- Email Address *
- Phone Number *
- Date of Birth
- Gender
Professional Details:
- Specialization * (e.g., Cardiology)
- License Number *
- Years of Experience
- Qualifications (comma-separated)
Account Details:
- Username *
- Password *
Additional:
- Profile Photo (optional)
- Biography
Example:
Name: Dr. Sarah Johnson
Specialization: Cardiology
License: MED-12345
Experience: 10 years
Qualifications: MBBS, MD, FACC
Steps:
- Go to Doctors list
- Click "Manage Schedule"
- Set available days and time slots:
Monday: 09:00 AM - 05:00 PM Tuesday: 09:00 AM - 05:00 PM Wednesday: OFF Thursday: 09:00 AM - 05:00 PM Friday: 09:00 AM - 05:00 PM Saturday: 09:00 AM - 01:00 PM Sunday: OFF - Save changes
Available Metrics:
- Total appointments
- Completed consultations
- Patient satisfaction rate
- Average consultation time
- Revenue generated
Navigation: Dashboard β Appointments
Filter Options:
- By Date Range
- By Doctor
- By Status (Scheduled/Completed/Cancelled)
- By Patient
Actions Available:
| Action | Description |
|---|---|
| Reschedule | Change date/time |
| Reassign | Assign to different doctor |
| Cancel | Cancel with reason |
| Add Notes | Administrative notes |
Generate Reports:
1. Select date range
2. Choose report type:
- Daily Appointment Summary
- Doctor-wise Appointments
- Cancellation Analysis
- No-show Report
3. Export as PDF/Excel
Navigation: Dashboard β Settings β Email Configuration
SMTP Host: smtp.gmail.com
SMTP Port: 587
Username: admin@hospital.com
Password: ************
From Name: HealthFirst HospitalTest Email:
1. Click "Send Test Email"
2. Enter recipient email
3. Verify delivery
Configurable Settings:
Appointment Settings:
β Slot Duration: 30 minutes
β Advance Booking: 30 days
β Cancellation Policy: 24 hours notice
Business Hours:
β Opening Time: 09:00 AM
β Closing Time: 05:00 PM
β Working Days: Monday - Saturday
Payment Settings:
β Card Processing Fee: 2.5%
β Late Payment Penalty: 5%
β Payment Plan Options: 3-12 months
Create Backup:
# Manual Database Backup
mysqldump -u root -p hospital_management > backup_$(date +%Y%m%d).sql
# Automated Backup (Cron Job)
0 2 * * * /usr/bin/mysqldump -u root -p hospital_management > /backups/db_$(date +\%Y\%m\%d).sqlRestore from Backup:
mysql -u root -p hospital_management < backup_20251024.sqlAvailable Reports:
-
Revenue Report
- Daily/Monthly/Yearly revenue
- Payment method breakdown
- Outstanding invoices
-
Department-wise Revenue
- Consultation fees
- Pharmacy sales
- Lab services
-
Payment Collection
- Cash vs. Card vs. Bank Transfer
- Payment plan status
-
Appointment Analytics
- Booking trends
- Doctor utilization
- Peak hours analysis
-
Patient Demographics
- Age distribution
- Gender ratio
- Location-wise patients
-
Inventory Reports
- Stock levels
- Expiring medicines
- Reorder recommendations
Steps:
1. Navigate to Reports β Custom Report
2. Select report parameters:
- Report Type
- Date Range
- Filters
3. Preview Report
4. Export (PDF/Excel/CSV)
5. Schedule recurring reports (optional)
Navigation: Dashboard β System β Audit Logs
Log Information:
- Timestamp
- User who performed action
- Action type (Create/Update/Delete)
- Resource affected
- IP Address
- Status (Success/Failed)
Example Log Entry:
[2025-10-24 10:30:15] Admin (admin@hospital.com)
Action: USER_CREATED
Resource: User#123 (Dr. John Doe)
IP: 192.168.1.100
Status: SUCCESS
Filter by:
- Date Range
- User
- Action Type
- Resource Type
- Status
1. Apply filters
2. Click "Export Logs"
3. Choose format (CSV/JSON)
4. Download file
Enforce Strong Passwords:
- Minimum 8 characters
- At least one uppercase letter
- At least one number
- At least one special character
Enable 2FA for admin accounts:
1. Go to Security Settings
2. Enable 2FA
3. Scan QR code with authenticator app
4. Verify with code
Session Timeout: 30 minutes
Maximum Concurrent Sessions: 1
Force Logout on Password Change: Yes
- Check server status
- Verify database connectivity
- Review application logs
- Contact technical support
- Immediately disable affected accounts
- Reset all passwords
- Review audit logs
- Notify affected users
- Document incident
| Task | Frequency | Priority |
|---|---|---|
| User Password Resets | Daily | High |
| Doctor Schedule Updates | Weekly | Medium |
| Report Generation | Monthly | Low |
| System Backup | Daily | Critical |
| Audit Log Review | Weekly | High |
Keyboard Shortcuts:
Ctrl + U : Users Management
Ctrl + D : Doctors List
Ctrl + A : Appointments
Ctrl + R : Reports
Ctrl + S : Settings
Need Help? Contact: kavindusahansilva@gmail.com