Clinicpilot

MULTI-TENANT CLINIC PLATFORM

Patients, prescriptions, lab tests, pharmacy stock and batches, billing with GST compliance, staff scheduling and a patient portal — schema-per-tenant on PostgreSQL, deployed and carrying live clinics.

FULL-STACKAI / ML 2025
Clinicpilot — Multi-tenant clinic platform
LIVE
IN PRODUCTION
669
PYTHON MODULES
312
REACT COMPONENTS
1 schema/tenant
ISOLATION MODEL

A full clinic management system that real practices pay for and run their day on. Multi-tenancy is schema-per-tenant on PostgreSQL over asyncpg, so one clinic’s data is structurally incapable of showing up in another’s query.

Auth is JWT with bcrypt and six staff roles, with a separate admin platform above the tenants. Payments go through Razorpay and Stripe; WhatsApp and email automation hang off the side, and an assistant sits over the clinical record.

It ships as Docker Compose onto DigitalOcean behind an Nginx reverse proxy, with health checks and a backup path — the unglamorous half of "in production".

STACK, BY LAYER

  • 01 PRODUCT React 19 + Vite 7 · Tailwind · three portals: staff, doctor and patient
  • 02 SERVICE FastAPI · JWT RBAC · admin platform · Nginx · Docker Compose
  • 03 DATA PostgreSQL 15 schema-per-tenant · asyncpg · Redis 7 · backups
  • 04 MODELS
  • 05 PROTOCOL
  • 06 FIRMWARE
  • 07 SILICON
FastAPIReact 19Vite 7PostgreSQL 15asyncpgRedis 7JWTRazorpayStripeDocker