Multi-Tenant Dental SaaS Backend
Production SaaS backend for tenant-isolated dental operations, claims processing, payment workflows, clinical charting, and Unity-based visualization.
A dental SaaS platform serving multiple clinic tenants needed database-level isolation, Dutch healthcare claims serialization, dunning workflows, and a live 3D charting client. All of it had to hold under concurrent tenant traffic.
Architected a database-per-tenant PostgreSQL isolation model on Azure Flexible Server across 22 modules and 46 domain entities. Roughly 68,700 lines of code.
Designed Redis-backed runtime tenant resolution keyed by dbConfig:<tenantCode>, automated idle-connection cleanup, and semaphore-based request controls to protect shared infrastructure under load.
Built a custom NestJS EntityManagerForkInterceptor to bind request-scoped em.fork() transaction contexts. This resolved connection pool exhaustion that was hitting under concurrent tenant traffic.
Programmed a Vektis MZ301 v1.3 claims serialization engine with fixed-width 310-character line validation, integer-cent conversion, and BSN, AGB provider type, BIG, and UZOVI rule checks. Dutch healthcare claim spec, byte-precise.
Built an 8-stage PayT dunning and invoice webhook pipeline. Raw-body HMAC-SHA256 validation with timingSafeEqual(), and partial-unique PostgreSQL indexes to prevent duplicate payment processing.
Engineered tooth-level clinical observation APIs mapping Universal identifiers across surfaces and condition states. These feed chronological color updates into a Unity 3D dental visualization client.