This project is a comprehensive Hospital Management System that manages the operations of a hospital. I have used the XAMPP as database. It includes features for handling doctor, patient, prescription, admission, billing, and installment details. The system supports two types of patients: general patients who come for checkups, and patients who require admission.
- General Patients: Manage patients who come for routine checkups.
- Admitted Patients: Handle patients who require hospital admission.
- Detailed View: View detailed information about doctors, including their specialties and schedules.
- CRUD Operations: Admins can create, read, update, and delete doctor records.
- Prescription Details: Manage and view detailed prescription information.
- Patient Admission: Manage the admission process for patients requiring hospital stay.
- Billing: Handle billing details for treatments and services.
- Installment Payments: Manage installment payments for bills.
- Admin: Has full access to all features and can perform CRUD operations on all tables.
- General Users: Have limited access based on their role (e.g., doctors can manage their own schedules and patient information).
- PHP Mailer: The system includes an email authentication feature using PHP Mailer for secure communication and verification.
- Backend: PHP, MySQL
- Frontend: HTML, CSS, Bootstrap
- Email: PHP Mailer for sending verification and notification emails
- Web Server: Apache or any compatible server
- PHP: Version 7.4 or higher
- MySQL: Version 5.7 or higher
- Composer: For managing PHP dependencies
-
Clone the repository:
git clone https://github.com/TimeWithPotato/hospital-management-system.git
-
Navigate to the project directory:
cd hospital-management-system
-
Install dependencies:
composer install
-
Set up the database:
- Import the provided SQL file (
hospital_management (6).sql
) into your MySQL database. - Update the
connect.php
file with your database credentials.
- Import the provided SQL file (
-
Start the server:
- Use a local development server like XAMPP or MAMP, or set up a virtual host in Apache.
-
Access the application:
- Open your browser and navigate to
http://localhost/hospital-management-system
- Open your browser and navigate to
- URL:
http://localhost/hospital-management-system/admin
- Features: CRUD operations for doctors, patients, prescriptions, billing, and installments.
- URL:
http://localhost/hospital-management-system/user
- Features: Limited access based on user roles. Doctors can manage their schedules and patient details.
- Configuration: Update the email settings in
otp-checker.php
and other relevant files with your SMTP server details. - Functionality: The system sends OTP for verification during user registration and password recovery.
- Auto Cleanup: The system uses MySQL Event Scheduler to delete OTP records after a set period.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature-branch
- Create a pull request.