Learn Build Community Opportunities Hosted n8n Blog About Careers Contact Log in

Home / Blog / Explainer

Explainer

Manage a Clinic's HMO Claims from Visit to Payment in Zapier

An Arena brief about a private hospital with ₦18.5 million stuck in HMO receivables, and how a Zapier system can follow every claim until it is paid.

This expert Arena brief asks builders to manage a clinic's HMO claims from visit to payment with Zapier. Every claim is checked before it leaves the hospital, recorded once, chased when an HMO pays late, and matched against the lump-sum remittances HMOs send, so underpaid visits are caught before the dispute window closes.

The business behind the brief

The brief describes Cedar Care Hospital, an Arena scenario: a 35-bed private hospital in Maitama, Abuja, seeing about 450 patient visits a week. About 65 percent of patients are covered by HMOs, so most visits become a claim for consultation, laboratory tests and drugs, billed to the patient's HMO.

Anyone who has worked in a Nigerian private hospital will recognise what goes wrong. Claims are compiled by hand from encounter forms and spreadsheets. Roughly 15 percent go out with wrong enrolee numbers, unbundled billing codes or tariff errors, and are rejected weeks later, then sit unread in an inbox. Outstanding HMO receivables exceed ₦18,500,000, some over 90 days old. When an HMO finally pays one bulk monthly amount, billing staff spend more than 18 hours a week matching it to hundreds of visits, and underpaid claims are written off because nobody can tell which visits were short-paid in time.

What the automation has to do

  • Receive each claim at discharge and give it a stable hash, so a resubmission is caught as a duplicate.
  • Validate the enrolee number format and check that line items add up to the claimed total, before submission.
  • Record raw claims, validation results, exceptions and an audit trail in Supabase, with a Google Sheets dashboard for the billing team.
  • Alert billing managers on WhatsApp when a claim passes the HMO's payment deadline.
  • Reconcile HMO payments against claims and raise shortfalls as disputes.
  • Retry transient failures through a dedicated error handler Zap.

How to approach the build

  1. Catch claims with a webhook. Start the main Zap with Webhooks by Zapier Catch Hook, and generate a run ID first so every record the run writes can be traced.
  2. Canonicalise and hash in Code by Zapier. Trim and uppercase the provider code and enrolee number, fix the visit date format, round the total, and hash the combined fields with SHA256. Check Supabase for that hash before going further.
  3. Validate the money before it leaves. In the same or a second Code step, add up the line items and compare them with the claimed total, and test the enrolee number against the expected pattern. Store the variance in naira and the list of errors, not just pass or fail.
  4. Branch with Paths. Paths by Zapier separates clean claims, invalid claims and duplicates. Invalid claims become exceptions for billing to fix, while they can still be corrected cheaply.
  5. Chase overdue claims on a schedule. A separate Zap on Schedule by Zapier finds claims older than each HMO's max_claim_days and sends a WhatsApp alert through GreenAPI to the right billing contact.
  6. Reconcile remittances. When an HMO payment schedule arrives, match each line to its claim, record matched, underpaid or unmatched, and open a dispute for each shortfall.

The hard parts

Catching errors before submission

The cheapest rejected claim is the one that never gets submitted. Every check you move to discharge time, enrolee format and tariff totals, saves weeks of waiting and a resubmission. This is where most of the value in the brief sits, and why it carries the largest share of the marks.

One payment, hundreds of visits

HMOs rarely pay claim by claim. Reconciliation means breaking a bulk payment back down to individual visits using the remittance advice, then checking each one. The output that matters is a list of specific underpaid visits with amounts, because that is what a billing officer can actually dispute.

Patient data

Claims contain patient names and diagnoses. Keep them in Supabase with access limited to the service key, and send only what each message needs: an overdue alert needs a claim ID, an HMO and an amount, not a diagnosis. Graders look for this care, and so will any hospital.

Zapier's limits

Code by Zapier steps have time and memory limits, and Paths need a paid plan. Keep code steps short and focused, and do heavy matching in batches rather than one enormous step.

What our graders look for

  • Ingestion, deduplication and tariff validation in code (30%).
  • Overdue claim escalation and WhatsApp alerts (20%).
  • Payment reconciliation and the shortfall dispute workflow (25%).
  • Error handler with exponential backoff (15%).
  • Technical notes and an operations runbook (10%): so the hospital's staff can run it after you leave.

Pricing and pitching this job

The brief values this at USD 1,200 to 2,500 for setup plus USD 400 to 900 a month. The pitch is cash flow. A hospital with ₦18.5 million outstanding does not need to be persuaded that claims matter. Show them fewer rejections, overdue claims chased automatically, and a named list of underpaid visits each month, and the retainer looks small next to what they currently write off.

New Arena briefs drop every Monday in the app at app.automatenaija.com, and every Beginner brief is free, so pick one and build it this week.

Frequently asked questions

Can HMO claims processing be automated in Nigeria?

The record keeping, checking and chasing can be. Most HMOs still accept claims through their own portals or by email, so submission may stay partly manual, but validation before submission, duplicate detection, deadline tracking, overdue alerts and matching payments to claims can all be automated, which is where hospitals lose most of their time and money.

Why do so many HMO claims get rejected?

The common causes are wrong enrolee identification numbers, services billed under the wrong or unbundled codes, and totals that do not match the agreed tariff. All three can be checked automatically at discharge, before the claim is sent, which is far cheaper than waiting weeks for a rejection and resubmitting.

Is Zapier suitable for healthcare data?

It can be used carefully. Keep sensitive data such as diagnoses in a database you control, send only the minimum each step needs, and avoid putting patient details in alert messages. Check the hospital's own data protection obligations under Nigerian law before launch, and document where data flows in your runbook.

How do you match a bulk HMO payment to individual claims?

Use the remittance advice that comes with the payment, which lists the claims being paid. Match each line to a claim by claim ID or enrolee and visit date, compare the amount paid with the amount claimed, and record each claim as paid, underpaid or unmatched. The underpaid list becomes your dispute queue.


Build it with us. The community is free and the build track teaches this kind of automation week by week: see pricing or join the community.

Comments

Questions, corrections and your own experience are welcome. Comments are posted by members in the Automate Naija community and moderated there.

Loading comments...

Add a comment

Keep reading

More guides on building, fixing and shipping automations with n8n, Make and Zapier.