SFS
Vet practice appBuilt to the ezyVet clone spec v1.0 · for John
Step 1 · UI/UX prototype ✓Step 2 · CustomizeStep 3 · Final design & code
Open the live app ↗

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.

Next screen, same person Handover to another person ezyVet flow Our change New · John's platform & VoIP

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 → toButtonWhat 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.

In prototypeOur additionStep 3 buildLater
SpecItemWhere to see itStatus
Main spec · §1 Core capabilities
§1EMR: templates, shorthand macros, vitals, lockable SOAPConsult · S & O, Signed & locked, Roles & templatesIn prototype
§1Automated charge capture into the live invoiceAssessment, Plan, Execution drawerIn prototype
§1Diagnostics and PACS integrationDiagnostics hub, Imaging viewerIn prototype
§1Inpatient flowsheet and treatment boardWards, 24-hour flowsheetIn prototype
§1Multi-location: shared clients, per-location stock, schedules and feesChoose a location, location switcher on every screenIn prototype
§1Cloud-native, multi-tenant infrastructureScope & build tabStep 3 build
§1Controlled-drug batch logging and audit trailExecution drawer (batch per dose), Roles (witness), Entry logIn prototype
Main spec · §2 Information architecture
GlobalUniversal search (client, patient, microchip, invoice #)Top bar on every app screenIn prototype
GlobalQuick actions: + Consult, + Appointment, + Patient, + Quick invoiceTop barIn prototype
GlobalReal-time lab & alert trayTop bar bell, Doctor's queueIn prototype
GlobalLocation switcher and user profileTop barIn prototype
§2.1Multi-doctor / multi-room scheduleSchedulerIn prototype
§2.1Resource and surgical suite booking gridScheduler (surgical suite column)In prototype
§2.1Status engine: Booked, Arrived, In consult, Billing, CompletedScheduler → queue → consult → locked → paidIn prototype
§2.1Check-in and arrival modalCheck-in & arrivalIn prototype
§2.1VoIP & Telephony: Caller ID screen pop with client & pet matchCaller ID screen popOur addition
§2.2Client account: contact, balance, credit limit, notesClient accountIn prototype
§2.2Patient master: signalment, weight history, allergies, remindersPatient profileIn prototype
§2.3Subjective · Objective (vitals, exam checklist, body diagram)Consult · S & OIn prototype
§2.3Assessment: diagnoses, diagnostic orders, live lab feedConsult · Assessment, PlanIn prototype
§2.3Plan: prescriptions, services, discharge instructionsConsult · PlanIn prototype
§2.3Client discharge and home-care generatorSigned & locked (discharge PDF)In prototype
§2.4Hourly medication and vitals grid24-hour flowsheetIn prototype
§2.4Task allocation and nurse sign-offWards, Execution drawerIn prototype
§2.4ICU fluid and pain log24-hour flowsheetIn prototype
§2.5In-house analyzer status and controlDiagnostics hubIn prototype
§2.5Reference-lab order dispatch and trackingDiagnostics hubIn prototype
§2.5DICOM / PACS viewerImaging viewerIn prototype
§2.6Live billing ledger, synced from the EMRConsult right column, Checkout drawerIn prototype
§2.6Estimate and consent builder with e-signatureEstimate, E-signIn prototype
§2.6Point of sale, split payments, depositsPoint of sale, DepositIn prototype
§2.7Product catalog and fee schedulesProduct · batches & pricingIn prototype
§2.7Batch, expiry and controlled-substance trackingProduct, Execution drawerIn prototype
§2.7Purchase orders and receivingProduct (purchase orders)In prototype
§2.8Role-based access matrixRoles & templatesIn prototype
§2.8Clinical macro and SOAP template builderRoles & templatesIn prototype
§2.8End-of-day reconciliation and accounting syncEnd of dayIn prototype
Main spec · §3–§6 Workflows, engines, data, consult workspace
§3Workflow 1: check-in and triageCaller ID pop-up → Scheduler → Check-in → QueueIn prototype
§3Workflow 2: consult and charge captureS & O → A → P → LockIn prototype
§3Workflow 3: checkout and dischargeCheckout → POS → Paid · dischargeIn prototype
§4Charge capture: removing a clinical item voids its lineEntry log (entered in error)In prototype
§4WebSocket sync and consult locksLive queue, "Dr. Kim viewing", Double-dose blockedIn prototype
§4FEFO batch inventoryPlan, Product, DrawerIn prototype
§4Hierarchical pricing: (cost × markup) + fee − tier discountProductIn prototype
§5Data entities: client, patient, appointment, consult, product, invoiceScope & build tab · data modelStep 3 build
§6.1–6.2Consult component tree and 3-column layoutConsult (all four screens)In prototype
§6.3TypeScript form state and billing storeScope & build tab · stackStep 3 build
§6.4Event matrix: lab order, Rx removal, weight change, autosave, sign & lockLab order, reversal, dose from weight, autosave footer, lockIn prototype
Inpatient flowsheet spec
§1Wards, cages, stays (Admitted → Discharged), DNR and isolation flagsWards, FlowsheetIn prototype
§1Orders and executions by type: medication, fluids, vitals, feeding, output, procedure24-hour flowsheetIn prototype
§1Prisma schema and indexesScope & build tab · data modelStep 3 build
§2.1Header: demeanor badges, signalment, shift statsFlowsheet, WardsIn prototype
§2.124-hour columns with current-hour highlightFlowsheetIn prototype
§2.1Execution drawer: dose calculator, batch selector, Given / Omitted / RefusedExecution drawerIn prototype
§3Optimistic locking against double administrationDouble-dose blockedIn prototype
§3Socket rooms per ward and stay; task request and broadcast payloadsScope & build tabStep 3 build
§4Charge = (unit price × quantity) + dispensing fee; FEFO deduction; reversalsDrawer, Given & chargedIn prototype
Ours · John's merchant services
OursBooking text with pre-visit form; receipt text with self-bookingBooking text, Receipt textOur addition
OursDeposit by payment link; terminals on John's processingE-sign & deposit, POS, TerminalOur addition
OursCard settlements in the end of day; terminal pairing; clinic sign-upEnd of day, Integrations, Sign-upOur addition
Ours · reseller model (from John)
JohnClinics pay for the software by ACH or credit cardPlan & billing, Sign-upOur addition
JohnEvery clinic's card transactions tracked; software priced on monthly card volumePlan & billing, Reseller · clinic pricingOur addition
JohnSuper admin, admin and reseller loginsSign in, Logins & rolesOur addition
JohnResellers earn a cut of software revenue and part of the processing feesAgent portal, Platform consoleOur addition
JohnAgent portal: resellers board clinics and set everything, free or paidAgent portal, Clinic pricing, Sign-upOur addition
JohnGateway credentials entered by the super admin onlyGateway credentials, locked for resellers, IntegrationsOur addition
Ours · reseller training (from John)
JohnTraining videos for resellers on every featureVideo library, Training videoOur addition
JohnAI guide that answers questions about the platform and the reseller's own clinicsTraining & AI guideOur addition
John"Show me" tours over the real screensShow me tourOur addition
JohnAI pitch builder: cost comparison, reseller earnings and a written pitchPitch builderOur addition
Ours · AI add-ons & integrations (from John)
JohnMarketplace of AI add-ons the clinic switches on, billed on its planAI add-ons, Plan & billingOur addition
JohnAI phone receptionist: books, takes refills, answers, hands over emergenciesSettings, AI inboxOur addition
JohnVoIP & Caller ID: pop-up greets client by first name and shows pets; ElevenLabs Agents for voiceCaller ID screen pop, Phone settings, Platform add-on catalogOur addition
JohnTexting and website chat answered by AI, booking into the real schedulerOwner texts the AI, AI inboxOur addition
JohnAI scribe drafting the SOAP noteConsult header, AI add-onsOur addition
JohnPlatform sets add-on prices, partner costs and reseller share; picks ElevenLabs, Gemini or GPT per taskAdd-on catalog, Agent portalOur addition
In ezyVet, not in either spec
ezyVetOnline booking and client portal; kiosk check-in—Later
ezyVetBoarding, wellness plans, insurance claims—Later
ezyVetReporting suite, controlled-drug register report, inventory counts and transfers—Later
ezyVetAutomated reminder campaigns (SMS, email, post) and two-way textingRecall 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 / ezyVetOur customizationIn this prototype
Global barUniversal search, quick actions, lab & alert tray, location switcher—Yes
1 · Scheduler & VoIPDoctor and room columns, status engine, check-in modalVoIP caller ID screen pop (client first name & registered pets); ElevenLabs voice fallback; booking text carries pre-visit formYes
2 · Clients & patientsAccount profile with balance and credit limit, patient masterSaved card on the accountYes
3 · Consult (EMR)3-column SOAP workbench, live charge capture, sign & lock—Yes
4 · Treatment boardHourly grid, nurse sign-off, fluid & pain log—Yes
5 · Diagnostics hubAnalyzer status, reference-lab tracking, results into the consult—Yes (imaging viewer later)
6 · FinancialsLive ledger, estimate with e-signature, POS, split payments, depositsTerminals and payment links on John's processing. ezyVet's US terminals run on PayJunction; ours don't.Yes
7 · InventoryCatalog and fees, batches and expiry (FEFO), purchase orders—Yes (one product)
8 · AdminAccess roles, templates, end-of-day reconciliation, integrationsCard settlements inside the end of day; clinic sign-up for a merchant accountPartly
9 · Platform & resellersNot in ezyVetSuper 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 videosYes
10 · AI add-onsNot 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 shareYes
LaterClient portal, kiosk check-in, boarding, wellness plans, insurance claims, reportingDecided in Step 2No

The three steps

Approve the flow, then customize, then build.

Now

1 · UI/UX prototype

This page. Hardcoded screens, every button wired, no backend. John marks what to keep, cut or change.

Next

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.

Then

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.

LayerChoiceWhy
This prototypePlain HTML, CSS and JavaScriptHardcoded on purpose: fast to change while the flow is being approved.
Web appNext.js (React, TypeScript)Runs on front-desk PCs and exam-room tablets in the browser; installable, nothing to deploy per clinic.
Consult formReact Hook Form with ZodAs the spec names it: the SOAP form state and its validation.
Charge captureZustand storeAs the spec names it: the live ledger that clinical actions post into and remove from.
APINode.js (NestJS), live updates over Socket.ioSame language as the front end; the spec's WebSocket sync for schedules, the treatment board and consult locks.
DatabasePostgreSQL, multi-tenantThe spec's entities (clients, patients, appointments, consults, products, invoices); every clinic that joins John's platform is a tenant.
Background jobsRedis queuesReminders, texts, and payment status checks.
Messaging & VoIPTwilio & 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 layerElevenLabs Agents (voice calls), Gemini and OpenAI APIs behind one internal interfaceElevenLabs Agents for natural conversational voice phone reception; each task can use either model and fall back to the other; keys stay with the platform.
PaymentsA payments layer with one adapter per terminal brandDejavoo first, Clover second, more later, without touching the rest of the app.
HostingHeroku for the pilot, AWS for productionStart where the demos already live; move when real clinics join.

Data model

The entities, from both specs.

EntityBelongs to / hasKey fields
ClientHas patients, invoices, paymentsContact, account balance, credit limit, notes, pricing tier
PatientBelongs to a client; has consults, reminders, staysSpecies, breed, sex, neutered, birth date, weight, microchip, allergies
AppointmentClient, patient, vet, room or resourceStart, end, reason, status (Booked → Completed)
ConsultPatient, vet; has invoice lines and lab ordersStatus (draft → locked), S / O / A / P sections
Product · BatchHas batches, stock levels, invoice linesType, cost, retail, markup, controlled flag; lot, expiry, quantity
Invoice · LineClient, patient, consult or staySource (exam, Rx, diagnostic, flowsheet, manual), totals, paid, status
Ward · Cage · StayStay links patient, cage, vet, running invoiceStay status, DNR, isolation, admitted / discharged
Flowsheet order · execution · fluid logBelongs to a stayType, dose, route, frequency; executed by, quantity, batch, version (lock), invoice line
Payment · terminal · merchant accountOurs: client, invoice, clinicMethod, amount, terminal ID, approval code, settlement batch
Reseller · splitOurs: has clinicsSoftware share %, processing share %, buy rate, payout account
Subscription · planOurs: belongs to a clinicFree, volume-based or flat; current tier; billed by ACH or card; monthly card volume
Gateway credentialOurs: belongs to a clinic, super admin onlyGateway, processor, merchant ID, terminal IDs, API keys (encrypted), change log
Add-on · subscription · usageOurs: catalog item; clinic subscribesPartner, cost, price, reseller share; minutes, messages and conversations used per month
VoIP call · Caller ID logOurs: clinic, client, staff / AICall SID, caller number, client match (<50ms), pets identified, staff answered or ElevenLabs agent, duration, recording URL
AI conversationOurs: client, patient, add-onChannel (call, text, chat), recording, transcript, summary, action taken, handed to staff

Hardware

Terminals: Dejavoo first, Clover as the option.

Recommended

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.

Option

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.

Not for John

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.

Recommended Voice AI

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.

Recommended VoIP

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.

LLM Orchestration

Gemini & OpenAI (GPT-4o)

Structured clinical extraction: auto-summarizing caller complaints, drafting appointment notes into the scheduler, and powering non-voice channels (SMS & webchat).