← All workScheduling and approvals

Rebuilding a scheduling platform for medical practices

A large-scale rebuild: we re-architected and redeployed the platform, then worked through every component of the system to make it production-ready.

Physician Connection interface
Client

Physician Connection

Our role

Re-architecture, rebuild, and redeployment of the platform

Status

Production-ready and running on new infrastructure.

Built with

Next.js, React, TypeScript, PostgreSQL (Neon), Drizzle ORM, Better Auth, Cal.com (self-hosted on Railway), Vercel

01

The challenge

Physician Connection coordinates visits between pharmaceutical representatives and physician practices, four roles working on the same visit. The platform needed to be rebuilt and redeployed for reliability so practices could depend on it.

02

Re-architecture and redeployment

We re-architected the platform’s core workflows and moved it to new infrastructure, with Vercel for the application and Railway for a self-hosted Cal.com scheduling engine. We then went through the system component by component, diagnosing and correcting each issue until the whole platform was production-ready.

03

A complete request, every time

We rebuilt the representative’s request as a guided, step-based flow. Nothing is created until the last step is complete, and only valid options are offered along the way, so practices always receive complete requests.

04

From approval to a confirmed booking

When a practice approves a request, it becomes a confirmed booking in the scheduling engine with the physician, time, and location attached. Reconciliation tools compare the platform with the calendar and repair any mismatch.

05

Built for reliability

Simultaneous approvals produce a single booking, verified against the real setup. Multi-step bookings run in a fixed order with automatic cleanup if a step fails. Critical steps report to monitoring and an admin error log, so issues surface immediately.

06

The result

A production-ready platform with role-appropriate views for representatives, practice staff, physicians, and administrators, backed by automated tests and error reporting.

The old request form failing
Practice request queue showing representatives, companies, status, and requested times
Representative intake screen with the practice’s intake link and request controls
Approving a request turns it into a confirmed visit
System health and job log
Schedule fit view placing a requested visit against a physician’s day
Next step

Working through something similar?

Tell us what’s slowing you down. We’ll tell you plainly what we’d build, what it costs, and whether it’s worth doing.

Rough ideas are fine. Nothing to sign.