🔧 Site Admin Guide

Complete admin guide for Pratik Sajnani (Site Administrator)

🔐 Login Credentials

Site Admin pratik.sajnani@gmail.com / admin123
Admin Portal portal/admin/
Login Page login.html
GitHub Repo pratiksajnani/adinath-hospital

📋 Admin CRUD Operations Overview

Entity CREATE READ UPDATE DELETE
👥 Patients ✅ Add new ✅ View all ✅ Edit info ✅ Remove
📅 Appointments ✅ Book new ✅ View all ✅ Change status ✅ Cancel
💊 Prescriptions via Doctor ✅ View all via Doctor ❌ Archive only
🏪 Inventory ✅ Add items ✅ View stock ✅ Update stock ✅ Remove items
💰 Sales via Store ✅ View all
👤 Staff ✅ Add new ✅ View all ✅ Edit role ✅ Deactivate

📊 Admin Dashboard Overview

The admin dashboard shows key stats at a glance:

📅 4
Today's Appointments
👥 4
Total Patients
₹470
Today's Sales
⚠️ 0
Low Stock Items
📸 Screenshot: Admin dashboard with 4 stat cards and appointment/patient tables

📅 How to Manage Appointments

View Today's Appointments

1
Open Admin Dashboard
The "Today's Appointments" table shows all booked appointments

Change Appointment Status

1
Find the Appointment Row
Shows: Time, Patient Name, Doctor, Reason, Current Status
2
Use the Status Dropdown
Change between: Pending → Confirmed → Waiting → Completed → Cancelled

Add New Appointment

1
Click "+ New Appointment" Button
2
Fill Appointment Details
Patient name, phone, doctor, date, time, reason
3
Save

👥 How to Manage Patients

View All Patients

1
Look at "Recent Patients" Table
Shows: ID, Name, Age, Phone, Visits, Last Visit Date

Search Patients

1
Use Search Box
Type patient name or phone number to filter

View Patient Details

1
Click Patient Name
View full history, appointments, prescriptions
Click the phone number to call the patient directly!

💊 How to Manage Inventory

1
Go to Medical Store (from sidebar)
Or visit store/index.html
2
View Current Stock
See all medicines with stock levels
3
Add New Medicine
Click "+ Add Medicine" → Fill details → Save
4
Update Stock
Click on item → Update quantity → Save
Items with low stock (below reorder level) show a warning ⚠️

🔄 How to Reset Demo Data

1
Click "🔄 Reset Demo" Button
Found in top-right of admin dashboard
2
Confirm Reset
All data will be restored to original demo state
This will delete all custom data! Use only for demo purposes.

📍 Admin Sidebar Navigation

✔️ Admin Demo Checklist

🔧 Technical Admin Tasks

Deploy Changes

  1. Make changes to code
  2. Commit to Git: git add -A && git commit -m "message"
  3. Push to GitHub: git push origin main
  4. AWS Amplify auto-deploys in ~2 minutes

Check Deployment

  1. Visit AWS Amplify Console
  2. Check build status
  3. Verify live site updated

Clear LocalStorage (Reset Data)

  1. Open browser DevTools (F12)
  2. Go to Application → Storage
  3. Click "Clear site data"
  4. Refresh page - demo data restored

🎬 Video Walkthrough

Watch the complete admin portal walkthrough:

▶️ View Video Script