Phase 5 — Settings, Forms & Compliance
PHI access logging, dynamic form builder, and global error boundary land. Tenelix is now audit-ready end-to-end.
Added
- PHI access logging — every read of a patient record emits a structured event to a dedicated PHI access log — tenant, user, action, timestamp.
- Dynamic form builder with auto-versioning on edit-with-submissions. Lifecycle state machine: draft → published → archived.
- Global React error boundary with server-side error reporting.
- Tenant-aware structured logging across all modules.
- Form lifecycle audit log — publish, version, and archive events recorded.
- Referential-integrity guards prevent deletion of records that still have dependent form data.
Improved
- Settings hub layout with module cards.
- Clinic profile splits into regional / branding / regulatory sections.
Fixed
- Form clone now correctly preserves field-level visibility flags.