Telehealth Psychiatry Platform
Zentromind Health
Production telehealth platform for a psychiatry practice, with patient, doctor and admin portals for secure booking, video consultations and clinical documentation.
Overview
What the product does
A production telehealth platform serving a psychiatry practice. Patients book and attend appointments, doctors run consultations and record clinical documentation, and admins oversee the practice — each in its own portal, backed by a single versioned API.
Problem
The problem it solves
Remote psychiatry care needs booking, video consultations, payments and clinical documentation to behave as one system rather than four disconnected tools — while keeping clinical data protected and strictly scoped to the role viewing it.
My role
What I contributed
Full-stack development across the versioned REST API, payment flows, authentication, background jobs and the video consultation experience.
Solution
How the system was designed
A Next.js frontend sits on a versioned REST API built with Express on Bun, organised into 29 feature modules that follow a routes, handlers, services and validators pattern over PostgreSQL and Prisma. Stripe Connect handles checkout and provider payouts, Agora powers consultations, and Redis-backed BullMQ queues run the scheduled work.
Architecture
System architecture
Key features
What it does in practice
29 feature modules following a consistent routes, handlers, services and validators pattern, backed by PostgreSQL through Prisma.
Appointment checkout with a 20 percent platform fee, provider onboarding, and webhook-driven payment and refund state management.
Better Auth with email verification, sessions, two-factor authentication and cross-subdomain cookies, plus role-based access control for patient, doctor and admin users.
Agora-powered consultations with server-minted tokens, so session access is granted by the backend rather than the client.
BullMQ jobs handling appointment reminders and no-show detection outside the request cycle.
Challenges
The interesting engineering problems
Technology
The stack behind it
- Next.jsReact Framework
- Express.jsHTTP Framework
- BunRuntime & Package Manager
- PostgreSQLRelational Database
- Prisma ORMType-Safe ORM
- RedisCache & Queues
- Socket.ioRealtime Transport
- Agora RTCRealtime Audio & Video
- StripePayments
- Better AuthAuthentication
- BullMQBackground Jobs
- CloudinaryMedia Storage