gdc_cmod/CHECKLIST.md
mahdahar 3cf4cc7f3f feat: Implement audit trail system for dual-level validation workflow
This commit adds comprehensive audit logging for specimen requests and sample collection activities across all roles.
Changes Summary:
New Features:
- Added AUDIT_EVENTS table schema for tracking validation and sample collection events
- Created ApiRequestsAuditController with /api/requests/(:any)/audit endpoint to retrieve audit history
- Added dialog_audit.php view component for displaying audit trails in UI
- Integrated audit logging into validation workflow (VAL1, VAL2, UNVAL events)
Database:
- Created AUDIT_EVENTS table with columns: ACCESSNUMBER, EVENT_TYPE, USERID, EVENT_AT, REASON
- Supports tracking validation events and sample collection actions
Controllers:
- RequestsController: Now inserts audit records for all validation operations
- ApiRequestsAuditController: New API controller returning validation and sample collection history
Routes:
- Added GET /api/requests/(:any)/audit endpoint for retrieving audit trail
- Removed DELETE /api/samples/collect/(:any) endpoint (uncollect functionality)
Views Refactoring:
- Consolidated dashboard layouts into shared components:
  - layout.php (from layout_dashboard.php)
  - script_requests.php (from script_dashboard.php)
  - script_validation.php (from script_validate.php)
  - content_requests.php (from dashboard_table.php)
  - content_validation.php (from dashboard_validate.php)
- Added content_validation_new.php for enhanced validation interface
2026-01-23 16:41:12 +07:00

37 lines
2.0 KiB
Markdown

# Project Checklist: Glen RME & Lab Management System
**Last Updated:** January 22, 2026
Pending:
- Restrict Print/Save-to-PDF to CS Role only (Lab can only preview, CS can print/save)
- Add Dedicated Print Button (Trigger browser/system print dialog)
- Create 'Detail Unvalidated' History Log/View (Log unvalidation actions with timestamp, user ID, and reason)
- Enhanced Patient Detail Logging (Track: Sample Collection Time, Sample Received Time, Print History)
- Add Error Handling for Preview Button (Handle empty data gracefully)
- Ensure 'Uncollect' Feature Functional (Maintain Uncollect feature functionality)
- Backend Performance & Connectivity (Investigate intermittent connection issues with Server 253)
- Update PDF Report Metadata (Replace 'Printed By' with validating user's name)
- Reprint Label (Add functionality to reprint labels)
- **Print Result Audit** (Track when result reports are printed/exported, log user and timestamp)
Completed:
- 01 : Update User Role levels (Standardize roles: Superuser, Admin, Lab, Phlebo, CS)
- 02 : Role-Based Dashboard Filtering (Filter by patient_status or service_type)
- 03 : Fix Table Sorting (Enable sorting by "No Register" and "Patient Name")
- 04 : Fix Language Toggle (Toggle lab result preview between Indonesian and English)
- 05 : Apply Row Color-Coding (Color-code "No Register" column)
- 06 : Initialize RME Sidebar Menu (Create menu items)
- 07 : Dashboard Performance (When getting data more than 100 rows, it load too slow)
- 08 : Dashboard for Lab -> no test with only number, remove request with empty test
- 09 : Dashboard for Others -> complete
- 10 : Refactor same views/*role* to views/shared
- 11 : Move all CDN to local
- 12 : Remove 'status' field on dashboard
- 13 : Restrict 'Validate' to Lab, Admin, Superuser
- 14 : Hide/Disable 'Validation' button after 2nd validation (Prevent redundant validation actions)
- 15 : Restrict 'UnValidate' to Admin, Superuser
- 16 : Remove 'UnCollect'
Addition on dev :
- adding init-isDev on index.php to set default date on dev dashboard