CareCompliance is an enterprise multi-tenant healthcare compliance and care-home workforce SaaS built for UK Care Homes, Domiciliary Care Agencies, and Healthcare Providers. Engineered with Next.js 16 (React 19), NestJS 11, Prisma 7, and PostgreSQL 17, it helps Registered Managers achieve and evidence CQC Regulation 18 (Staffing & Competency) and Regulation 17 (Good Governance) readiness — replacing paper checklists with digital bedside audits, verified e-signatures, certificate lifecycle automation, and AI-assisted inspection preparedness.
About This Project
CareCompliance unifies Admin, Registered Manager, and Care Staff portals under role-based access control (RBAC). It links e-learning certificates, practical competency observations, expiry alerts, and immutable audit logs into a single inspection-ready evidence trail, giving care providers one place to prove staffing and competency compliance when inspectors ask.
Problem
UK social and residential care faces recurring compliance failures under CQC scrutiny:
- Paper-Based Competency Checklists: Bedside observations and assessor signatures get lost, unsigned, or unreachable during inspection.
- Theory ≠ Practice Gap: Completed e-learning rarely maps to observed clinical competence (hoist, medication, IPC, BLS), creating Regulation 18 exposure.
- Expired Certificates Discovered Too Late: Training and accreditation lapses surface at inspection instead of with 30/14/7-day lead time.
- Fragmented Evidence Packs: Managers scramble across spreadsheets, folders, and ATS tools when inspectors ask for staffing matrices and competency proof.
- Multi-Home Governance Blind Spots: Operators managing multiple organisations lack a single tenant-aware view of compliance scores, bed capacity, and CQC ratings.
Solution
We built a cloud-native, Dockerized compliance architecture purpose-built for CQC workflows:
- NestJS 11 API Backend: Versioned REST (/api/v1), Swagger docs, Helmet, rate limiting, and Argon2 + JWT session security.
- Next.js 16 App Router Portals: Role-aware dashboards for Admin, Manager, and Staff with TanStack Query and typed Axios clients.
- Bedside Competency Auditor: Staff request → manager checklist → HTML5 canvas digital signature → PASS/FAIL with in-app notifications.
- Gemini 2.5 Flash AI Copilot: Compliance risk forecasting and natural-language CQC / staffing Q&A with graceful offline fallback.
- Automated Expiry Engine: Nest Schedule cron jobs scan certificates and mandatory training and trigger Notification Center alerts.
- 1-Click CQC Inspection Pack: Facility summary, theory-vs-practical gaps, training matrix, and CSV / print export for inspectors.
- Multi-Tenant PostgreSQL Model: Organisations with CQC ratings, bed capacity, registration numbers, and org-scoped RBAC.
Key Features
- Multi-Role RBAC Portals: Super Admin (global organisations), Registered Manager (command centre), and Care Staff (personal compliance score).
- Bedside Competency Auditor & E-Sign-Off: Hoist, Medication, IPC, First Aid/BLS, Fire Evacuation, and Wound Care assessments with canvas signatures.
- E-Learning & Certificate Vault: Certificate upload, validity status (VALID / EXPIRING / EXPIRED), and training-matrix sync.
- AI Copilot Compliance Auditor: Gemini-powered risk forecasts and an interactive CQC assistant.
- Automated Expiry Alerts: 30 / 14 / 7-day certificate and training warnings with unread notification badges.
- Manager–Staff Messaging & Compliance Warnings: Direct in-app (near real-time) messaging with action deadlines and a threaded inbox.
- CQC Inspection Pack & Regulatory Reporting: Roster, competency coverage, and KLOE-style readiness summaries with CSV / print export.
- Immutable Audit Logs: User actions, entity mutations, IP address, and user-agent captured as governance evidence.
- Account Invitation & Activation: Secure onboarding with OTP password reset and failed-login lockout.
- Dockerized Full Stack: Frontend, NestJS API, PostgreSQL 17, and Nginx reverse proxy with health checks.
Results
- Paper → Digital Competency Trail: Canvas e-signatures and timestamped PASS/FAIL records replace lost clipboards.
- Inspection Pack in One Click: Managers export Regulation 18 evidence without a third-party ATS.
- Proactive Expiry Governance: Automated alerts before certificates lapse into inspection risk.
- Theory–Practical Gap Visibility: The inspection pack flags e-learning completed without observed bedside competence.
- Multi-Tenant Operational Control: Admin oversight across organisations, with managers scoped to their own home.
- AI-Assisted Readiness: Gemini copilot provides risk scoring and CQC guidance at the point of work.
- Full Platform Ownership: Self-hosted Docker/Nginx stack keeps data, audit trail, and compliance IP under client control.