AyurCure HMS Server v1
========================

This edition uses PHP + MySQL and supports multiple staff computers/users.

FILES
- index.html     Front-end HMS
- api.php        Server API
- config.php     MySQL credentials + session settings
- schema.sql     Database tables
- install.php    Creates first Admin user
- .htaccess      Basic file protection

INSTALL (cPanel / shared hosting)
1. Create a MySQL database and MySQL user in cPanel.
2. Give that user ALL privileges on the HMS database.
3. Open phpMyAdmin, select the database, and import schema.sql.
   If your hosting does not allow CREATE DATABASE / USE statements, remove
   the first two lines from schema.sql before importing.
4. Edit config.php:
      DB_HOST
      DB_NAME
      DB_USER
      DB_PASS
5. Upload all files into a protected subdomain/folder such as:
      hms.yourdomain.lk
6. Open:
      https://hms.yourdomain.lk/install.php
   Create the first Admin account (password minimum 8 characters).
7. IMPORTANT: delete or rename install.php after creating the Admin.
8. Login through index.html.
9. Admin can create Reception, Doctor, Pharmacy and Cashier users.

ROLE ACCESS
Admin      - all modules + users/settings
Reception  - dashboard, patients, appointments, billing
Doctor     - dashboard, patients, appointments, consultations
Pharmacy   - dashboard, pharmacy
Cashier    - dashboard, billing, expenses, reports

SECURITY / PRODUCTION NOTES
- Use HTTPS/SSL only.
- Use strong unique passwords.
- Keep PHP/MySQL updated.
- Configure daily hosting/database backups.
- Restrict access to the HMS subdomain if possible.
- This package provides a solid functional server baseline, but before storing
  sensitive real-world medical records at scale, arrange a professional security
  review, privacy/access policy, backup/restore test and compliance review.
