fix(task9): update assumptions, user guide, and acceptance checklist

This commit is contained in:
Atharv1705
2026-11-17 18:41:38 +05:30
parent 51e4b39c33
commit 221cc8918f
2 changed files with 15 additions and 2 deletions
+7 -2
View File
@@ -12,6 +12,8 @@ The System Administrator oversees system security, reference masters, user acces
### 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.
- **Admin Password Reset**: Admins can click "Reset password" on any user row on the Users tab to set a new password directly from the UI. Resetting invalidates all existing active sessions of that user immediately via token versioning.
- **Universal Password Policy**: Passwords must be 8–128 characters, contain at least one letter and one number, have no leading/trailing spaces, avoid common blocklisted passwords, and cannot contain the user's email username.
- **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
@@ -19,8 +21,10 @@ The System Administrator oversees system security, reference masters, user acces
- 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.
- **Bulk Imports & Duplicate Prevention**:
- Download official templates for Assets, Contracts, Calibration Plans, and Insurance Policies (templates include empty headers on Sheet 1 and example rows on Sheet 2).
- Exact duplicates in file uploads or direct creations (duplicate contracts with matching asset/type/dates, duplicate insurance policy numbers, or duplicate calibration plans per asset) are rejected with clear line-item error messages or HTTP 409 status.
- **Database Backup & Recovery**: Execute `python scripts/backup.py` to create a safe online snapshot (.tar.gz or .zip) of the database and uploaded attachments.
---
@@ -51,6 +55,7 @@ Department Users (Nurses, In-charges, Technicians) raise and monitor breakdown c
### Key Workflows
- **Scoped View**: Automatically restricted to seeing only assets and complaints belonging to their assigned department (e.g., ICU).
- If a department user account is created without an assigned department (`department_id=None`), the user is scoped to an empty dataset by default (seeing zero assets, zero complaints, and zero dashboard metrics) to prevent unintended access to hospital-wide data.
- **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.