Backend de erp-clinicas - Workspace V2
Go to file
Adrian Flores Cortes 27ea1fd4a6 [CL-006] feat: Implement laboratory module
Add comprehensive laboratory module for managing lab tests, orders, and results:

Entities:
- LabTest: Catalog of available tests with reference ranges and categories
- LabOrder: Lab orders linked to patients and consultations
- LabResult: Results with values, status, and abnormal value detection

Services:
- LabTestService: CRUD operations for test catalog
- LabOrderService: Order lifecycle (create, collect sample, process, complete, cancel)
- LabResultService: Record results, verify, amend with history tracking

Features:
- Multi-tenant support (tenantId in all queries)
- Automatic abnormal/critical value flagging
- Result amendment with audit trail
- Order number auto-generation
- Reference range support by gender and age

REST Endpoints:
- /api/laboratory/tests/* - Test catalog management
- /api/laboratory/orders/* - Order lifecycle management
- /api/laboratory/results/* - Result recording and verification

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 18:15:10 -06:00
src [CL-006] feat: Implement laboratory module 2026-01-30 18:15:10 -06:00
.gitignore [ERP-CLINICAS] feat: Setup backend build configuration 2026-01-18 12:20:11 -06:00
package-lock.json [ERP-CLINICAS] feat: Setup backend build configuration 2026-01-18 12:20:11 -06:00
package.json [ERP-CLINICAS] feat: Setup backend build configuration 2026-01-18 12:20:11 -06:00
README.md Initial commit 2026-01-16 14:05:00 +00:00
tsconfig.json [ERP-CLINICAS] feat: Setup backend build configuration 2026-01-18 12:20:11 -06:00

erp-clinicas-backend-v2

Backend de erp-clinicas - Workspace V2