Healthcare — hospital medical affairs
Clinical Education Operations Platform
The problem
Multi-institution clinical education ran on spreadsheets and email — manual tutor matching, untracked teaching hours, and sensitive trainee documents processed by hand. None of it was auditable, and student data crossed institutional boundaries it shouldn’t.
What we built
A unified platform for a hospital group’s clinical-education operations — managing students, tutors, and teaching-hour billing across multiple institutions, with AI-assisted document processing and matchmaking.
- Three-tier LLM orchestration (Claude Haiku / Sonnet / Opus) routed per task class, with per-request and per-institution daily cost ceilings enforced in Redis.
- Six-stage document pipeline that tokenises Singapore NRICs before any AI call, then routes by confidence — auto-commit above 0.90, human review between 0.70 and 0.90, blocked below.
- AI-assisted matchmaking and a clinical-curriculum RAG that retrieves then LLM-re-ranks learning objectives, with every model output schema-validated.
- Per-institution row-level security enforced in Postgres via a per-request session GUC, isolating tenants at the database layer.
- PII-masked, append-only audit logging — every payload redacted and tenant-scoped before it is written.
- NestJS 11
- Next.js 15
- PostgreSQL 16 + pgvector
- Prisma
- AWS Bedrock
- BullMQ / Redis