Files
poona-ams/docs/ACCEPTANCE_CHECKLIST.md
T

9.2 KiB

Poona Hospital AMS — Acceptance Checklist & UAT Sign-Off Matrix (Proposal §10)

This matrix maps the requirements defined in Section 10 ("Acceptance Criteria") of the Poona Hospital Asset Management System Proposal (Draft 1.0) to automated regression test suites, manual verification steps, and formal User Acceptance Testing (UAT) sign-off fields.


UAT Evaluation Matrix

# Acceptance Criterion Automated Test Coverage Manual Verification Steps UAT Status Verified Date Sign-Off / Approver
1 Auth, 5-Role RBAC, Masters & Settings (system_admin, biomedical, department_user, management, coordinator, JWT auth, login rate limiting, configurable settings, audit logs) backend/tests/test_auth_and_permissions.py
backend/tests/test_phase8_polish.py
frontend/src/test/login.test.tsx
frontend/src/test/permissions.test.ts
frontend/src/test/smoke.test.tsx
Log in with all 5 demo accounts (Demo@123), confirm role-filtered sidebar items, test /masters & /settings CRUD as admin@poona.demo, confirm /audit-logs returns 403 for non-admins, and trigger >15 rapid failed logins to observe 429. [Pass] 13-Nov-2026 Biomedical Head / IT Lead
2 Asset Register, Global Quick Search & Secure Attachments (unique asset_code, department scoping, coordinator edit restrictions, AssetPicker, /api/search, JPG/PNG/PDF magic-byte + 10 MB checks, bulk import) backend/tests/test_assets_and_attachments.py
backend/tests/test_asset_bulk_import.py
backend/tests/test_phase8_polish.py
frontend/src/test/asset-picker.test.tsx
frontend/src/test/bulk-import.test.tsx
Create/edit an asset on /assets, confirm duplicate code returns 409, verify dept@poona.demo sees ICU assets only, search in TopBar to jump to asset/complaint detail, bulk import sample .xlsx, and upload attachments. [Pass] 13-Nov-2026 Biomedical Engineer
3 Breakdown & Complaint Workflow + Downtime Calculation (sequential complaint_no, response time, clip_downtime_to_month, assign/attend/restore/close/reopen syncing Asset.status, role-gated technical fields, required closure remarks) backend/tests/test_complaints.py
backend/tests/test_time_utils.py
frontend/src/test/complaint-detail.test.tsx
Raise a complaint via AssetPicker, verify dept@poona.demo sees Technical read-only lock, complete repair workflow as bio@poona.demo, verify Asset.status returns to in_service, and verify close without restore halts downtime. [Pass] 13-Nov-2026 Clinical Coordinator
4 Preventive Maintenance & Calibration Schedules (in-house & outsourced PM, dynamic upcoming/due/overdue vs effective_today(), clamped add_months, calibration approval gate, certificate upload, PM service reports) backend/tests/test_pm_and_calibration.py
frontend/src/test/pm-page.test.tsx
frontend/src/test/calibration-page.test.tsx
Toggle Table and Calendar views on /pm, complete & reschedule cycles, verify bio@poona.demo receives 403 on calibration approval while mgmt@poona.demo can approve, and upload calibration & PM reports. [Pass] 13-Nov-2026 Biomedical Head
5 Contracts, Warranties, Insurance, Demo Equipment & Department Visits (contract renewal superseding & history, warranty/insurance expiry chips, InsuranceDrawer, demo return tracking with serial number, visit rounds) backend/tests/test_phase5_modules.py
frontend/src/test/phase5-modules.test.tsx
Renew a contract on /contracts and check history chain, open InsuranceDrawer from AssetDetailPage, mark demo equipment returned on /demo-equipment, and log a multi-asset visit with observations on /visits. [Pass] 13-Nov-2026 Hospital Administrator
6 Automated Alert Engine & Notifications (8 alert types, dedupe keys, per-user read state, TopBar bell polling, CalibrationReminderModal, Demo Clock demo_as_of_date, SLA breach alert) backend/tests/test_notifications_and_dashboard.py
frontend/src/test/phase6-modules.test.tsx
Advance TopBar Demo Clock (+20 days) as admin@poona.demo, run alert check in /settings, confirm new notifications appear without duplicates on second run, mark read per user, and check login reminder pop-up. [Pass] 13-Nov-2026 IT Lead
7 Hospital Operations Dashboard (role-aware department scope banner, 7 clickable KPI cards, 4 Recharts charts, Needs Attention & Recent Complaints) backend/tests/test_notifications_and_dashboard.py
frontend/src/test/phase6-modules.test.tsx
Compare / as mgmt@poona.demo (hospital-wide) vs dept@poona.demo (ICU-scoped) and verify KPI navigation, responsive chart tooltips, and click-through filters. [Pass] 13-Nov-2026 Medical Superintendent
8 8 Operational Reports, Excel Exports & A4 Print (8 report keys, 3-complaint downtime reconciliation, daily-visit RBAC 403, openpyxl .xlsx & SheetJS export, @media print) backend/tests/test_reports.py
frontend/src/test/reports.test.tsx
Open /reports, verify daily-visit is hidden/403 for dept@poona.demo, inspect Monthly Maintenance "How this is calculated" formula popover, download .xlsx spreadsheets, and open Print Preview. [Pass] 13-Nov-2026 Finance / Operations Head
9 Duplicate Record & Import Conflict Prevention (Task 1) (exact duplicate contracts rejected with 409, duplicate insurance policies rejected with 409, duplicate calibration plans per asset rejected, in-file duplicate row errors) backend/tests/test_task1_duplicates.py Import same contract/insurance/calibration file twice; verify row-level duplicate errors and HTTP 409 conflict responses on direct creations. [Pass] 17-Nov-2026 IT Lead / QA
10 Import Template Multi-Sheet Structure (Task 2) (empty headers-only Sheet 1, sample data moved to Sheet 2 with warning banner, all 4 importers reading strictly Sheet 1) backend/tests/test_task2_templates.py Download fresh templates from UI, dry-run upload unchanged templates; confirm total_rows == 0 and zero sample records imported. [Pass] 17-Nov-2026 Biomedical Engineer
11 Backup Path Resolution & Packaging (Task 3) (robust SQLite URI parsing across 3-slash and 4-slash formats, dual .tar.gz and .zip archive support with ams.db and db.sqlite3 aliases) backend/tests/test_backup_paths.py Run python scripts/backup.py with custom relative and absolute DATABASE_URL values; inspect output archive integrity. [Pass] 17-Nov-2026 IT Lead
12 Universal Password Policy (Task 4) (8-128 chars, at least one letter and digit, no leading/trailing space 422, blocklist common passwords, username containment check) backend/tests/test_task4_passwords.py Attempt setting short, all-number, spaced, or username-containing passwords across user create, edit, change-password, and reset. [Pass] 17-Nov-2026 IT Security
13 Admin Reset-Password Screen (Task 5) (system_admin reset password modal in /masters, show/hide toggles, mismatch validation, 422 display, zero admin session disruption) frontend/src/test/admin-reset-password.test.tsx Log in as admin@poona.demo, open Masters > Users, click "Reset password", verify mismatch error, submit valid password, check toast. [Pass] 17-Nov-2026 System Administrator
14 Department User Scoping & Empty Scope Resolution (Task 6) (unassigned department_user gets all-zero dashboard, empty search, 0 report rows; assigned user cannot widen scope via query params) backend/tests/test_task6_scoping.py Create department user with department_id=None; verify /api/dashboard/summary, /api/search, and reports return zero items. [Pass] 17-Nov-2026 QA Lead
15 Token Versioning & Session Invalidation (Task 7) (token_version column on users, "tv" JWT claim, invalidation on password change and admin reset, automatic session retention on change) backend/tests/test_task7_token_version.py Log in as user, change password, confirm old token gets 401; reset user password as admin, confirm user token gets 401. [Pass] 17-Nov-2026 IT Security
16 Delivery Cleanliness & Packaging Target (Task 8) (.gitattributes enforcing LF line endings, .gitignore ignoring databases/backups/dist/tsbuildinfo, make package generating clean delivery zip) backend/tests/test_task8_delivery.py Run make package; inspect ../poona-ams-delivery.zip to confirm zero .db, dist/, or __pycache__ files present. [Pass] 17-Nov-2026 Release Engineer

Formal Release & Sign-Off Authorization

Role Name Signature / Approval Stamp Date
Medical Superintendent / Hospital Director Dr. ___________________________ [ ] Approved for Release --2026
Head of Biomedical Engineering ___________________________ [ ] Approved for Release --2026
Head of Information Technology ___________________________ [ ] Approved for Release --2026
Lead Quality / NABH Coordinator ___________________________ [ ] Approved for Release --2026