How haneeshvarma2006-lab/24h works
Hayara.ai turns hospital bills and insurance claims into structured records, checks their arithmetic and completeness, and routes uncertain or invalid records for human review. Its main workflow runs from authenticated upload through extraction, validation, correction or approval, and export. Extraction can use Gemini or a local OCR-and-rules path; OCR also supports source highlights. The README documents account isolation, demo documents, claim-to-bill checks, and spreadsheet exports. Some route implementations were not excerpted, so those documented capabilities are shown without inferring their internal call chains.
Main entry points: app.py API and workflow · ocr_extract.py Local OCR parser · index.html Dashboard · locate.py Source highlights
Components 14
Dashboard and API
- Dashboard
frontend/index.html - API and workflow
backend/app.py
Document extraction
- Extraction router
backend/app.py - Gemini vision
- Local OCR parser
backend/ocr_extract.py - Learned field finder
backend/field_model.py - Source highlights
backend/locate.py - Tesseract OCR
Validation and review
- Bill validation
backend/validate.py - Corrections and approval
backend/app.py - Claim matching
backend/app.py - Data export
backend/app.py
Accounts and records
- Account and bill store
backend/app.py
Other components
- Reviewer
Connections 17
- Reviewer → Dashboard: uses
README.md - Dashboard → API and workflow: calls API
README.md - API and workflow → Extraction router: reads uploads
backend/app.py - Extraction router → Gemini vision: extracts with
- Extraction router → Local OCR parser: falls back to
README.md - Local OCR parser → Tesseract OCR: runs OCR
backend/ocr_extract.py - Local OCR parser → Learned field finder: applies model
backend/ocr_extract.py - API and workflow → Source highlights: finds highlights
backend/app.py - Source highlights → Tesseract OCR: runs OCR
backend/locate.py - API and workflow → Bill validation: validates records
backend/app.py - API and workflow → Claim matching: checks claims
backend/app.py - API and workflow → Account and bill store: reads and writes
backend/app.py - API and workflow → Corrections and approval: offers review actions
README.md - Reviewer → Corrections and approval: corrects or approves
README.md - Corrections and approval → Account and bill store: saves changes
README.md - API and workflow → Data export: serves exports
README.md - Reviewer → Data export: requests export
README.md