Role-based organ donation workflow app powered by PHP, MySQL, Bootstrap, and jQuery.
Role-based PHP/MySQL web application for organ request management, doctor review, admin approval workflow, and prescription-to-medicine fulfillment.
- π Project intro
- π Project structure
- β Differentiators
- π§ Features
- π§° Tech stack
- βοΈ Install methods
- π Configuration
- ποΈ Database structure
- π Entry points
- π Deployment notes
- π€ Contributing
- π License
web-based-organ-donation-system is a multi-role healthcare workflow app with:
- User registration/login and organ application submission
- Admin review, doctor assignment, and final approve/reject actions
- Doctor recommendation and prescription generation
- Pharmacist medicine inventory and order processing
- End-to-end medicine ordering and delivery status tracking
It is designed as an academic/project-friendly foundation for organ donation and associated treatment operations.
Web-based-Organ-Donation-System/
βββ index.html
βββ style.css
βββ README.md
βββ LICENSE
βββ Image/
βββ admins/
β βββ dashboard.php
β βββ adminsignin.php / adminsignup.php
β βββ accept.php / doctorassign.php / assign.php
β βββ addpharmacy.php
β βββ userdelete.php / doctordelete.php / applicationdelete.php
β βββ inc/
β β βββ config.php
β β βββ head.php
β βββ css/ js/ images/ fonts/
β βββ ...
βββ users/
β βββ dashboard.php
β βββ signin.php / signup.php
β βββ organ.php
β βββ ordermedicine.php / ordermedicinepannel.php
β βββ usercomment.php / userpriceacceptreject.php
β βββ css/ images/ fonts/
β βββ ...
βββ doctors/
β βββ doctorshomepage.php
β βββ doctorsignin.php / doctorsignup.php
β βββ accept.php
β βββ prescription.php
β βββ inc/
β β βββ config.php
β β βββ head.php
β βββ css/ js/ images/ fonts/
β βββ ...
βββ pharmacist/
βββ dashboard.php
βββ pharmacistsignin.php / pharmacistsignup.php
βββ addmedicine.php / medicinedetailsupdate.php
βββ priceupdate.php / deliverystatuschange.php
βββ inc/
β βββ config.php
β βββ head.php
βββ css/ js/ images/
βββ ...- Full role separation (
Admin,User,Doctor,Pharmacist) with dedicated dashboards - Practical workflow from organ request β doctor recommendation β admin decision
- Integrated post-approval prescription and pharmacy order lifecycle
- Bootstrap-based UI with modal-driven dashboard operations
| Feature | Status | Notes |
|---|---|---|
| User authentication | β Current | Signup/signin/logout for users |
| Admin authentication | β Current | Admin account management and dashboard access |
| Doctor authentication | β Current | Doctor signup/signin and assigned application view |
| Pharmacist authentication | β Current | Pharmacist signup/signin and medicine/order handling |
| Organ application | β Current | Users submit organ requests with date/reason |
| Doctor assignment | β Current | Admin assigns doctors to pending applications |
| Application decision | β Current | Admin approves/rejects applications |
| Recommendation flow | β Current | Doctors write recommendation/decision for assigned cases |
| Prescription flow | β Current | Doctors create prescriptions for approved cases |
| Medicine order flow | β Current | Users place orders from prescriptions |
| Pharmacy operations | β Current | Stock updates, pricing, comments, delivery updates |
- Public entry:
/index.html - Admin routes:
/admins/*(requires admin session) - User routes:
/users/*(requires user session) - Doctor routes:
/doctors/*(requires doctor session) - Pharmacist routes:
/pharmacist/*(requires pharmacist session)
- Backend: PHP (procedural style with mysqli)
- Database: MySQL / MariaDB
- Frontend: HTML, CSS, Bootstrap, JavaScript, jQuery
- Hosting target: Apache + PHP runtime (XAMPP/WAMP/LAMP compatible)
Prerequisites:
- PHP 7.4+ (or newer)
- MySQL/MariaDB
- Apache web server
git clone https://github.com/rootcode-creator/Web-based-Organ-Donation-System.git
cd Web-based-Organ-Donation-System-
Copy project into your web root (
htdocs/www). -
Create/import the MySQL database schema used by this project.
-
Configure database connection in each role config file:
admins/inc/config.phpdoctors/inc/config.phppharmacist/inc/config.php
-
Start Apache + MySQL.
-
Open
http://localhost/Web-based-Organ-Donation-System/.
This project does not use .env by default. It uses direct DB config in PHP files:
$host = "localhost";
$dbUsername = "your_db_user";
$dbPassword = "your_db_password";
$dbName = "your_db_name";Notes:
- Keep all role config files synchronized.
- Never commit real production credentials.
- Rotate any exposed credentials before deployment.
Main tables used in codebase:
usersadminsdoctorspharmacistpharmacyorganprescriptionordermedicinestockmedicine
Typical workflow:
userssubmit toorganadminsassign doctor (organ.doctor_info) and set application statusdoctorswrite recommendations and insert intoprescriptionusersplace orders intoordermedicinepharmacistupdatesstockmedicine, pricing, comments, and delivery status
- Landing page:
index.html - Admin login:
admins/adminsignin.html - User login:
users/signin.html - Doctor login:
doctors/doctorsignin.html - Pharmacist login:
pharmacist/pharmacistsignin.html
- Ensure all module-level
config.phpfiles point to the same database. - Use HTTPS and secure session settings in production.
- Add server-side validation/sanitization hardening before public deployment.
- Move credentials from source files to environment variables for safer operations.
- Fork the repository and create a focused feature branch.
- Keep pull requests scoped and include verification steps.
- Never commit credentials, secrets, or production config.
This project is licensed under the MIT License. See the LICENSE file for details.