Rahilsamani /
Medcare
MedCare is a user-friendly healthcare appointment booking platform with secure Razorpay payment integration. Built using PHP, HTML, and CSS, it enables users to schedule and manage doctor appointments efficiently.
29/100 healthLoading repository data…
Imaadichauhan / repository
MedCare is a healthcare management system built with PHP, MySQL, HTML, CSS, JavaScript, and Bootstrap, providing secure patient management, appointment scheduling, doctor management, and an intuitive admin dashboard.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
A complete, deployment-ready Hospital Management System built with plain PHP, MySQL, HTML, CSS, and JavaScript — no frameworks required.
pdo_mysql (included by default in XAMPP)Copy the project folder into your XAMPP htdocs directory, so the path is:
C:\xampp\htdocs\hms\ (Windows)
/Applications/XAMPP/htdocs/hms/ (Mac)
/opt/lampp/htdocs/hms/ (Linux)
Start Apache and MySQL from the XAMPP control panel.
Import the database:
http://localhost/phpmyadmindatabase/hms_schema.sql — this creates the hms_db database, all tables, and seed/demo data automatically.Check your configuration in config/database.php:
define('DB_HOST', 'localhost');
define('DB_NAME', 'hms_db');
define('DB_USER', 'root');
define('DB_PASS', ''); // default XAMPP password is empty
define('BASE_URL', 'http://localhost/hms'); // change if your folder name differs
Visit the app: http://localhost/hms
You'll be redirected to the login page automatically.
| Role | Username | Password |
|---|---|---|
| Admin | Aditya | Admin@123 |
| Doctor | Aditya1 | Admin@123 |
| Receptionist | Aditya2 | Admin@123 |
New doctor accounts created via the Admin panel get the default password
Doctor@123. New staff accounts (Admin/Receptionist) created via the Admin panel get the default passwordStaff@123. In a real deployment, prompt users to change their password on first login — this demo build does not include a "change password" flow, so add one before going live with real data.
hms/
├── index.php # Entry point — redirects to login or dashboard
├── config/
│ └── database.php # DB connection + BASE_URL config
├── includes/
│ ├── auth.php # Session, role guards, CSRF, flash messages
│ ├── header.php / footer.php / sidebar.php / flash.php
├── auth/
│ ├── login.php
│ └── logout.php
├── admin/
│ ├── dashboard.php
│ └── users.php # Manage admin/receptionist accounts
├── doctor/
│ └── dashboard.php
├── receptionist/
│ └── dashboard.php
├── modules/
│ ├── patients/ (list, add, edit, view)
│ ├── doctors/ (list, add, edit)
│ ├── appointments/ (list, add)
│ ├── wards/ (list, add_ward, admit)
│ ├── lab/ (list, add)
│ ├── pharmacy/ (list, add_medicine, prescribe)
│ └── billing/ (list, add, view)
├── assets/
│ ├── css/style.css
│ └── js/app.js
└── database/
└── hms_schema.sql # Full schema + seed data
| Module | Admin | Doctor | Receptionist |
|---|---|---|---|
| Patients (view) | ✅ | ✅ | ✅ |
| Patients (add/edit) | ✅ | ❌ | ✅ |
| Doctors | ✅ full | view-only via list | view-only |
| Appointments | ✅ | view + status update (own only) | ✅ |
| Wards & Beds | ✅ | ❌ | ✅ |
| Lab Tests | ✅ | ✅ | ✅ |
| Pharmacy inventory | ✅ | view stock when prescribing | view-only |
| Prescriptions | — | ✅ | — |
| Billing | ✅ | view invoices | ✅ |
| Staff Accounts | ✅ | ❌ | ❌ |
users holds login accounts for all three roles; doctors extends it with professional details for role = doctor.patients are independent of users — they don't log in (no patient portal in this build).beds.status and admissions.status are kept in sync by the admit/discharge actions — always go through the UI rather than editing these tables directly, or they'll drift out of sync.medicines.stock_qty is automatically decremented when a doctor saves a prescription with that medicine.DECIMAL(10,2) throughout — never FLOAT — to avoid rounding errors in billing.Some natural next additions if you want to keep building:
patients login flow, separate from users)Built with plain PHP + MySQL (PDO) for maximum compatibility with XAMPP/WAMP setups — no Composer, no build step, just copy and import.
Selected from shared topics, language and repository description—not editorial ratings.
Rahilsamani /
MedCare is a user-friendly healthcare appointment booking platform with secure Razorpay payment integration. Built using PHP, HTML, and CSS, it enables users to schedule and manage doctor appointments efficiently.
29/100 healthmohdshahilshaikh /
🩺 MedCare is a web app for managing healthcare workflows. Patients can book appointments, doctors manage prescriptions, and admins oversee records. Built with HTML, CSS, JS, PHP & MySQL. Features role-based access, booking system & clean UI.
34/100 health