Commit Graph

4 Commits

Author SHA1 Message Date
91002b11c4 fix: deep links reproduce Ava's counts — slice identity, window ceiling, cohort dates
- slice now carries site / desk / provider (14_slice_dims.sql), so a front-desk
  or provider finding opens the right rows, not every CO-27 in the hospital
- every link is capped at the review's ceiling date (review_to / as-of); a
  custom-window run no longer opens claims Ava never looked at
- slow-payer link filters to claims SENT 31–60 days before the latest submitted
  date (from the stats view), matching her 1,352 instead of all 2,753 pending
- 'first deadline' ignores dates before the review (it was picking the spike week)
- header says 'Custom run' when dates were chosen; page changes scroll to top
  and dim the table while loading

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-17 11:39:52 +05:30
75483f347e fix: stable claims paging and a deep link that does not lose its date window
- claims paging ordered by claim_id (unique) instead of service_date: each page
  is a separate Spark query, and with thousands of ties the engine repeated rows
  across pages
- the case's anchor date comes from the review's own ceiling or the lakehouse
  stats view, not from the briefing, which loads seconds later; an
  expiring-appeals link with no anchor is now suppressed rather than opening
  every unfiled denial

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 19:11:02 +05:30
1c81912b17 feat: Lakehouse — every table Ava reads, with counts; claims gets total, search and filters
- /lakehouse: one card per Databricks table from the lakehouse_tables stats view
  (rows, date span, dollars); reference tables open a plain row view
- /claims: exact total (stats view when unfiltered; platform count, capped at
  10,000, when filtered), search on claim id / provider / CPT, dropdown filters
  fed by the API's distinct values, service-date range
- sidebar: 'Lakehouse' replaces 'Claims'; claims pages light it too
- pairs with 13_lakehouse.sql (rdbms templates + record views)

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 19:00:10 +05:30
e8741f6333 feat: claims explorer — the lakehouse rows behind every number
- /claims: Databricks claims table through the record-view API, server-side
  paging and filters (exact on dimensions, ranges on dates); URL is the filter set
- finding tiles link to the exact rows: affected set, and the unfiled-inside-window
  subset behind 'still recoverable'; kind-aware (expiring, slow payer, underpayment)
- 'What Ava reviewed' work statement shown under the headline
- client: range / multi-value filters

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-16 18:45:34 +05:30