Spaces:
Sleeping
Sleeping
Commit History
-
Add CSV batch upload with router-first claim processing
Achint Aggarwal +1: Claude Sonnet 4.6Billers can now upload a denial CSV from the sidebar. Each claim is immediately validated through the existing router_agent (CARC/RARC → agent mapping) at upload time — giving instant feedback on routable vs unroutable claims. Routable claims appear in a new "Batch Queue" sidebar section; clicking one launches the full Prior Auth pipeline with human-in-the-loop checkpoints unchanged. New files: - prior_auth_module/tools/batch_upload_store.py (SQLite store: batch_uploads + batch_claims) - webapp/static/csv_templates/denial_batch_template.csv Modified: - webapp/main.py: POST /api/batch/upload, GET /api/batch/queue, PATCH /api/batch/claim/{id}/status; pa_analyze extended for BATCH- scenario IDs; _update_scenario_claim_state extended for batch claims - webapp/static/index.html: upload bar + Batch Queue sidebar section - webapp/static/js/app.js: handleBatchUpload, loadBatchQueue, renderBatchClaimCard, markBatchClaimComplete - webapp/static/css/style.css: batch upload styles and status bad…4bbfe3e
-
UHC & Client onboarding added
Achint Aggarwal +1: Claude Sonnet 4.6- Added full UHC Commercial test scenarios for CARC183, CARC197, CARC197_M62 (46 scenario files) - Reorganised Denial_resolution_docs: Medicare FFS and UHC Commercial sub-folders for Skills, Data_sources, Synthetic_Data - Added UHC Commercial skill guides (CARC183, CARC197, CARC197_M62) and DS-PA05_UHC_Comm.json policy data - Added npi_directory.json for human-readable NPI resolution across all synthetic scenarios - Standardised billing_npi (9876543210 / Sunrise Medical Group) and rendering_npi (1234567890 / Dr. Sarah Johnson) across all scenarios - Client onboarding config panel: config_store.py, onboarding.html, onboarding.js, /api/config/* endpoints - Session management: TTL eviction (15 min), session cap (5), snapshot/restore on cleanup - Graceful early termination for NOT_WORKED claims after CP1 — no EHR case notes generated - CLAIM_SUSPENDED / CLAIM_RESUMED lifecycle events written on suspend/resume - Renamed APPEALED_L1 → APPEAL / APPEAL_COURTESY across all code and scenario fil…b405a64
-
Add client onboarding configuration panel
Achint Aggarwal +1: Claude Sonnet 4.6Adds a full-featured onboarding page (⚙️ gear icon in header) where admins can configure RCM clients — practices, providers, payer configs, and claim rules — via form entry or CSV upload. Config values (retro auth window, appeal dollar threshold) live-override pipeline defaults at runtime via the new config_store module backed by SQLite config.db. Seed data pre-populates Sunrise Medical Group with Medicare FFS and UHC Commercial payer configs matching existing synthetic scenarios. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>d011e0b
-
Fix Prior Auth Claims not loading + suspend/resume UI polish
Achint Aggarwal +1: Claude Sonnet 4.6- Fix loadSuspendedClaims() early return bug: empty suspended list no longer skips chained loadPriorAuthClaims() call, fixing sidebar not expanding on page load - Move 'Payer response pending' suspend CTA to 3rd inline outcome button (outcome-btn-suspend) alongside other payer call outcome buttons - Clear output area completely after session suspended (hide CP3 card) - Disable suspended scenarios in Prior Auth Claims list (greyed out, relabelled as 'SC02 — Suspended', non-clickable) - Reset CARC183 SC02 claim_lifecycle and claim_state for fresh testing - Add suspendedScenarioIds Set for cross-function suspension state tracking Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>d6643ff -
Add payer response pending — suspend & resume pipeline feature
Achint Aggarwal +1: Claude Sonnet 4.6When a payer call is required but the payer cannot respond immediately, billing staff can now suspend the pipeline and resume it days later once the payer's verdict arrives via any channel (WhatsApp, SMS, email, etc.). l5_audit_store.py: - Add suspended_sessions SQLite table (survives Space restarts) - Add create_suspended_session(), list_suspended_sessions(), get_suspended_session(), mark_session_resumed() helpers webapp/main.py: - POST /api/prior-auth/suspend — serialises phase1_state + claim_context to SQLite only on explicit user action (never automatically) - GET /api/prior-auth/suspended — returns PENDING sessions for sidebar - POST /api/prior-auth/resume/{id} — restores state, runs run_phase1b() with user-entered verdict, streams SSE from rca_review onward index.html: - Add Suspended Claims sidebar section between Prior Auth and Other Claims app.js: - showPayerCallCheckpoint(): add ⏸ suspend CTA + inline notes panel - confirmSuspend() / showSuspendPanel() / cancelSusp…510a3b7
-
UAT release: CARC 197/M62 skill, checkpoint persistence, rca_summary cleanup
Achint Aggarwal +1: Claude Sonnet 4.6- Add CARC 197 / RARC M62 full skill with 5 synthetic test scenarios (SC01–SC03, SC05–SC06) covering CORRECT_AND_RESUBMIT, REPROCESSED, and APPEAL terminal actions - Add CARC 197/M62 test runner (test_runner_carc197_m62.py); all 5 scenarios pass - Fix Step 0.5 short-circuit for repeat denials (SC06): read terminal_action_prior key fallback - Scenario-aware payer voice simulation: loads scenario JSON, pattern-matches to APPROVE/DECLINE - Fix ESCALATE root cause wording for CARC 183 (auth exists) in run_phase2 retro-denied and window-closed branches — no longer says "no prior auth obtained" when auth is on file - Generalize all ~22 rca_summary strings to be finding-oriented (no skill.md labels/directives) - Remove "Step X" references from all UI status messages and pipeline-complete banner - Checkpoint cards now persist in activity log after approve/reject (freezeCheckpointCard) - Add .checkpoint-resolved CSS class for frozen card styling - CARC 183 scenarios and manifest updated for…db55a41
-
UI: group prior auth sidebar by CARC with collapsible sections + badges
Achint Aggarwal +1: Claude Sonnet 4.6Sidebar now shows all registered CARCs as separate collapsible groups. Each group has a color-coded CARC badge and scenario count pill. First group (CARC 197) defaults open; others start collapsed. Changes: - app.js: loadPriorAuthClaims() groups claims by claim.carc key from API; renders <details>/<summary> per CARC; CARC_META map controls labels/colors — extend with one entry to support a new CARC - style.css: .carc-badge + per-CARC color classes (197=blue, 183=orange, 252=purple, 197_M62=teal) matching the same registry-driven pattern Total count now reflects all CARCs (12 CARC-197 + 6 CARC-183 = 18). Adding CARC 252 scenarios requires only a manifest + registry entry — no further UI code changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>af49446
-
CARC-197 - Round 1 testing complete
Achint Aggarwal +1: Claude Sonnet 4.6Complete CARC 197 Medicare FFS denial resolution pipeline — all scenarios tested and validated against CARC197_FFS_SKILL.md. Key changes: - REPROCESSED terminal action: new closure state for payer-side errors; skips action_approval checkpoint - CORRECT_AND_RESUBMIT fast-track: skips action_approval, goes directly to doc_review with correction fields - Step 0.5 short-circuit: expanded routing for all prior terminal action types (REPROCESSED, ESCALATE, NON-RECOVERABLE, resolution actions) - Step 4 retro auth denied branch: now ESCALATEs (terminal) per updated SKILL; emits full window-check + submission context before terminating - SC09 ESCALATE message: root cause now clearly separates denial reason (no auth obtained) from escalation reason (retro window closed) - RSNAT frequency check: rsnat_transport_history now correctly drives PA-required determination for ambulance RSNAT scenarios - Action-aware UI: doc_review card, approve button, and status messages are all terminal-action-specif…eb7c7a6
-
Add CARC 197 prior auth pipeline, HITL webapp flow, and auth fixes
Achint Aggarwal +1: Claude Sonnet 4.6- Add prior_auth_module: deterministic CARC 197 resolution agent (Steps 0–7), HITL three-phase orchestrator, router agent, policy lookup tools, audit store, CMS-20027 packet generator, and 9 synthetic test scenarios - Add CARC197_FFS_SKILL.md: Medicare FFS resolution skill file (step order: Window Verification at Step 5 before Packet Assembly at Step 6) - Update prior_auth_agent.py to match skill file (Step 0.5→Step 0 rename, swap Steps 5/6 so appeal window is checked before packet assembly) - Add login page (login.html) with OTP flow; fix login loop bug caused by BaseHTTPMiddleware swallowing cookies from injected Response parameter - Fix SMTP encoding: strip \xa0 non-breaking spaces from Gmail App Password - Update Dockerfile to build and run prior_auth_module alongside webapp - Update .gitignore/.dockerignore to exclude large/binary data files Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>dd91bad
-
feat: payer voice call with ringtone and ringing panel UI
Achint Aggarwal +1: Claude Sonnet 4.6- agents.py: emit call_initiated SSE event before retrieve_eob_info_over_call so frontend can show ringing state during the ~4-8s tool execution delay - app.js: handle call_initiated — render animated ringing panel and start Web Audio API ringtone (dual-oscillator 440/480Hz phone ring pattern); stop ringtone and transition panel to live call on payer_call event - style.css: add ringing panel styles — shaking phone icon, pulsing yellow dot, bouncing audio-visualizer bars, pulsing header animation - EOB.pdf renamed to EOB_backup.pdf to force voice call path for claim 12345 - Added CODING_AGENT_BRIEF.md for future coding resolution agent research Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>05c515d
-
feat: hybrid chunking + hybrid search + Arize AX observability + NBA agent
Achint Aggarwal +1: Claude Sonnet 4.6- Replace fixed word chunker with hybrid chunker (structural split on CARC codes, Step markers, paragraph breaks + sliding-window fallback for oversized sections) - Replace pure vector search with BM25 + vector hybrid search fused via Reciprocal Rank Fusion (RRF); search_documents now accepts payer_name param to focus retrieval on the correct payer SOP - Add semantic query cache (ChromaDB cosine-distance deduplication) - Add Arize AX observability: arize-otel register + OpenAIInstrumentor + OTel chain spans on all 4 pipeline routes (rca, draft, resume, finalize) - Add payer voice calling agent (payer_voice_agent.py + retrieve_eob_info_over_call) - Rename Execution Agent to NBA Agent; refine system prompts - Add configurable .env knobs: MAX_CHUNK_WORDS, CHUNK_OVERLAP, BM25_ENABLED, VECTOR_TOP_K, BM25_TOP_K, RRF_K, RESULTS_PER_QUERY, SEMANTIC_CACHE_THRESHOLD - Sync all 12 claim EOB PDFs and INV-2025 document folders - Update static frontend (style.css, index.html, app.js) Co-A…d71d199
-
Add session metrics tracking for execution time, tokens, and cost
Achint Aggarwal18ad381
-
Add intro screen overlay to webapp
Achint Aggarwal8ae966e
-
Deploy Claim Resolution Expert to Hugging Face
Achint Aggarwal5f5352b