Skip to content
ryanfer123Public

About

AI-powered hospital bill review for patients and families in India. Scan an itemized bill, spot potential overcharges or duplicate charges, and see the evidence behind each flag so you know what to ask before you pay.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

215 Commits

Folders and files

Repository files navigation

FairBill

Understand an itemised hospital bill and prepare evidence-backed questions for billing.

Download FairBill 3.1.9 for Android · Product site · Privacy

Get started

Install the signed ARM64 APK from the release page, where you’ll also find its SHA-256 checksum. On first launch, FairBill downloads and verifies the 2.29 GB base model before sign-in. The APK includes FairBill’s trained adapter. Start on Wi-Fi or choose to continue on your current connection. If the download stalls or times out, tap Retry model setup to resume. FairBill 3.1.9 release

Open Try a bill review to see how FairBill reads an itemised bill, checks charges, and updates a question when new evidence arrives. The practice uses fictional charges on your device.

Confirm the extracted charges Preview a redacted evidence PDF
A fictional hospital invoice with two extracted charges, the printed total, and a confirm button A redacted PDF preview showing a billing question, its source page and line, and export controls

Review a bill

  1. Add the bill. Scan a photo, upload a PDF or image, or paste itemised text. Add supporting documents such as a lab order or insurer settlement.
  2. Confirm what was read. Compare the extracted charges with the source lines, correct extraction errors, and mark any services you did not receive.
  3. Review the questions. Check repeated charges, quantity and arithmetic issues, and differences against an insurer’s settlement. The case assistant suggests a next step from the confirmed records. If new evidence explains a charge, rerun the review to update the question and see earlier revisions in the timeline.
  4. Choose what to share. Preview, open, save, or share the redacted PDF. Approve the exact letter or call script before FairBill opens your email app or dialer. You send the email or place the call yourself.

FairBill calculates amounts in integer paise. The conditional total shows what could change if billing accepts the questions, with insurer deductions shown separately. Supported campuses, tariff dates and policy wording

In Government health cover, select the treatment city to find official scheme routes. The guide lists at least five hospitals each in Hyderabad, Bengaluru, Mumbai, Chennai and New Delhi. Save optional coverage details on your phone in Profile and reuse them across your bills. Official scheme references and scope

Use Profile → Bill review alerts to get a private Android notification when the local check finds a question after confirmation. Choose System, Light, or true-black Dark under Settings → Appearance.

How the on-device assistant works

flowchart TD
    A["FairBill Gemma E2B on Android"] --> B["Chooses among eligible actions"]
    B --> C["Scan reading, charge review or supporting evidence"]
    C --> D["FairBill code checks amounts, evidence and review revisions"]
    D --> E["You decide whether to share or act"]
Loading

FairBill combines a pinned Gemma E2B base model with its packaged adapter. The assistant picks from actions made available by the app. Billing rules verify the results and handle cases when the model cannot produce a usable decision. Model setup and verification

Build Android

Use Node.js 22.13+, Java 17 and the Android SDK with NDK 27.2.12479018. Set ANDROID_HOME to the SDK path and install adb if you’ll use USB.

git clone https://github.com/ryanfer123/FairBill.git
cd FairBill
export FAIRBILL_SUPABASE_PUBLISHABLE_KEY='your-project-publishable-key'
./scripts/build-android.sh
adb install -r artifacts/FairBill-Android.apk

The hosted build uses HTTPS. Give the client only the Supabase publishable key and keep the service key on the server. Environment overrides and release requirements

Run locally

Install Python 3.13, uv and Tesseract with English language data. Install uv

Start the demo server in one terminal:

./scripts/run-demo.sh

Build and connect the local Android app in another:

FAIRBILL_LOCAL_DEV=1 ./scripts/build-android.sh
adb install -r artifacts/FairBill-Android.apk
adb reverse tcp:8765 tcp:8765

The local build includes the sample case and simulated outreach. Try adding a second lab order to resolve a duplicate-charge question while a separate quantity question remains open. Use fictional records only in the local demo.

Tests

From the repository root:

(cd server && uv sync --locked --python 3.13 && uv run pytest -q)
(cd mobile && npm ci --include=dev && npm run typecheck)
make eval

The published evaluation covers fictional bills. Real-world OCR accuracy, coverage and savings require separate evidence. Evaluation report

Repository guide

Path Contents
mobile/ Expo and React Native client
marketing/ Product site, Android download, and interactive example
server/ FastAPI API, document extraction, billing checks, and PDF export
supabase/ Authentication, database migrations, and private storage
demo/ Fictional records for local use
docs/ Architecture, API contract, and setup
scripts/ Build, local server, and API contract scripts

Built by Team Honey Potato for AgenticX. Hosted API health · Account deletion

About

AI-powered hospital bill review for patients and families in India. Scan an itemized bill, spot potential overcharges or duplicate charges, and see the evidence behind each flag so you know what to ask before you pay.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages