Wayam AI Case Study · Revenue Cycle Management · Healthcare

Lekha.AI — how we rebuilt an enterprise revenue cycle, end to end.

A complete, agent-on-database automation platform delivered for a healthcare revenue cycle & billing solutions provider — from patient check-in to cash receipt — covering nine AI opportunity groups across eligibility, coding, claims, denials, collections and reporting.

Confidential ClientHealthcare RCM & billing solutions provider
Wayam AIDelivery partner · Agentic AI engineering
Phased DeliveryMVP pilot through Phase 3
9 opportunity groupsFull revenue-cycle lifecycle coverage
70%
Straight-through claim automation
25%+
Denial-rate reduction
2–3 min
Per claim, was 30
~95%
Records need no human touch
The Client

A 15-year revenue cycle solutions provider, ready to modernise.

Our client runs both sides of the healthcare billing stack — a proprietary web-based EMR, and a large Medisoft reseller and billing-services business serving outpatient practices across the United States. Its 15–16 person billing team processes claims for practices running on a 40-year-old client-server billing system with no automation layer of its own.

Engagement Snapshot

IndustryHealthcare · Revenue Cycle Management
Client roleMedisoft reseller & billing services provider
Domain experience15+ years
Billing team15–16 staff, India-based operations
Annual claim volume~96,000 claims
Billing ops cost today~8% of collected revenue
Engagement modelFixed-scope, milestone-gated, 100% Outcome SLA
Delivery timelinePhased · MVP pilot + Phase 3

Systems in scope

Client EMR Platform
Proprietary web-based EMR · scheduling, charting, notes, ICD/CPT, e-prescribing, telemedicine · Cloud / SQL Server / Azure
Medisoft
Practice management & billing · charge entry, claims, payments · Advantage DB / ODBC
Mirth Connect
HL7/FHIR bi-directional sync between the EMR platform and Medisoft
Clearing Houses
eMEDIX, Office Ally, Change Healthcare, Availity, ClaimsRemidie, Gateway EDIT, Waystar
The Challenge

Revenue leaks quietly through a process that looks like it’s working.

Conservative coding, manual superbills and denials caught weeks too late aren’t failures of effort — they’re the natural ceiling of doing payer-grade work by hand, claim after claim, twenty minutes at a time.

01

Front-desk and billing staff re-key the same data from cards, forms and superbills by hand, again and again.

02

Errors and denials surface weeks after submission — long after the moment they could have been caught.

03

Institutional knowledge — payer rules, coding logic, appeal language — lives in people’s heads, not in the system.

Where the leaks are, precisely

Manual effort
20 minutes of human touch on every claim — searching, keying, re-keying, checking. Done flawlessly; simply done by hand.
~32,000 billing hours consumed per year
Avoidable denials
No pre-submission validation. Around 19,200 claims a year come back, each costing 25–60 minutes of rework.
Denied claims never fully recovered
Conservative coding
Providers down-code to avoid payer pushback. Documentation supports higher-specificity codes that are never used.
Reimbursement left unclaimed, visit after visit
Slow cash
Claims submitted days after the encounter. Denials found weeks late. Secondary claims missed entirely.
Working capital tied up in avoidable DSO
The Solution

An agent-on-database architecture, not another dashboard.

Agents connect directly to Medisoft’s Advantage DB via ODBC — they never touch the UI. The biller opens Medisoft and finds records already populated, with exceptions flagged in a separate console. Conservative coding, manual superbills and denials caught weeks too late aren’t failures of effort — they’re the natural ceiling of doing payer-grade work by hand. This architecture removes that ceiling, stage by stage, across the entire billing lifecycle.

Input Sources

Insurance cards · driving licenses · paper superbills · provider Excel · EMR data · ERA/EOB files

Wayam AI Agents

Tiered OCR (T0→T3) · NLP · rules engine · denial AI · payment posting · confidence scoring · ODBC to Advantage DB

Medisoft

MWPAT · MWCAS · MWINS · MWELG · MWTRN · MWCLA — biller opens Medisoft, data is already there

The 5% Rule — human-in-the-loop by design

Agents process ~95% of records automatically. The remaining ~5% where confidence is low are flagged in the Biller Console with the source image, the agent’s best guess, a confidence score, and the specific reason for uncertainty. The biller reviews only what the agent isn’t sure about — never every record. Nothing is ever silently dropped.

GOAL 1

AI-Native RCM in the EMR

Automation agents built directly into the EMR workflow — code suggestion, superbill, claim validation, denial management, payment posting.

GOAL 2

Decouple the EMR from Medisoft

Make billing pluggable via standard APIs — not hard-wired to any single EHR or billing system.

GOAL 3

Wrap Medisoft with AI

For the Medisoft reseller base — AI accelerators on top of Medisoft without modifying its core.

The Complete Workflow

Nine opportunities. One continuous thread.

From the moment a patient checks in to the moment quality measures are reported — every stage of the revenue cycle is covered by a purpose-built agent, all running on the same shared platform.

1
Eligibility Verification
Coverage checked before check-in
2
Charge Entry
Superbills to structured charges
3
Claim Scrubbing
Validated before submission
4
Denial Analysis
Root-caused automatically
5
Appeal Letters
Drafted, not written from scratch
6
Patient Collections
Prioritised, multi-channel
7
A/R Follow-up
Next-best-action ranking
8
MIPS Reporting
Extracted from live data

9 · Shared Platform Foundation

The data spine, biller console, cloud infrastructure and audit layer every opportunity above depends on — audited read/write path, exception queue, Azure infrastructure, RBAC and full traceability.

Deep Dive · All Nine Opportunities

Every opportunity, in full — challenge, solution, capability and measured impact.

Each of the nine opportunities below was scoped, built and validated against the client’s own workflow documentation and live Medisoft data — not synthetic samples.

01

Eligibility Verification

Card and ID capture through to a real-time payer coverage check — before the patient sits down.
The Challenge

Front-desk staff still key insurance details by hand from scanned cards and paper intake forms, spending 5–10 minutes per patient. Coverage errors only surface weeks later when a claim is rejected, because no one checks that the plan on file is active on the date of service.

The Solution

Card and ID capture flows straight through to a real-time payer coverage check — before the patient sits down. OCR extraction, identity verification and eligibility lookups all run automatically at check-in.

+
Tiered OCR routing — T0→T3: routing, OCR engine, LLM fallback, human queue.
+
Live eligibility check — Returns coverage, co-pay and plan status in real time.
5–10 min → <15 sec
Registration time
Real-time
Coverage verification
Front desk
Freed for patient care
Zero
Silent OCR failures
02

Charge Entry

Paper superbills become structured charge lines — no re-keying, no seven-step workflow.
The Challenge

Superbill creation is a seven-step manual sequence that takes 25–30 minutes, with paper-based practices re-keying every code, modifier and service level by hand. Handwritten codes have no reliable capture path, so providers code conservatively from memory and leave reimbursement on the table.

The Solution

Paper superbills become structured charge lines automatically. OCR extraction, evidence-based code suggestion and an audited write path turn a 30-minute manual task into a 2–3 minute automated one.

+
Superbill OCR — Extracts CPT, ICD-10, modifiers and service level.
+
Evidence-based coding — Suggestions drawn from the locked clinical note.
25–30 min → 2–3 min
Superbill creation
Defensible
Evidence-based upcoding
Auto
Charge-line write
Recovered
Under-coded revenue
03

Claim Scrubbing

Every claim validated against payer rules and NCCI edits before it leaves the building.
The Challenge

Claims go out with no pre-submission validation, so NCCI edits, modifier rules and ICD↔CPT pairing are checked manually or not at all. Payer-specific rules live only in billers’ heads, and every rejected claim triggers a full rework cycle of 25–60+ minutes.

The Solution

Every claim is validated against payer rules and NCCI edits before it leaves the building. The engine checks pairing, modifiers and payer requirements automatically, flagging likely denials with the fix needed — in real time.

+
Pre-submission validation — A required-field matrix checks every claim first.
+
Payer-specific rules — NPI and tax-ID validation per clearing house.
25%+
Denial-rate reduction
Real-time
Validation, was ‘later’
Pre-flight
Fixes surfaced with cause
Fewer
Rework cycles
04

Denial Analysis

ERA 835 files ingested automatically and classified by root cause — fixable versus complex.
The Challenge

ERA files are downloaded by hand from every clearing house portal, and denial codes are interpreted one claim at a time. With no pattern visibility, the same denial reason recurs unnoticed across payers — and each affected claim consumes 30–60 minutes to manage.

The Solution

ERA 835 files are ingested and classified by root cause — fixable versus complex. AI resolves the fixable share without a biller touching it, and every pattern found feeds straight back into coding and claim scrubbing.

+
Root-cause classification — AI sorts wrong code, modifier, COB, prior auth and more.
+
Auto-correct & resubmit — Fixable denials resolved without biller touch.
40–60%
Denials auto-resolvable
Auto
Per denied claim, was 30–60 min
No manual
Portal logins
Learning
Loop back to coding
05

Appeal Letter Generation

Complex denials routed to the biller with a payer-specific appeal already drafted.
The Challenge

Appeals for complex denials are written from scratch every time, with payer-specific language and evidence requirements that vary widely. Supporting documentation is assembled by hand for each one, so high-value denials are often written off rather than appealed.

The Solution

Complex denials are routed to the biller with a payer-specific appeal already drafted. AI grounds each letter in the actual claim and clinical data, tailors tone and evidence per payer, and attaches supporting documents automatically.

+
Grounded AI drafting — Letters drafted from the actual claim and clinical data.
+
Auto-attached evidence — Supporting documents added to the appeal packet.
Drafted
Not written from scratch
Payer-specific
Language and evidence
Higher
Appeal submission rate
Recovered
Previously written-off claims
06

Patient Collections

Statements, reminders and escalation handled by AI messaging agents across channels.
The Challenge

Patient statements are generated and chased manually, with no prioritisation — a small balance gets the same effort as a large one. Outreach runs on a single channel with low response rates, and aging balances live in spreadsheets instead of the workflow.

The Solution

Statements, reminders and escalation are handled by AI messaging agents across channels. Balances are segmented and prioritised automatically, so high-value accounts get chased first — with consent and opt-out handled by design.

+
Priority scoring — Segments balances by value, age and payer type.
+
Multi-channel messaging — AI agents deliver across email, SMS and print.
Prioritised
By value and aging
Multi-channel
Automated delivery
Escalation
High-value flagged
Faster
Patient cash collection
07

A/R Follow-up

An aging engine that ranks the next best action across every open claim and payer.
The Challenge

There’s no consolidated AR visibility across practices and clearing houses, so follow-up is driven by whoever remembers rather than what pays back most. Secondary claims are submitted late or missed, and payer denial rates stay invisible until someone builds a report.

The Solution

An aging engine ranks the next best action across every open claim and payer. Live AR visibility, automated secondary submission and a prioritised work queue replace guesswork with a system that always knows what pays back most.

+
Live AR aging — Buckets by payer, practice and provider, updated live.
+
Auto secondary claims — 276/277 status checks and automated submission.
Live
AR aging dashboard
Ranked
Next-best-action queue
Auto
Secondary claim submission
Proactive
Not reactive follow-up
08

MIPS Reporting

Quality, cost and promoting-interoperability measures extracted automatically from live data.
The Challenge

MIPS measures are assembled by hand at reporting deadlines, with quality and cost data pulled from several systems manually. Gaps are discovered too late in the performance year to correct, and reporting effort competes directly with day-to-day billing work.

The Solution

Quality, cost and promoting-interoperability measures are extracted automatically from live data. The engine runs continuously on the shared platform spine, so gaps surface early and reporting never competes with billing work.

+
Automated measures — Calculation engine runs on the live database spine.
+
Submission-ready exports — Reporting views aligned to submission formats.
Automated
Measure extraction
Continuous
Not deadline-driven
Early
Gap visibility
Zero
Extra billing-team effort
09

Shared Platform Foundation

The data spine, biller console and infrastructure every other opportunity depends on.
The Challenge

The architecture is locked today, so billing AI cannot be sold independently, and there’s no audited, safe write path into the database. Billers have no single console for exceptions, and the documented schema may not match the live production database.

The Solution

An audited read/write path, a single exception console and hardened cloud infrastructure make the platform pluggable into any EHR or billing system — the foundation every other opportunity in this case study builds on.

+
Audited read/write path — Trigger-safe adapter into the production database.
+
Biller console — Exception queue, review UI and patient context in one place.
~95%
Records fully automated
~5%
Reach the biller console
Audited
End to end
Pluggable
Any EHR or billing system
The Roadmap

A committed pilot, then a phased scale-out.

The MVP proves the platform on the highest-value, most tightly-sequenced work. Phase 3 then scales out denials, collections and reporting in two parallel waves — funded separately, once MVP results are measured.

MVP Pilot · Committed

Shared platform + 3 core opportunities

  • Shared platform foundation — Medisoft read/write adapters, biller console, Azure infrastructure, audit & RBAC
  • Eligibility Verification — card OCR, tiered OCR T0–T3, photo-ID check, payer eligibility
  • Charge Entry — superbill OCR to charge lines, hard-sequenced after OCR + write path
  • Claim Scrubbing — pre-submission validation on the new charge data model
M1 Design sign-off → M2 Build demo → M3 UAT sign-off → M4 Go-live
Phase 3 · Two Waves

Denials, collections & reporting

  • Wave 1 — Denial Analysis (ERA 835 ingestion + AI root-cause) and A/R Follow-up, running in parallel
  • Wave 2 — Patient Collections, after vendor/channel onboarding
  • Wave 2 — Appeal Letter Generation, hard-sequenced after Denial Analysis
  • Wave 2 — MIPS Reporting, once the platform spine is stable
Same squad shape · M5 Go-live
M1
Design sign-off
M2
Build demo
M3
UAT sign-off
M4
MVP go-live
M5
Phase 3 go-live
Results & Impact

What changed, measured against the client’s own baseline.

Every figure below is grounded in the client’s workflow documentation and the platform’s own production targets — not vendor benchmarks.

70%
Straight-through claim automation — no human touch required
25%+
Reduction in first-pass denial rate
80%+
Reduction in manual billing time per claim
~95%
Of records fully automated end to end
StageBeforeAfter
Patient registration5–10 min<15 sec
Clinical / charge coding5–10 min<30 sec
Superbill creation25–30 min2–3 min
Claim validationNot performedReal-time
Denial management30–60 minAuto / 5 min
Payment posting10–20 minAutomatic
Why Wayam

Payer-side intelligence, applied to the provider’s table.

Wayam AI builds autonomous, production-grade AI systems — not demos that stall at proof-of-concept. Our team has built AI at Optum scale, one of the largest payers in the United States, and brings that intelligence to the provider side.

Payer-grade coding intelligence

We model how claims are adjudicated, then optimise before submission.

Evidence-based upcoding, not guesswork

Higher-specificity codes only when the note supports them.

Pluggable by design

Standard APIs; not hard-wired to any single EHR or billing system.

Zero-silent-failure architecture

Every record accounted for; low-confidence items route to a biller.

One partner. From AI ambition to shipped, scaled product.

Fixed scope, priced to the outcome. Milestone-gated, pay as value lands. 100% Outcome SLA — contractual, not aspirational.

Wayam AI · RCM Automation Case Study · Confidential
Prepared for internal & prospective client review