--- title: ClaimReady โ€” Claim Submission Check emoji: ๐Ÿฅ colorFrom: blue colorTo: green sdk: gradio app_file: app.py pinned: false short_description: Catch claim errors before you submit โ€” open model tags: - build-small-hackathon - document-ai - vision-language - multilingual - healthcare - track:backyard - achievement:offgrid - achievement:offbrand --- # ๐Ÿฅ ClaimReady **An assistive pre-check for hospital health-insurance claims โ€” built for hospital administration staff.** ClaimReady helps hospitals **identify potential compliance issues before submitting claim documents to insurance providers**. It analyses uploaded documents against package-specific treatment guidelines and provides **actionable feedback on missing, incomplete, or non-compliant documents**, allowing hospitals to correct issues early in the process. It runs **entirely inside the Space on a small open model โ€” Gemma 3 12B (โ‰ค 32B)** โ€” with **no cloud inference API**. ## ๐ŸŽฅ Demo & Links - **โ–ถ๏ธ Demo video:** https://youtu.be/A4PCHp89bsQ - **๐Ÿ“ฃ Social post:** https://www.linkedin.com/posts/ullivinaybabu_build-huggingface-gradio-share-7472141735138119681-80Th/ - **๐Ÿ’ป Source code (GitHub):** https://github.com/vinayulli/claim_ready - **๐Ÿš€ Live app:** this Space โ€” open the **"Load a sample claim"** buttons at the top to try it in one tap. ## ๐Ÿ“‹ Overview ClaimReady is used by **hospital administration / billing staff**. For this prototype it uses the **PMJAY (Pradhan Mantri Jan Arogya Yojana)** scheme as an example, where hospitals must follow **Standard Treatment Guidelines (STGs)** when submitting claims. Because these guidelines vary across treatment packages, the application evaluates each claim against the **selected package's requirements**. The goal is simple: **reduce claim rejections, minimise processing delays, and improve operational efficiency** for hospitals and claim teams. ## ๐Ÿšฉ Problem Statement Health-insurance claims โ€” for example under India's **Ayushman Bharat / PMJAY** scheme โ€” require a specific set of **supporting documents** that must satisfy the applicable **clinical / treatment guidelines** for each procedure and stage (pre-authorization / claim). - Every claim must include **all mandatory documents** and meet defined **content conditions** for the procedure and stage. - A missing document โ€” or a value that doesn't meet a condition โ€” can lead to **claim rejection**, delays and rework. ## โœ… Solution โ€” What ClaimReady Offers - ๐Ÿ“„ Reads every uploaded document with **on-device OCR** โ€” images *and* PDFs. - โœ… Verifies the set against the **required-document checklist** for the selected package and stage. - ๐Ÿ”Ž Evaluates **content rules** (thresholds, conditions) against the values it *actually reads*. - ๐ŸŒ Handles **mixed-language** documents โ€” e.g. **English + Hindi / Telugu** in the same record. - ๐Ÿ–ผ๏ธ Built-in **document viewer** โ€” preview every page (images and PDF pages) before checking. - โš ๏ธ Surfaces **missing, incomplete, or non-compliant documents early**, with supporting evidence โ€” as an **assistive** pre-check. ## ๐Ÿ”ง How It Works 1. **Select a package + stage** โ†’ the app loads the required-document checklist and content rules (data-driven from `packages.json`). 2. **Upload documents (or click a sample)** โ†’ PDFs and images are rendered to page images (PyMuPDF) and shown in the viewer. 3. **Run the check** โ†’ the document images + the checklist + a strict review prompt go to **Gemma 3 12B**, which **OCRs and reasons in a single pass** and returns structured JSON. 4. **Review** โ†’ rendered as a clear **โœ… / โŒ / โš ๏ธ** assistive review with evidence and an action list. (Low-confidence "present" documents are flagged as gaps, to stay conservative.) ## ๐Ÿ“ˆ Scope & Scalability - Currently supports **four treatment packages** as a proof of concept. - The logic is **data-driven** (`packages.json`), so the architecture is **scalable** and can easily be extended to support many more **packages, insurance providers, and compliance frameworks**. ## ๐Ÿงฑ Built Small | | | |---|---| | **Model** | `google/gemma-3-12b-it` โ€” a small, open **โ‰ค 32B** model | | **Runtime** | Hugging Face **Transformers on ZeroGPU** โ€” runs inside the Space, **no external / cloud inference API** | | **Stack** | Gradio ยท PyMuPDF ยท Pillow ยท ๐Ÿค— Transformers | ## ๐Ÿฉบ Note ClaimReady is a **decision-support** tool โ€” it highlights likely gaps for review and does **not** approve or reject claims. The sample claims in the app are **synthetic** (fictional patients) โ€” **no real patient data**. --- *Built by [**@vinaybabu**](https://huggingface.co/vinaybabu) for the **HuggingFace Build Small Hackathon** ยท Backyard AI track.*