The full flow
One visit, start to finish, lane by lane.
Every box is a screen in the prototype and every arrow is a button on it. Arrows that cross into another lane are handovers between people. Click any box to open that screen.
Every screen
All screens, by section.
Including the screens off the main visit path: VoIP caller ID pop-ups and AI voice settings, client and pet records, terminals, and the clinic sign-up for John's merchant services.
Handovers
Who passes what to whom.
Each handover is a button in the prototype. The "what moves" column is the information the next person needs on their screen, so nobody has to ask for it again.
| # | From → to | Button | What moves with it |
|---|
Spec coverage
Every line of both specs, and where to see it.
Checked against "ezyVet Clone – System Architecture & UI/UX Technical Specification" and "Inpatient Flowsheet & Treatment Board Module Specification", both v1.0.0. Click any screen name to open it. Code-level items (schemas, TypeScript interfaces, socket payloads) are built in Step 3; the prototype shows what they do on screen.
| Spec | Item | Where to see it | Status |
|---|---|---|---|
| Main spec · §1 Core capabilities | |||
| §1 | EMR: templates, shorthand macros, vitals, lockable SOAP | Consult · S & O, Signed & locked, Roles & templates | In prototype |
| §1 | Automated charge capture into the live invoice | Assessment, Plan, Execution drawer | In prototype |
| §1 | Diagnostics and PACS integration | Diagnostics hub, Imaging viewer | In prototype |
| §1 | Inpatient flowsheet and treatment board | Wards, 24-hour flowsheet | In prototype |
| §1 | Multi-location: shared clients, per-location stock, schedules and fees | Choose a location, location switcher on every screen | In prototype |
| §1 | Cloud-native, multi-tenant infrastructure | Scope & build tab | Step 3 build |
| §1 | Controlled-drug batch logging and audit trail | Execution drawer (batch per dose), Roles (witness), Entry log | In prototype |
| Main spec · §2 Information architecture | |||
| Global | Universal search (client, patient, microchip, invoice #) | Top bar on every app screen | In prototype |
| Global | Quick actions: + Consult, + Appointment, + Patient, + Quick invoice | Top bar | In prototype |
| Global | Real-time lab & alert tray | Top bar bell, Doctor's queue | In prototype |
| Global | Location switcher and user profile | Top bar | In prototype |
| §2.1 | Multi-doctor / multi-room schedule | Scheduler | In prototype |
| §2.1 | Resource and surgical suite booking grid | Scheduler (surgical suite column) | In prototype |
| §2.1 | Status engine: Booked, Arrived, In consult, Billing, Completed | Scheduler → queue → consult → locked → paid | In prototype |
| §2.1 | Check-in and arrival modal | Check-in & arrival | In prototype |
| §2.1 | VoIP & Telephony: Caller ID screen pop with client & pet match | Caller ID screen pop | Our addition |
| §2.2 | Client account: contact, balance, credit limit, notes | Client account | In prototype |
| §2.2 | Patient master: signalment, weight history, allergies, reminders | Patient profile | In prototype |
| §2.3 | Subjective · Objective (vitals, exam checklist, body diagram) | Consult · S & O | In prototype |
| §2.3 | Assessment: diagnoses, diagnostic orders, live lab feed | Consult · Assessment, Plan | In prototype |
| §2.3 | Plan: prescriptions, services, discharge instructions | Consult · Plan | In prototype |
| §2.3 | Client discharge and home-care generator | Signed & locked (discharge PDF) | In prototype |
| §2.4 | Hourly medication and vitals grid | 24-hour flowsheet | In prototype |
| §2.4 | Task allocation and nurse sign-off | Wards, Execution drawer | In prototype |
| §2.4 | ICU fluid and pain log | 24-hour flowsheet | In prototype |
| §2.5 | In-house analyzer status and control | Diagnostics hub | In prototype |
| §2.5 | Reference-lab order dispatch and tracking | Diagnostics hub | In prototype |
| §2.5 | DICOM / PACS viewer | Imaging viewer | In prototype |
| §2.6 | Live billing ledger, synced from the EMR | Consult right column, Checkout drawer | In prototype |
| §2.6 | Estimate and consent builder with e-signature | Estimate, E-sign | In prototype |
| §2.6 | Point of sale, split payments, deposits | Point of sale, Deposit | In prototype |
| §2.7 | Product catalog and fee schedules | Product · batches & pricing | In prototype |
| §2.7 | Batch, expiry and controlled-substance tracking | Product, Execution drawer | In prototype |
| §2.7 | Purchase orders and receiving | Product (purchase orders) | In prototype |
| §2.8 | Role-based access matrix | Roles & templates | In prototype |
| §2.8 | Clinical macro and SOAP template builder | Roles & templates | In prototype |
| §2.8 | End-of-day reconciliation and accounting sync | End of day | In prototype |
| Main spec · §3–§6 Workflows, engines, data, consult workspace | |||
| §3 | Workflow 1: check-in and triage | Caller ID pop-up → Scheduler → Check-in → Queue | In prototype |
| §3 | Workflow 2: consult and charge capture | S & O → A → P → Lock | In prototype |
| §3 | Workflow 3: checkout and discharge | Checkout → POS → Paid · discharge | In prototype |
| §4 | Charge capture: removing a clinical item voids its line | Entry log (entered in error) | In prototype |
| §4 | WebSocket sync and consult locks | Live queue, "Dr. Kim viewing", Double-dose blocked | In prototype |
| §4 | FEFO batch inventory | Plan, Product, Drawer | In prototype |
| §4 | Hierarchical pricing: (cost × markup) + fee − tier discount | Product | In prototype |
| §5 | Data entities: client, patient, appointment, consult, product, invoice | Scope & build tab · data model | Step 3 build |
| §6.1–6.2 | Consult component tree and 3-column layout | Consult (all four screens) | In prototype |
| §6.3 | TypeScript form state and billing store | Scope & build tab · stack | Step 3 build |
| §6.4 | Event matrix: lab order, Rx removal, weight change, autosave, sign & lock | Lab order, reversal, dose from weight, autosave footer, lock | In prototype |
| Inpatient flowsheet spec | |||
| §1 | Wards, cages, stays (Admitted → Discharged), DNR and isolation flags | Wards, Flowsheet | In prototype |
| §1 | Orders and executions by type: medication, fluids, vitals, feeding, output, procedure | 24-hour flowsheet | In prototype |
| §1 | Prisma schema and indexes | Scope & build tab · data model | Step 3 build |
| §2.1 | Header: demeanor badges, signalment, shift stats | Flowsheet, Wards | In prototype |
| §2.1 | 24-hour columns with current-hour highlight | Flowsheet | In prototype |
| §2.1 | Execution drawer: dose calculator, batch selector, Given / Omitted / Refused | Execution drawer | In prototype |
| §3 | Optimistic locking against double administration | Double-dose blocked | In prototype |
| §3 | Socket rooms per ward and stay; task request and broadcast payloads | Scope & build tab | Step 3 build |
| §4 | Charge = (unit price × quantity) + dispensing fee; FEFO deduction; reversals | Drawer, Given & charged | In prototype |
| Ours · John's merchant services | |||
| Ours | Booking text with pre-visit form; receipt text with self-booking | Booking text, Receipt text | Our addition |
| Ours | Deposit by payment link; terminals on John's processing | E-sign & deposit, POS, Terminal | Our addition |
| Ours | Card settlements in the end of day; terminal pairing; clinic sign-up | End of day, Integrations, Sign-up | Our addition |
| Ours · reseller model (from John) | |||
| John | Clinics pay for the software by ACH or credit card | Plan & billing, Sign-up | Our addition |
| John | Every clinic's card transactions tracked; software priced on monthly card volume | Plan & billing, Reseller · clinic pricing | Our addition |
| John | Super admin, admin and reseller logins | Sign in, Logins & roles | Our addition |
| John | Resellers earn a cut of software revenue and part of the processing fees | Agent portal, Platform console | Our addition |
| John | Agent portal: resellers board clinics and set everything, free or paid | Agent portal, Clinic pricing, Sign-up | Our addition |
| John | Gateway credentials entered by the super admin only | Gateway credentials, locked for resellers, Integrations | Our addition |
| Ours · reseller training (from John) | |||
| John | Training videos for resellers on every feature | Video library, Training video | Our addition |
| John | AI guide that answers questions about the platform and the reseller's own clinics | Training & AI guide | Our addition |
| John | "Show me" tours over the real screens | Show me tour | Our addition |
| John | AI pitch builder: cost comparison, reseller earnings and a written pitch | Pitch builder | Our addition |
| Ours · AI add-ons & integrations (from John) | |||
| John | Marketplace of AI add-ons the clinic switches on, billed on its plan | AI add-ons, Plan & billing | Our addition |
| John | AI phone receptionist: books, takes refills, answers, hands over emergencies | Settings, AI inbox | Our addition |
| John | VoIP & Caller ID: pop-up greets client by first name and shows pets; ElevenLabs Agents for voice | Caller ID screen pop, Phone settings, Platform add-on catalog | Our addition |
| John | Texting and website chat answered by AI, booking into the real scheduler | Owner texts the AI, AI inbox | Our addition |
| John | AI scribe drafting the SOAP note | Consult header, AI add-ons | Our addition |
| John | Platform sets add-on prices, partner costs and reseller share; picks ElevenLabs, Gemini or GPT per task | Add-on catalog, Agent portal | Our addition |
| In ezyVet, not in either spec | |||
| ezyVet | Online booking and client portal; kiosk check-in | — | Later |
| ezyVet | Boarding, wellness plans, insurance claims | — | Later |
| ezyVet | Reporting suite, controlled-drug register report, inventory counts and transfers | — | Later |
| ezyVet | Automated reminder campaigns (SMS, email, post) and two-way texting | Recall reminders (scheduled) | Later |
Scope
What we clone from ezyVet, and what's ours.
The screens follow the spec's 8 modules and 3 workflows, and every screen names the spec section it implements. We copy the flow, not ezyVet's branding or artwork. John's merchant services are built in from the start, and the whole platform is built to be sold through resellers.
| Module (spec §2) | From the spec / ezyVet | Our customization | In this prototype |
|---|---|---|---|
| Global bar | Universal search, quick actions, lab & alert tray, location switcher | — | Yes |
| 1 · Scheduler & VoIP | Doctor and room columns, status engine, check-in modal | VoIP caller ID screen pop (client first name & registered pets); ElevenLabs voice fallback; booking text carries pre-visit form | Yes |
| 2 · Clients & patients | Account profile with balance and credit limit, patient master | Saved card on the account | Yes |
| 3 · Consult (EMR) | 3-column SOAP workbench, live charge capture, sign & lock | — | Yes |
| 4 · Treatment board | Hourly grid, nurse sign-off, fluid & pain log | — | Yes |
| 5 · Diagnostics hub | Analyzer status, reference-lab tracking, results into the consult | — | Yes (imaging viewer later) |
| 6 · Financials | Live ledger, estimate with e-signature, POS, split payments, deposits | Terminals and payment links on John's processing. ezyVet's US terminals run on PayJunction; ours don't. | Yes |
| 7 · Inventory | Catalog and fees, batches and expiry (FEFO), purchase orders | — | Yes (one product) |
| 8 · Admin | Access roles, templates, end-of-day reconciliation, integrations | Card settlements inside the end of day; clinic sign-up for a merchant account | Partly |
| 9 · Platform & resellers | Not in ezyVet | Super admin, admin and reseller logins; agent portal; software priced on card volume and billed by ACH or card; revenue and processing splits; gateway locked to the super admin; training hub with AI guide, tours, pitch builder and videos | Yes |
| 10 · AI add-ons | Not in ezyVet's core (sold by third parties) | AI phone receptionist, VoIP caller ID screen pop (client first name & pets), texting, website chat and scribe; ElevenLabs Agents + Twilio/Telnyx; online booking built in; sold as add-ons with a reseller share | Yes |
| Later | Client portal, kiosk check-in, boarding, wellness plans, insurance claims, reporting | Decided in Step 2 | No |
The three steps
Approve the flow, then customize, then build.
1 · UI/UX prototype
This page. Hardcoded screens, every button wired, no backend. John marks what to keep, cut or change.
2 · Customize
Lock John's merchant flows, pricing and sign-up, decide which "later" modules go into version one, and update the prototype to match.
3 · Final design & code
High-fidelity design on the approved flow, then the real build against the stack below.
What it will be coded in
TypeScript, end to end.
| Layer | Choice | Why |
|---|---|---|
| This prototype | Plain HTML, CSS and JavaScript | Hardcoded on purpose: fast to change while the flow is being approved. |
| Web app | Next.js (React, TypeScript) | Runs on front-desk PCs and exam-room tablets in the browser; installable, nothing to deploy per clinic. |
| Consult form | React Hook Form with Zod | As the spec names it: the SOAP form state and its validation. |
| Charge capture | Zustand store | As the spec names it: the live ledger that clinical actions post into and remove from. |
| API | Node.js (NestJS), live updates over Socket.io | Same language as the front end; the spec's WebSocket sync for schedules, the treatment board and consult locks. |
| Database | PostgreSQL, multi-tenant | The spec's entities (clients, patients, appointments, consults, products, invoices); every clinic that joins John's platform is a tenant. |
| Background jobs | Redis queues | Reminders, texts, and payment status checks. |
| Messaging & VoIP | Twilio & Telnyx VoIP SIP trunking with webhook API; an email provider (e.g. SendGrid) | Inbound calls match client records in <50ms, popping client name and pets on screen; confirmations, estimates, receipts. |
| AI layer | ElevenLabs Agents (voice calls), Gemini and OpenAI APIs behind one internal interface | ElevenLabs Agents for natural conversational voice phone reception; each task can use either model and fall back to the other; keys stay with the platform. |
| Payments | A payments layer with one adapter per terminal brand | Dejavoo first, Clover second, more later, without touching the rest of the app. |
| Hosting | Heroku for the pilot, AWS for production | Start where the demos already live; move when real clinics join. |
Data model
The entities, from both specs.
| Entity | Belongs to / has | Key fields |
|---|---|---|
| Client | Has patients, invoices, payments | Contact, account balance, credit limit, notes, pricing tier |
| Patient | Belongs to a client; has consults, reminders, stays | Species, breed, sex, neutered, birth date, weight, microchip, allergies |
| Appointment | Client, patient, vet, room or resource | Start, end, reason, status (Booked → Completed) |
| Consult | Patient, vet; has invoice lines and lab orders | Status (draft → locked), S / O / A / P sections |
| Product · Batch | Has batches, stock levels, invoice lines | Type, cost, retail, markup, controlled flag; lot, expiry, quantity |
| Invoice · Line | Client, patient, consult or stay | Source (exam, Rx, diagnostic, flowsheet, manual), totals, paid, status |
| Ward · Cage · Stay | Stay links patient, cage, vet, running invoice | Stay status, DNR, isolation, admitted / discharged |
| Flowsheet order · execution · fluid log | Belongs to a stay | Type, dose, route, frequency; executed by, quantity, batch, version (lock), invoice line |
| Payment · terminal · merchant account | Ours: client, invoice, clinic | Method, amount, terminal ID, approval code, settlement batch |
| Reseller · split | Ours: has clinics | Software share %, processing share %, buy rate, payout account |
| Subscription · plan | Ours: belongs to a clinic | Free, volume-based or flat; current tier; billed by ACH or card; monthly card volume |
| Gateway credential | Ours: belongs to a clinic, super admin only | Gateway, processor, merchant ID, terminal IDs, API keys (encrypted), change log |
| Add-on · subscription · usage | Ours: catalog item; clinic subscribes | Partner, cost, price, reseller share; minutes, messages and conversations used per month |
| VoIP call · Caller ID log | Ours: clinic, client, staff / AI | Call SID, caller number, client match (<50ms), pets identified, staff answered or ElevenLabs agent, duration, recording URL |
| AI conversation | Ours: client, patient, add-on | Channel (call, text, chat), recording, transcript, summary, action taken, handed to staff |
Hardware
Terminals: Dejavoo first, Clover as the option.
Dejavoo
Semi-integrated through a cloud API: the app sends the amount to a specific terminal and gets the result back, while the card data stays on the terminal. Dejavoo works with many processors, so the transactions stay on John's processing.
Clover
Excellent hardware and app ecosystem, with APIs for taking payments from outside software. The catch: Clover processing runs through Fiserv, so it fits merchants who are already on Clover.
Stripe, Square, Adyen
Their terminal APIs are the most developer-friendly, but each brings its own processing, which competes with John's business. Worth it only if John wants to be a platform rather than the processor.
To confirm with John: which Dejavoo models are certified on his processor, and that his accounts have cloud API (SPIn) access. The payments layer means a Clover adapter can be added later without a rewrite.
Telephony & Voice AI
VoIP API & ElevenLabs conversational agents.
ElevenLabs Agents
Ultra-low latency conversational AI with lifelike voice modulation, native turn-taking, and interruption handling. Functions as the 24/7 AI phone receptionist and fallback agent when front desk lines are busy.
Twilio & Telnyx VoIP APIs
Programmable SIP trunking and webhooks. When a phone call hits the clinic number, a webhook fires in <50ms to query PostgreSQL, matching Sarah Mitchell and her pets (Max & Oscar) for the real-time screen pop.
Gemini & OpenAI (GPT-4o)
Structured clinical extraction: auto-summarizing caller complaints, drafting appointment notes into the scheduler, and powering non-voice channels (SMS & webchat).