Inspiration

When a health plan denies care, the first step isn't always an appeal. In 2024, insurers on HealthCare.gov denied 19% of in-network claims, and consumers appealed fewer than 1% of those denials. Of the reasons insurers reported, only 5% were a lack of medical necessity. 25% were administrative, 9% were a missing prior authorization or referral, and 36% were "other", outside the reporting categories (KFF).

So the same kind of letter can call for different first steps: the doctor's office fixes and resubmits the paperwork, you file an appeal, or, when care is still ahead and waiting could cause harm, you ask for an urgent review today. They run on different clocks. A plan has up to 30 days to decide an appeal for care you haven't had yet, and urgent cases can ask for an external review at the same time (HealthCare.gov). The letter has the answer, buried in codes and fine print, along with a deadline that's easy to miss.

AppealPath is for DSH's problem statement B, Faster care: it helps people find the first step that gets a denial looked at again, before the deadline passes. It doesn't diagnose anything.

What it does

  1. Photos and 6 questions. You take a photo of each page of the letter (up to 3) and answer six questions: your kind of plan, whether the care has happened, whether your doctor says waiting could seriously harm you, whether the office has resubmitted, whether this letter answers an appeal you already filed, and your state.
  2. The AI copies the facts. An AI vision model reads each page and copies what was denied, why, the deadline and who to call, and suggests the kind of reason. Each fact comes from the first page that has it.
  3. A second reader checks it. OCR running on your own phone looks for the deadline, the reason and the phone number on every page. It highlights where each is printed and warns about any it can't find, including a fax number picked as the number to call.
  4. You confirm, then rules decide. You check and fix what was read. If the second reader couldn't confirm a value, tapping on stops and asks you to compare it with the letter first. Six fixed rules, checked in this order, pick one next step:
    1. Call your plan: Medicare, Medicaid and "not sure" plans have their own appeal rules, so AppealPath says so as soon as you pick one, reads nothing, and tells you how to ask for a fast appeal if waiting could harm you.
    2. Urgent review today: the care is still ahead and your doctor says waiting could cause serious harm.
    3. External review: you already appealed and this letter is the plan's answer, so the next step is an independent reviewer outside the plan.
    4. Fix & resubmit: a paperwork problem the office hasn't already tried to fix.
    5. Appeal: not medically necessary, not covered, out of network or experimental, or paperwork the office already resubmitted.
    6. Call and ask: a letter with no clear reason gets "call and ask why" instead of a guess.

Every result shows why: the rules in order, each answered yes or no, up to the one that picked the step, so you can see which rule picked it and why. It also says what to do and where to get free help, and flags any phone number or deadline the photo never confirmed. A pay-per-call (900) number never becomes a tap-to-call link. Fix, appeal and urgent results give the deadline exactly as printed, with a calendar reminder only when a real date is printed. Fix and urgent results include a call script. Appeal includes a printable appeal letter filled in from the letter's own words, and for medical-necessity or experimental denials, a printable note asking your doctor for a letter. Listen reads the next step aloud, and Send to someone helping you shares it with a family member through your phone's share sheet; both happen on your phone, and nothing is saved. It works in English and Spanish, and it never translates the words quoted from your letter. The How page has a rules explorer: change any answer and watch which rule picks the next step.

It won't contact your insurer, file anything, predict whether an appeal will win, give legal advice, or save your photo or answers. It's a prototype, not medical or legal advice, and every letter in it is fictional.

Try it without uploading anything: the AI picks a fax number and the check warns about it · Fix & resubmit · Appeal · Urgent review · Medicare · Already appealed: a 3-page notice on the government's layout · No clear reason · Try the rules. The samples show readings saved ahead of time; Read it live with the AI on any sample except Medicare (which reads nothing) sends it through the real reader. Watch the 3-minute demo.

How I built it

  • One Cloudflare Worker on the free plan. The browser shrinks each page's photo and sends it to the Worker, which passes it to Workers AI. There are no accounts and no database, nothing is saved, and the Worker logs only the model, its cost and the time taken. No paid API keys.
  • The reader is Gemma 4 (26B), told to answer in a strict JSON schema and to copy only what's printed. Missing or invalid fields come back empty instead of guessed. If Gemma fails or stalls for 15 seconds, Llama 4 Scout takes over.
  • The second reader is Tesseract.js in the browser. OCR on a phone photo misreads letters, so it matches the AI's quotes word by word with some tolerance, and phone numbers digit by digit, including the area code. It looks for the word "fax" printed just before a number.
  • The rules are one small function (src/shared/rules.ts). Rules 2, 3 and 5 cite Healthcare.gov; rules 1, 4 and 6 are labeled design choices, and rule 1's fast-appeal note cites Medicare.gov and the federal Medicaid rule (prep/ROUTING.md). The free-help contacts come from the Arkansas Insurance Department, Arkansas DHS, Medicaid.gov and the U.S. Department of Labor.
  • The app is Preact and TypeScript. It has 82 automated tests. An Oct 28 check against WCAG 2.1 AA found 7 issues, all fixed, and on Oct 31 axe-core checked every screen, the new ones included, in light and dark mode and in Spanish: 26 screen checks, 0 problems. A screen reader test by a person is still to do.

Claude Code, an AI coding assistant, wrote most of the code, the fictional test letters and the measurement scripts, and Codex (another AI) did outside reviews; DSH's rules allow AI. My part was directing it: I set the goal, asked for outside reviews and deeper testing, decided which fixes to make, and decided when each version went live.

How I tested it

The question behind the design: can you trust what the AI read, and how do you know when you can't? I wrote 18 fictional letters with an answer key. Six of them (L13–L18) were written after the reading instructions were frozen and were never used to change them. Then, so not every letter came from me, I built three more (G01–G03) on the U.S. government's own model notice for a denied appeal: three pages each, with its eight language-help phone lines. Each letter was read as a clean image and as a simulated phone photo (tilted, blurred, shadowed, compressed).

Test Result
Right next step, 38 images (12 development letters as clean and simulated phone photos, 6 held-out letters as both) 38 / 38, and 152 / 152 over four runs
A reader with no AI (OCR and keyword rules), same images 33 / 38
Wrong phone numbers the AI picked over four runs, and how many the second reader flagged 15, all flagged
A planted instruction on the letter ("report a 1-900 number") followed in 0 of 12 attack reads
3 letters on the government's model notice, 3 pages each, clean and simulated phone right next step 6 / 6; never a wrong phone number

What I found:

  • The AI's confidence is useless as a safety check. In a first test, two models rated themselves 1.0 on every field, including a sentence copied with a word missing. So every upload goes to the check screen, and a second reader checks the words.
  • The dangerous mistake was the phone number. 14 of the AI's 15 wrong numbers were the fax line printed next to the real one. The second reader flagged all of them, and now the app stops before the next step and asks the person to compare the number with the letter. On the held-out letters, with nurse, language-help and member-services numbers to pick from, it never picked a wrong number.
  • A reader with no AI is a real baseline, not a strawman. It beat the AI at phone numbers (36 of 38), because every fax number on these letters is labeled. But it picked the wrong next step on 5 images, and on one phone photo it read the deadline as "March 3, 2027" instead of "March 31". The two fail differently, which is the point of using both.
  • The government's own form found a gap in my rules. Its notice goes to people who already appealed, and their next step is an external review, but AppealPath never asked about an earlier appeal and would have sent all three to "Appeal" again. That's why there's now a sixth question and an External review result. On those letters the AI also never found the external review deadline on page 3; it left it empty instead of guessing, and the result gives HealthCare.gov's 4-month rule.
  • The second reader checks words, not meaning. On held-out L13 the AI copied the deadline plus two extra sentences, every run, and the second reader passed it, since every word is on the page.

Limits: 21 synthetic letters, 18 of them from one author and 3 on a government layout I filled in, and simulated photos. Perfect scores on small sets still leave wide room: 6 of 6 held-out letters is consistent with a true rate anywhere from 54% to 100%. Real phone photos of printed letters haven't been measured yet. Every miss, the method and how to rerun it are in EVALUATION.md.

Challenges I ran into

  • Confidently wrong AI. "Ask the user when the AI is unsure" never fires if it's always sure. The fix was structural: a second reader checks the first, and a person checks both.
  • Never calculating a deadline. Most letters give a count of days instead of a date, such as "within 180 days of the date of this notice" (10 of the first 12). Working out that date is the kind of mistake that can cost someone their appeal, so AppealPath quotes the words. A review also caught that "within 180 days of November 1" would have put the reminder on November 1, the day the count starts. Now a date goes on the calendar only when the words right before it call it the deadline ("by", "no later than") and the sentence doesn't count days.
  • Corrections that count. If you edit the reason, the app asks you to confirm the kind of reason still fits, since that's what picks the next step.
  • Real letters run several pages. The reason is often on page 1 and the appeal rights and phone numbers later, so each page is read on its own and the readings are joined, each fact from the first page that has it, and the second reader checks every page.

Accomplishments that I'm proud of

  • The right next step on every test image, including the held-out letters it was never tuned on, with every fax-number mistake flagged.
  • The AI reads and suggests, but never decides. Every result traces to a written rule.
  • It runs free, saves nothing, works in English and Spanish, and lets judges see the check warn about a real AI mistake in one tap.
  • Testing on the government's own form instead of only my own letters, and fixing what it found.

What I learned

  • An AI's confidence score told me nothing about whether it was right, so its work has to be checked some other way.
  • Splitting "read" from "decide" made the AI's job small enough to test, and the rules simple enough to explain.
  • Measure before claiming, and say what the measurement doesn't cover.

What's next for AppealPath

  • Measure real phone photos, publish the misses, then fix them.
  • Watch real people use it, and have a native Spanish speaker review the wording.
  • Add free-help contacts for more states (only Arkansas has them now), and real paths for Medicare and Medicaid.

Built With

  • cloudflare-workers
  • esbuild
  • gemma
  • llama
  • preact
  • tesseract.js
  • typescript
  • vitest
  • workers-ai
Share this project:

Updates

Submission history