Skip to content
P-04
  • BACKEND
  • MULTI-TENANT
  • PAYMENTS

ScanHub

Multi-tenant diagnostic-imaging marketplace and centre operations platform

YEAR
2026
STATUS
IN DEVELOPMENT
Design documents
43
Local services
7
Operational roles
5
Booking states
hold → paid → approved

[01] Overview

A provider-neutral marketplace where patients find and book imaging scans, and the operations platform imaging centres and hospitals use to run them.

[02] Architecture

FIG. P-04 Architecture

[03] Tenancy & access

  • Multi-tenant identity with short-lived access tokens and rotating refresh sessions.
  • Database-backed RBAC with centre and branch staff scope; immutable security audit events.
  • Centre onboarding, review and approval flows that never publish or open booking on their own.

[04] Booking engine

  • Public availability is a non-authoritative projection, gated on live publication and readiness.
  • A patient protects capacity with an expiring hold, converts it to an awaiting-payment intent and an immutable payable quote.
  • Verified Razorpay payment facts are consumed asynchronously to confirm exactly one booking while keeping the protected capacity.
  • Prescription and referral documents go to private, versioned object storage and are malware-scanned.

[05] Validation gate

One command provisions ephemeral PostGIS and Redis, applies every migration, runs strict mypy, unit and integration tests (rejecting unexpected skips), live HTTP smoke flows, and Alembic drift and downgrade/upgrade checks.

[06] Status

In development. Backend foundation and a demo walkthrough build are running locally.

  • FastAPI
  • Celery
  • PostgreSQL / PostGIS
  • Redis
  • MinIO
  • ClamAV
  • Next.js
  • Razorpay
P-03 FinStackP-01 KernelMind