Amir Sorayaei

Taking over a half-built telemedicine platform

Two unfinished applications, consultations happening on Google Meet, and payment arranged privately between doctor and patient. Nine months later all of it ran inside the product.

A doctor consulting at a laptop, from Levita's public site
Levita's own marketing photography, from levitamed.com

What was there before

The patient and doctor applications existed but were incomplete. The previous developer handed the project over and moved to another product, and I became the primary owner across the repositories.

There was no admin portal at all. Clinic and pharmacy were ideas rather than working products.

Consultations happened on Google Meet. The doctor left the product to take the call, which meant leaving the patient record behind, then came back afterwards to write everything up.

Payment was arranged between the doctor and the patient outside the platform. Nothing about it was the product's problem, which also meant the product could not do anything about it.

What I owned

  • Completed the patient and doctor applications and prepared them for production use.

  • Built the admin portal from nothing, then brought up the clinic and pharmacy experiences afterwards.

  • Owned frontend and Convex backend delivery across the whole set of connected workflows: booking, consultations, reports, prescriptions, labs, notifications, payments, and the operational portals.

  • Proposed and implemented the product analytics, then used it to find and fix the registration drop-off myself rather than waiting for it to be assigned.

I did not build the platform from scratch. Two applications already existed and were incomplete. What I built from zero was the admin portal, the in-product consultation, the AI documentation workflow, the payment and payout flow, and the clinic and pharmacy experiences.

What I decided, and what I ruled out

Move the consultation inside the product, on Daily and WebRTC.

Instead of Keeping the Google Meet link that already worked.

Meet worked as a video call and failed as a consultation. The doctor could not see the patient record while talking to them, and nothing that happened in the call came back into the system. Owning the call meant the record, the chat, the screen share, and the recording could all be in one place.

Take payment before the meeting is created, hold it, and credit the doctor's share to a wallet.

Instead of Letting the doctor and patient settle it privately, as they had been.

A consultation that is paid for afterwards is a consultation somebody has to chase. Collecting first made the booking real, and the wallet plus an admin-reviewed withdrawal meant the platform could account for its own commission instead of guessing.

Have the AI draft the report and require the doctor to review, edit, and accept it.

Instead of Generating the final document automatically.

Transcription and summarising are safe to automate. Prescriptions and lab decisions are clinical judgement and stayed manual. The draft saves the typing, not the thinking.

Scope every query by role and tenant, and fail closed on cross-tenant access.

Instead of Filtering records in the interface.

Five portals read the same database. A patient record hidden by the frontend is not hidden. Getting this wrong in a health product is not a bug, it is an incident.

How it works

  1. Patient

    Books

    Picks a doctor by specialty or symptom

  2. Patient

    Pays

    Stripe checkout, before the meeting exists

    Used to happen outside

  3. Both

    Consultation

    Daily and WebRTC, with the record on screen

    Used to happen outside

  4. System

    Records

    Room and token lifecycle, recording webhook

  5. System

    Transcribes

    Soniox, with speaker separation

  6. System

    Drafts report

    OpenRouter, with retry and stale-draft timeout

  7. Doctor

    Reviews and accepts

    Edits the draft, decides prescriptions and labs

    Used to happen outside

  8. System

    Notifies and pays out

    Patient notified, doctor share credited to wallet

One consultation, end to end. The marked steps are the ones that used to happen outside the product: payment arranged privately, the call on Google Meet, and the write-up in the doctor's own time afterwards.

What went wrong first

The audio and video quality was genuinely bad at first. Building the call was the easy part. Making it good enough that a doctor would rather use it than send a Meet link was not.

Worked through the Daily configuration, including noise cancellation, echo control, and adaptive quality, and added device permission and readiness checks before the user is put into the meeting rather than after.

Confirmed by Test sessions with doctors and simulated patients, repeated until the feedback stopped being about the connection. The doctors' own reason for preferring it was that they never had to leave Levita.

What changed

  • Raised conversion through the main patient-registration step from below 10% to above 40% over 1 to 2 months.

    PostHog funnels, reviewed week over week Confirmed

  • Cut the post-consultation documentation workflow from roughly 15 minutes to under 5.

    Doctor workflow before and after the AI report step Approximate

    Prescription and lab decisions stayed manual clinical work. The AI step reduced summary preparation.

  • Took over incomplete patient and doctor applications, completed them for production use within two months, and delivered the admin portal in under three weeks.

    Confirmed

    The platform was not built from scratch. Two applications existed and were incomplete.

  • Used by approximately 300 to 400 patients.

    Approximate