A simple and minimalist clinic management system with role-based access control for 5 different user types.
- Admin - Manages users, system settings, and reports
- Doctor - Views appointments, manages medical records, diagnoses
- Doctor - Manages patients, creates medical records, conducts preliminary checkups
- Receptionist - Registers patients, manages appointments
- Patient - Books appointments, views medical history
- User authentication and role-based dashboards
- Patient self-registration system
- Appointment booking and management
- Medical records management
- Preliminary checkup recording
- Pharmacy & medicine workflows with doctor approvals
- Patient registration and management
- System reports and analytics
- NEW: Real-time notification system
- NEW: Complete activity tracking and history
- XAMPP (or similar LAMP/WAMP stack)
- PHP 7.4 or higher
- MySQL 5.7 or higher
-
Clone/Download the project
Place the project files in your XAMPP htdocs directory (e.g., C:\xampp\htdocs\Clinic-System-2\) -
Start XAMPP Services
- Start Apache
- Start MySQL
-
Create Database
- Open phpMyAdmin (http://localhost/phpmyadmin)
- Import the database file:
https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip - This will create the database and insert sample users
-
Configure Database Connection
- Open
https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip - Update database credentials if needed:
define('DB_HOST', 'localhost'); define('DB_NAME', 'clinic_system'); define('DB_USER', 'root'); define('DB_PASS', ''); // Your MySQL password
- Open
-
Access the System
- Open your browser and go to:
http://localhost/Clinic-System-2/ - You'll be redirected to the login page
- Open your browser and go to:
| Role | Username | Password |
|---|---|---|
| Admin | admin | password |
| Doctor | https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip | password |
| Doctor | https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip | password |
| Receptionist | receptionist | password |
| Patient | patient1 | password |
Clinic-System-2/
├── config/
│ └── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Database configuration
├── includes/
│ ├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Common functions
│ ├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Common header
│ ├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Common footer
│ └── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Appointments table component
├── admin/
│ ├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # User management
│ └── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # System reports
├── database/
│ └── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Database schema and sample data
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Entry point (redirects to login)
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Login page
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Patient registration page
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Logout handler
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Role-based dashboard
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Appointment management
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Patient appointment booking
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Patient's appointments
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Patient medicine center
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Patient management
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Medical records (Doctor)
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Patient's medical history
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Preliminary checkups (Doctor)
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Doctor medicine approvals
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # User profile management
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Notification management
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Activity history tracking
├── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # Access denied page
└── https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip # This file
users- All system users with role-based accesspatients- Extended patient informationdoctors- Doctor-specific informationappointments- Appointment schedulingmedical_records- Doctor's medical recordspreliminary_checkups- Doctor's preliminary checkupsmedicines- Medicine catalog, inventory, and severity rulesmedicine_orders- Patient orders plus doctor approval workflow- NEW:
activity_log- Complete user activity tracking - NEW:
notifications- Real-time notification system
- Password hashing using PHP's
password_hash() - SQL injection prevention using prepared statements
- Role-based access control
- Session management
- Input sanitization
- Register for a new account using the signup page
- Login with patient credentials
- Book appointments with available doctors
- View appointment history
- Access medical records and checkup history
- Purchase minor-condition medicines instantly
- Submit doctor approval requests for major-condition medicines and track order history
- Update personal profile information
- View assigned appointments
- Update appointment status
- Create and manage medical records
- View patient information during consultations
- Review and approve medicine requests, add notes, and mark orders fulfilled
- View daily appointments
- Record preliminary checkups (vital signs)
- Prepare patients for doctor consultations
- Access patient basic information
- Manage prescription approvals and ensure inventory availability
- Register new patients
- Schedule appointments for patients
- Manage appointment bookings
- Update patient contact information
- Manage all system users
- View system reports and statistics
- Monitor system activity
- Manage user accounts and permissions
-
Database Connection Error
- Check if MySQL service is running
- Verify database credentials in
https://github.com/mu122h4554n/Clinic-System/raw/refs/heads/main/pagurid/System-Clinic-v2.1.zip - Ensure database exists and is properly imported
-
Login Issues
- Use the default credentials provided above
- Check if the users table has data
- Clear browser cache and cookies
-
Permission Errors
- Ensure proper file permissions
- Check if all required files are present
-
Styling Issues
- Check internet connection (uses CDN for Bootstrap and FontAwesome)
- Clear browser cache
For issues or questions:
- Check the troubleshooting section above
- Verify all installation steps were followed correctly
- Check browser console for JavaScript errors
- Ensure all required PHP extensions are installed
This project is created for educational purposes. Feel free to modify and use as needed.