Case study · 01 Healthcare commerce & ops

Hearing made
effortless — online & in‑clinic.

A unified storefront, clinic system & finance console for one of Sri Lanka's longest-running audiology practices.

Built from the bare metal — eCommerce, appointments, POS, inventory, accounting & an AI business intelligence layer all in one platform.

Role Senior Consultant · Architect
Year 2020 — 2022
Team 3 squads · 32 engineers
Status Live in production
lankamedicalaudio.lk
LMA storefront hero
01 / The brief

Three businesses, one platform.

LMA runs an audiology clinic, an optical clinic and a hearing-aid retail line under one roof. They needed software that didn't force them to keep three sets of books.

Founded by Mr. Thamara Wijesuriya in 2008, Lanka Medical Audio had grown into a premier multi-brand hearing-aid dispenser and optical clinic — but the back-office was still split across spreadsheets, QuickBooks and paper.

I was brought back as a senior consultant to the company I'd started my career at — this time to restructure the system architecture and migrate everything to a unified, cloud-based model.

The brief: keep clinical staff fast, give finance real visibility, let customers self-serve online — and bring it all under one codebase.

Tech stack
React Next.js Node.js Firebase Firestore Cloud Functions Tailwind QuickBooks API Claude · AI Stripe
02 / The platform

A storefront that sells.
A console that runs.

One codebase serves two completely different audiences — a glossy dark-mode storefront for buyers, and a calm light-mode console for the team. Designed in opposition on purpose.

Storefront · public

Sonic clarity, reimagined.

A premium dark-mode shop & clinic site — product catalog, appointment booking, hearing tests, knowledge guides, blog & WhatsApp support.

9Pages
35+Yr legacy
4Service types
Console · staff

Every cent, every patient.

Light-mode admin app with finance, CRM, bookings, inventory, POS, vendors, payroll & an AI advisor — all on one URL.

14Modules
62CoA accounts
1,640CRM contacts
03 / The storefront

A premium shop for a premium product.

Dark, glassy, gold-accented — the storefront treats hearing aids the way Apple treats AirPods. Built so each product, brand and service has room to breathe.

Self-fitting commerce

Full eCommerce flow with cart slide-over, multi-brand catalog & in-store reservation pickup. Patients can buy online or lock items for a fitting session.

  • Reserve-then-fit — items held against your next appointment
  • Brand-aware catalog — Signia, AcoSound, Beltone, Interton
  • WhatsApp checkout fallback for local customers

Four-step booking flow

Pick a service → date & time → details → confirmed. Each step is its own micro-screen with progress crumbs, no page reloads.

  • Service-aware durations — 45–60 min by type
  • Hearing test, hearing aid trial, home visit, free consult
  • Instant email confirmation with map & calendar invite
04 / The console

Behind the scenes, where the work happens.

The admin app is calm, light and dense — built for staff who spend eight hours in it. Real screens shown below with sample data; hover to reveal each one.

AI Business Intelligence

A reasoning layer that watches the books and posts a daily executive summary — flagging anomalies a human would miss until end of month.

  • Health score + 5 risk flags with reasoning
  • AR aging, margin checks, revenue spike narratives
  • Generates an action plan, not just a chart

Books, POS & CRM, one URL

Finance, customer CRM, bookings, inventory, POS, vendors, payroll, taxes & reports — fourteen modules under one auth model.

  • 62-account Chart of Accounts seeded for medical retail
  • QuickBooks import + native ledger going forward
  • Audit-safe data manager with backup & restore
05 / In your hand

Two phones, two audiences.

Patients shop, browse, & book consultations from a dark, gold-accented store on their phone. Clinic staff run the day — appointments, sales & the till — from a calm light-mode admin app on theirs. Same platform, two truly different mobile experiences.

Storefront · for patients
9:41
LLMA.lk
2
Since 2008

Hearing made
effortless.

Shop hearing aids
Signia · Pure
Pure 7AX$899
Shop
Book
Help
Me
9:41
‹ Back to shop
AcoSound · self-fit
Smart Pro 12$1,249
12chchannels
24hbattery
BT 5.2wireless
Add to cart
✓ Reserve-then-fit
Hold this for your next clinic appointment — pay after fitting.
Shop
Book
Help
Me
Console · for staff
9:41
Mon · 28 May Good morning, Pasan
P
Revenue · today
LKR 184k
↗ +12% vs yesterday
Patients
14
8 booked · 6 walk-ins
Next appointment
RT
Ruwan Thissera
Hearing test · Booth 2
10:30in 24m
PS
Priyani Senanayake
Fitting · trial Signia 7AX
11:15
DM
Damith Mendis
Free consultation
13:00
Today
Book
POS
More
9:41
POS · Sale #1284 Quick checkout
$
×1Signia Pure 7AX
$899
×2Battery 312
$24
×1Custom ear-mould
$85
Member discount
-$48
Total · 4 items
$960
Tax incl.
$86 GST
Charge $960
Today
Book
POS
More
01

Browse & reserve

Patients browse the multi-brand catalog, read fitting guides & reserve a hearing aid against their next consultation — all without paying upfront.

02

Book in four steps

Service → date → details → done. The phone flow mirrors the desktop, with service-aware durations and an instant calendar invite when the patient confirms.

03

Staff start the day

Front-desk opens the admin app to today's revenue, next appointment, and walk-ins. Tap a patient to open the chart, tap a slot to reschedule.

04

POS in your hand

The mobile POS rings up hearing aids, batteries & custom moulds; applies member discounts; and posts the journal entry straight to the chart of accounts.

05

One back-end

Patient site, mobile shop & staff app all read the same Firestore — change a price, restock a model, the change lands everywhere within the second.

06

Role-based access

Owner, finance lead, audiologist, front-desk & technician each see only what they need — same app, different surfaces, no data leakage.

The brief was to centralise three businesses — what we shipped was one operating system for the whole clinic.
Pasan W. · Senior Consultant & Architect
06 / The outcomes

From paper to a measurable platform.

Hard-to-fake numbers from a real running system — every module shipped, every team migrated, still live today.

14
Modules
From Finance to Auto-marketing, all under one auth.
32
Engineers managed
3 squads through architecture & cloud migration.
3x
Books unified
Audiology, optometry & retail — one ledger.
5+
Years live
Shipped in 2020 — still running every day.
Up next · 02 / 09

Family Wallet

A premium family expense tracker — joint budgets, a visual bill calendar & an AI advisor, built for two.