93 lines
3.4 KiB
Markdown

## 0. Backend Coordination (clqms01-be repo)
**These backend changes must be completed before dependent frontend tasks:**
- [ ] 0.1 Add Specimen delete endpoint to Routes.php
- [ ] 0.2 Implement SpecimenController::delete() method
- [ ] 0.3 Create UserController with CRUD methods
- [ ] 0.4 Create UserModel for database operations
- [ ] 0.5 Add user routes to Routes.php
- [ ] 0.6 Test backend endpoints with Postman/curl
## 1. Backend TODOs - Patient Delete
- [x] 1.1 Import deletePatient function in patients/+page.svelte
- [x] 1.2 Uncomment delete API call in handleDelete function
- [x] 1.3 Add error handling for delete operation
- [ ] 1.4 Test patient delete functionality
## 2. Backend TODOs - Order Detail View
- [x] 2.1 Create OrderDetailModal.svelte component
- [x] 2.2 Add order header display (number, date, status, patient)
- [x] 2.3 Add test list display with status indicators
- [x] 2.4 Add status history timeline
- [x] 2.5 Wire up modal to order list click handler
- [ ] 2.6 Test order detail modal
## 3. Backend TODOs - Barcode Printing Structure
- [x] 3.1 Create barcode.js utility file with print functions
- [x] 3.2 Add printPatientWristband stub function
- [x] 3.3 Add printSpecimenLabel stub function
- [x] 3.4 Wire up barcode printing to patient order list
- [x] 3.5 Wire up barcode printing to orders page
- [ ] 3.6 Test print dialog opens correctly
## 4. Backend TODOs - TestMap Delete Documentation
- [x] 4.1 Add informative error message for TestMap delete limitation
- [x] 4.2 Document API limitation in code comments
- [x] 4.3 Add console warning with explanation
## 5. Specimens Page
- [x] 5.1 Create specimens API client file (src/lib/api/specimens.js)
- [x] 5.2 Create specimens/+page.svelte route
- [x] 5.3 Add specimen search/filter bar
- [x] 5.4 Add specimen data table with columns
- [x] 5.5 Create SpecimenFormModal component
- [x] 5.6 Implement specimen creation
- [x] 5.7 Implement specimen editing
- [ ] 5.8 Implement specimen deletion **[BLOCKED: Requires task 0.1-0.2]**
- [x] 5.9 Create SpecimenDetailModal component
- [x] 5.10 Wire up detail view
- [ ] 5.11 Test full specimen CRUD workflow
## 6. Users Page
- [x] 6.1 Create users API client file (src/lib/api/users.js)
- [x] 6.2 Create master-data/users/+page.svelte route **[API NOT READY]**
- [x] 6.3 Add user search functionality **[API NOT READY]**
- [x] 6.4 Add user data table **[API NOT READY]**
- [x] 6.5 Create UserFormModal component **[API NOT READY]**
- [x] 6.6 Implement user creation **[API NOT READY]**
- [x] 6.7 Implement user editing **[API NOT READY]**
- [x] 6.8 Implement user deletion with self-delete prevention **[API NOT READY]**
- [ ] 6.9 Test user management workflow **[BLOCKED: Pending backend API]**
## 7. Navigation Updates
- [x] 7.1 Verify specimens link in sidebar works
- [x] 7.2 Verify users link in sidebar works
- [x] 7.3 Update any broken navigation paths
- [ ] 7.4 Test all navigation flows **[PARTIALLY BLOCKED]**
## 8. Integration & Testing
- [ ] 8.1 Run development server
- [ ] 8.2 Test patient delete end-to-end
- [ ] 8.3 Test order detail modal
- [ ] 8.4 Test barcode print dialogs
- [ ] 8.5 Test specimens page CRUD **[PARTIALLY BLOCKED: Delete pending backend]**
- [ ] 8.6 Test users page CRUD **[BLOCKED: Pending backend]**
- [ ] 8.7 Verify no console errors
- [ ] 8.8 Code review and cleanup
## 9. Deployment
- [ ] 9.1 Coordinate backend deployment
- [ ] 9.2 Deploy frontend changes
- [ ] 9.3 Verify all features in production
- [ ] 9.4 Update API documentation