Backend de erp-clinicas - Workspace V2
Go to file
Adrian Flores Cortes 50a409bf17 [CL-007] feat: Implement pharmacy module
Add complete pharmacy module for erp-clinicas with:

Entities:
- Medication: catalog with controlled substance flags, categories, forms
- PharmacyInventory: stock management with batch/lot tracking, alerts
- PharmacyPrescription: linked to consultation and patient
- Dispensation: medication dispensing with partial fills support

Services:
- MedicationService: CRUD for medication catalog
- PharmacyInventoryService: stock management, low stock alerts, expiry tracking
- PrescriptionService: prescription workflow, refills, controlled substances
- DispensationService: dispensing workflow, verification, returns

Features:
- Multi-tenant support (tenantId in all queries)
- Controlled substance tracking and scheduling
- Inventory with low stock and expiration alerts
- Prescription linked to consultation and patient
- Dispensation tracking with partial fills support
- Stock reservation and dispensing workflow
- FIFO dispensing based on expiration dates

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 19:30:45 -06:00
src [CL-007] feat: Implement pharmacy module 2026-01-30 19:30:45 -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