feat: complete requirements gaps - backup/restore, uat signoff, pm attachments, templates, and filters

This commit is contained in:
Atharv1705
2026-11-13 18:15:32 +05:30
parent cd9eb27a98
commit d9ca4bbb02
38 changed files with 1403 additions and 69 deletions
+98
View File
@@ -0,0 +1,98 @@
# Poona Hospital AMS — Role-Based User Guide
Welcome to the Poona Hospital Asset Management & Maintenance System. This quick-start guide details the day-to-day operations, permissions, and typical workflows for each user role.
All demo accounts share the password: `Demo@123`
---
## 1. System Administrator (`admin@poona.demo`)
The System Administrator oversees system security, reference masters, user access, and global configuration.
### Key Capabilities
- **Master Data Management (`/masters`)**: Maintain active Departments, Physical Locations, Equipment Categories, Vendors/Suppliers, and System Users. Masters use soft deletion to preserve historical linkage.
- **System Settings (`/settings`)**: Configure hospital-wide business rules:
- SLA thresholds (`critical_complaint_sla_hours`, `non_critical_complaint_sla_hours`)
- Alert lead times for Contracts, PM, Calibration, Insurance, and Demo Equipment
- Mandatory closure remarks toggle (`require_closure_remarks`)
- Downtime calculation milestone (`attendance`, `restoration`, or `closure`)
- Demo Clock (`demo_as_of_date`) to simulate future dates for testing alerts
- **Audit Logs (`/audit-logs`)**: Search, filter, and inspect detailed JSON diffs of all system mutations and user actions.
- **Bulk Asset Import**: Upload `.xlsx` or `.csv` files using the hospital standard template with pre-import validation preview.
- **Database Backup & Recovery**: Execute `python scripts/backup.py backup` to create a safe online snapshot of the database and uploaded attachments.
---
## 2. Biomedical Engineer (`bio@poona.demo`)
Biomedical Engineers handle physical medical assets, breakdown repairs, preventative maintenance schedules, and rounds.
### Key Workflows
- **Asset Registration & Maintenance (`/assets`)**:
- Register new medical equipment with full technical, procurement, warranty, and vendor details.
- View comprehensive 8-tab overview for any asset (PM, Calibration, Contracts, Insurance, History).
- **Breakdown Complaint Management (`/complaints`)**:
- Attend assigned complaints and log attendance timestamps.
- Document technical actions: Company Engineer (CE) details, action taken, spare parts required, root cause, and corrective action.
- Mark equipment as **Restored** when functioning (automatically returning asset to `in_service`).
- Close complaints with mandatory closure remarks.
- **Preventive Maintenance (`/pm`)**:
- View planned PM in Table or 7-column Calendar views.
- Execute PM records, attach vendor service reports/job sheets, and automatically advance next planned cycle.
- **Department Rounds (`/visits`)**:
- Conduct daily/weekly rounds, inspect equipment by department, log observations, note new equipment requirements, and link or spawn breakdown complaints directly from the visit sheet.
---
## 3. Department User (`dept@poona.demo` — ICU)
Department Users (Nurses, In-charges, Technicians) raise and monitor breakdown calls for their own department.
### Key Workflows
- **Scoped View**: Automatically restricted to seeing only assets and complaints belonging to their assigned department (e.g., ICU).
- **Raising Complaints (`/complaints`)**:
- Click **Raise Complaint**, search for the faulty equipment using `AssetPicker` (which highlights warranty and condemnation status), choose Priority (`Critical` or `Non-Critical`), and enter the problem description.
- Attach photos or fault screenshots directly.
- **Tracking Progress**:
- Monitor real-time status chips (`Open`, `In Progress`, `Closed`).
- View assignment details and attendance timestamps.
- Technical engineering fields, spare parts costs, and master configurations are safely locked (read-only).
---
## 4. Management (`mgmt@poona.demo`)
Hospital Management (Medical Superintendent, Directors, Quality Heads) review operational performance, KPIs, and reports.
### Key Capabilities
- **Hospital Operations Dashboard (`/`)**:
- High-level KPI summary: Total Assets, Equipment Under Repair, Open Complaints, Critical Breakdown Calls, and PM Compliance rate.
- Interactive charts: Complaints by Status, Complaints by Department, 6-Month Downtime Trend, and PM Performance.
- Clickable "Needs Attention" list highlighting urgent overdue items.
- **Calibration Plan Approvals (`/calibration`)**:
- Review and approve calibration frequencies set on critical biomedical equipment (gated specifically to Management and Administration).
- **8 Operational Reports (`/reports`)**:
- Monthly Maintenance Summary with downtime minutes and Uptime % calculations.
- Monthly Department Performance, PM Compliance, Calibration Due, AMC/CMC Validity, and Breakdown Analytics.
- One-click Excel spreadsheet (`.xlsx`) export and print-ready A4 landscape layouts.
---
## 5. Clinical Coordinator (`coord@poona.demo`)
Coordinators manage legal contracts, equipment warranties, insurance coverage, and loaner/demo devices.
### Key Workflows
- **Contracts & Warranties (`/contracts`)**:
- Register AMC and CMC service agreements, coverage periods, and vendor contacts.
- Upload signed contract PDFs or warranty certificates.
- Renew expiring contracts with automatic superseding of prior contracts and full history chain retention.
- **Asset Insurance (`/insurance`)**:
- Record policy numbers, insurance companies, coverage sums in INR, and effective dates.
- Quick-access **Insurance Drawer** lets users inspect policy details directly from any asset or breakdown record.
- **Demo & Trial Equipment (`/demo-equipment`)**:
- Track evaluation and trial machines on loan from vendors.
- Record serial numbers, trial durations, expected return dates, and log official returns.
- **Notifications & Expiry Alerts (`/notifications`)**:
- Receive automated 30-day advance alerts for expiring contracts, warranties, and insurance policies.