Healthcare Assistant

Ed Donner

A signed-in consultation assistant that turns visit notes into a summary, next steps, and a patient-friendly draft email. Research deployment, not a licensed clinical product.

Next.js · FastAPI · Docker on Vercel / Lambda · Clerk · subscriptions

Healthcare Assistant

Overview

Healthcare Assistant (MediNotes Pro) is a signed-in product form plus API. Clerk owns identity and the premium gate; one Consultation agent streams a frontier-model reply over SSE. Framed as research exploration, not a licensed clinical product.

System design

  • Auth before inference. No stream without a verified JWT and premium subscription.
  • Product form, agent stream. Next.js collects visit notes; FastAPI owns the model call and SSE.
  • Server-side model only. The browser never calls OpenAI directly.
  • Research deployment. Copy and UX stay exploratory — visit summary, next steps, and a patient-friendly draft email.

Product path

What a clinician can do. Diagram key: ✦ AI agent · purple = actor · white = service.

---
config:
  theme: default
  themeVariables:
    background: "#ffffff"
    fontSize: "14px"
---
flowchart TB
    person[Clinician]
    ui[MediNotes Pro]
    clerk[Clerk]
    consultation["✦ Consultation"]
    reply[SSE markdown reply]

    person -->|sign in| ui
    person -->|check premium plan| clerk
    person -->|submit visit notes| ui
    ui -->|Bearer JWT| consultation
    consultation --> reply --> ui

    classDef agent fill:#e8f0ee,stroke:#0f3d36,stroke-width:2px,color:#0d0d0d
    classDef service fill:#fafaf8,stroke:#c8c8c2,stroke-width:1px,color:#0d0d0d
    classDef actor fill:#f3eef8,stroke:#6b4f9a,stroke-width:2px,color:#0d0d0d
    class consultation agent
    class ui,clerk,reply service
    class person actor

Gate and stream detail live on Mental Model and the Consultation tab.

Clean product overview and path. Mental Model holds the five-layer map and Anthropic workflows; Consultation owns stream detail.