AI Case Study · Medorynth

One builder.
One month.
One clinic platform.

Medorynth is a tenant-isolated clinic operations platform for patients, doctors, clinics and platform teams. A roadmap that would normally take a 2–3 person team about three months shipped in one builder-month — with AI doing the acceleration and humans keeping the judgment.

4-week build Live demo workspace Human-reviewed release
medorynth.pages.dev/work Live
Medorynth Doctor Daily Work Action Center showing a prioritized queue of clinical work items
Delivery leverage 6–9 → 1 developer-months · estimated
One-month sprint 157 commits
Clinician-reviewed OCRNo machine-only prescriptions
33route entries
191physical tables
27Edge Functions
157repository commits

Product screenshot: Doctor Daily Work Action Center.

Human-owned architectureAuth, RLS and release decisions stay explicit.
Tenant-isolated by defaultEvery clinical record is scoped to its clinic.
AI-assisted, not AI-approvedClinicians finalise OCR before it becomes a prescription.
Evidence over claimsTests, browser runs and a release ledger.
The headline

A three-month team roadmap.
A one-month build.

The comparison is deliberately simple: two to three developers for roughly three months is 6–9 developer-months. Medorynth moved from foundation to a working, tested platform in about one builder-month of effort.

The estimate

Same scope. A very different shape of team.

≈85%less delivery effort
Traditional team2–3 developers × ~3 months
6–9 dev-months
Medorynth build1 builder + an agentic delivery loop
~1 dev-month

Calendar time moved from roughly three months to one. Effort compares developer-months, not lines of code.

~3× faster calendar
202migrations
115.7kTypeScript / TSX lines
58.6kSQL lines
122unit test files
27Playwright specs
50living docs

Repository snapshot used for this case study. Counts describe the Medorynth codebase, not a productivity score.

What shipped

Five roles. One connected system.

The tabs below are real screens from the live demo. The platform is organised around what each role needs to do next — not around a generic dashboard.

For patients

Find care without the back-and-forth.

Patients discover approved clinics, request access, view real availability and self-book. Family members, waitlists, secure messages, reminders and documents stay attached to the same care journey.

  • Clinic discovery by name or locality
  • Self-booking in the clinic's timezone
  • Family profiles, waitlist and reminders
  • Secure messages and clinical documents
Patient portalSelf-bookingWaitlistMessaging
Try the patient demo
medorynth.pages.dev/bookBooking
Medorynth patient booking page showing available appointment slots for a doctor
Patient booking · live availability in Asia/Kolkata
Product depth

Not a prototype. A working clinic system.

The screens are the surface. Underneath are governed workflows, explicit permissions and clinical-state rules that make the product safe to operate.

Clinical operations

Daily Work Action Center

One prioritised queue across reviews, follow-ups, appointments, tasks, messages and care gaps — with saved views and role-scoped access.

Triage lensSaved viewsRole-scoped
Patient access

Self-booking without the phone tag

Real availability in the clinic's timezone, invitations, waitlists and reminders — without exposing the clinical record.

WaitlistFamily profilesReminders
Prescription intelligence

Four OCR paths. One review gate.

Local WASM keeps options 1–3 in the browser. Option 4 sends a bounded image to a governed function. A clinician still finalises every word.

Tenant isolation

The database is the authority.

Rows are scoped to the clinic. RPCs, RLS policies and Edge Functions enforce the boundary — the interface is never the security model.

Clinic money

Billing beside the care workflow.

Invoices, payments, insurance and revenue views sit next to the clinical work — not in a separate spreadsheet with a different source of truth.

Also shipped
Secure messagingClinical tasksMedication reconciliationAttendanceInsuranceLicensingAudit exportStorage controlsAbuse protectionFHIR R4 export
The delivery loop

AI was the accelerator.
Not the architect.

The workflow was deliberately boring: one bounded prompt, repository evidence, executable checks, browser validation, then human review. That is what made the speed repeatable.

01

Define the gate first

Write the acceptance criteria, authorization model and failure states before any code. The agent receives a boundary, not an ambition.

02

Hand over one slice

A repo-aware coding agent gets one prompt at a time: schema, RPC, UI or test — never the whole roadmap in one pass.

03

Prove it in the browser

The agent drives the real journey with Playwright: happy path, denied path, responsive state, and visible console or network failures.

04

Fix, rerun, record

Every defect goes back through the same journey. The progress ledger records what passed, what failed and what remains an external gate.

05

Keep the release human

Architecture, clinical safety, data protection and production release stay with people who can be accountable for them.

agent-run · prompt 07 running
agent  prompt 07 · prescription OCR review
read   21 prompts · architecture · RLS rules
write  migration · RPC · Edge Function · UI
check  vitest · 122 test files        ✓
check  pgTAP structure               ✓
run    playwright · doctor journey   ✓
find   stale review lease            !
fix    revalidate · ledger updated   ✓
gate   clinician review + release    HUMAN

Workflow assembled from the repository's agent QA and 21-prompt runbooks.

Repo-aware coding agent

Reads the repo, follows AGENTS.md, writes the smallest coherent change.

Browser-driving QA agent

Drives the live app, checks every affected role, records the evidence.

21-prompt runbooks

Sequential prompts with prerequisites, acceptance criteria and rollback boundaries.

In-product AI

OpenAI Vision and Tesseract WASM behind a clinician review gate.

Engineering

The stack behind the speed.

A static Next.js export, a Supabase control plane and one governed document pipeline. No bespoke infrastructure to babysit, no hidden server to widen the attack surface.

BrowserRole-aware static app
Cloudflare PagesNext.js static export
Supabase APIsAuth · REST · Storage · Realtime
PostgreSQL + RLSThe authorization source of truth
27 Edge FunctionsBounded, authenticated operations
OpenAI Visiongpt-4.1-mini · opt-in OCR
Tesseract WASMLocal OCR · EN · HI · TE · TA
Frontend

Interface

Next.js 16.3.4React 19.2.8TypeScriptTailwindRadix UITanStack QueryReact Router 7MotionRecharts
Contracts

Forms & data

React Hook FormZoddate-fns-tzlibphonenumber-jsCountry flags
Backend

Data & auth

Supabase PostgresAuthStorageRealtimeRLS202 migrations191 tables
Clinical

Documents & money

Tesseract.js 7OpenAI VisionPDF.jsjsPDFFHIR R4Razorpay
Quality

Proof

PlaywrightVitestpgTAPaxe-coreESLintGitHub Actions
Trust by design

The fastest way to fail
is to skip the guardrails.

Medorynth's speed is bounded by explicit safety decisions. Real patient data has release gates for a reason.

Tenant-isolated

RLS and server-side RPCs scope every record to its clinic.

Human in the loop

OCR stays unreviewed until a clinician finalises it.

Immutable evidence

Finalised prescriptions and signed encounters keep their source evidence.

Audited operations

Tenant lifecycle, licensing and clinical actions leave an audit trail.

medorynth.pages.dev/platform/auditRestricted
Medorynth audit review screen listing tenant-scoped immutable audit events
Audit Review · 388 matching tenant events
Platform Super Admin · restricted and audited

AI can write the code. It cannot sign the release.

Architecture, clinical safety and accountability stay human.

Production readiness: live use requires the repository's release gates, provider agreements, security review and clinical sign-off.

The four weeks

From empty repo to a governed product surface.

A rough shape of the month, not a minute-by-minute claim. The point is the sequence: foundation, clinical core, platform depth, then proof.

Week 01

Foundation

Identity, personas, tenant membership and the design system. The route manifest and first RLS policies set the boundaries everything else inherits.

AuthPersonasRLSDesign system
Week 02

Clinical core

Scheduling, patient records, the Daily Work Action Center, prescription authoring, follow-ups and clinical tasks. The product starts to feel like a clinic.

SchedulingAction CenterPrescriptions
Week 03

Platform & intelligence

OCR options, licensing, billing, audit, notifications and delivery controls. The platform grows its commercial and governance surfaces.

OCRLicensingBillingAudit
Week 04

Proof, not promises

Unit tests, Playwright journeys, architecture guards, documentation and deployment. The release conversation is grounded in evidence.

122 test files27 E2E specsDocs
What this proves

AI compresses execution.
It does not replace judgment.

Where AI created real leverage

  • Turning specs into migrations, RPCs, UI and tests in one focused pass.
  • Driving every affected role through the browser and catching regressions early.
  • Keeping prompts, documentation and the progress ledger in sync.

Where humans stayed in the loop

  • Architecture, authorization and tenant boundaries.
  • Clinical safety, OCR finalisation and record immutability.
  • Release decisions, real-data gates and accountability.
Twenty-one prompts is the smallest safe execution chain for this repository.
Medorynth implementation runbook

The ~85% figure compares 6–9 developer-months with ~1 builder-month. The test suite and release gates are the evidence that matters.

Let's build together

Have a roadmap that needs
a month of leverage?

Medhantara builds the system, the guardrails and the delivery loop — then uses AI to move faster inside them.

Case study based on the Medorynth repository and live product screenshots.