Skip to content

CASE STUDY 01 · HEALTHCARE & CLAIMS

AI Healthcare Intelligence

GenAI + machine learning systems for healthcare claims analysis, risk detection and intelligent processing.

Traceable
Every extracted value linked to its source passage
Reviewable
Low-confidence output routed to a human queue
Resumable
Failures cost minutes, not a full reprocess
Stack
Python · LLMs · PostgreSQL · Azure

Healthcare & claims

  • Generative AI
  • Risk detection
  • Document intelligence
01

The problem

Claims and clinical documentation arrive in dozens of formats from dozens of sources. Reviewers spend most of their time locating information rather than judging it, and the volume grows faster than the team can.

The obvious answer — put a language model on it — collapses on the first hard question: how does a reviewer know the extracted value is right, and what happens when it is not?

02

The approach

We treated extraction as a pipeline stage rather than a product. Documents are parsed with layout awareness so tables and headings survive, chunked along their own structure, and processed with a model whose output is constrained to a typed schema.

Every extracted field carries a reference back to the passage it came from and a confidence score. Anything below the threshold is routed to a review queue instead of flowing silently into the record.

Risk signals are scored separately from extraction, so a model change in one does not quietly move the other.

03

The engineering

Ingestion runs through a durable queue with idempotent workers, so a crash mid-batch resumes rather than restarts. Each processing run is versioned against the prompt, model and schema used, which makes results reproducible and regressions attributable.

An evaluation set built from reviewed documents gates every change. A prompt or model update that lowers the score does not reach production.

04

Where it landed

Reviewers work from a pre-populated record with citations rather than a raw document, and spend their attention on judgement rather than search. Exceptions surface explicitly instead of hiding inside an average.

What we would tell another team

  • Constrain model output to a typed schema — free text is not an interface.
  • Cite the source passage for every derived value, or reviewers cannot trust any of them.
  • Gate prompt and model changes behind an evaluation set, exactly like code.
  • Route low confidence to a human rather than letting it flow through silently.

Questions

How is accuracy measured?

Against a held-out set of documents reviewed by domain experts, scored per field type rather than as a single headline number — different fields fail in different ways.

What happens to documents the system cannot handle?

They are routed to a review queue with the reason attached. An explicit exception is far more useful than a confident wrong answer.

More healthcare & claims work

Building something like this?

The architecture above is not a template, but the trade-offs recur. Tell us the shape of your problem.