Skip to content

Unofficial concept by Hafsa Usmani · Not affiliated with Akasa · Synthetic charts only, no patient data

A concept for the autonomous mid-cycle

Autonomous coding launched today.Here’s how you’d know when to trust it.

Threshold is the eval harness and exception router I’d want behind an autonomous inpatient coder. An agent reads each chart, cites every code to the exact sentence, and scores its own confidence. You choose where autonomy stops.

synthetic stays, real agent runs
24
synthetic stays, real agent runs
coded autonomously at 0.80
46%
coded autonomously at 0.80
code precision when autonomous
95.3%
code precision when autonomous
over-coded when autonomous
0%
over-coded when autonomous

You set the threshold. The evidence moves with it.

Drag the line. Stays spring between lanes and every metric recomputes from the recorded runs, graded against an answer key written before each chart. The number to watch is escapes: stays that needed a human but got through.

auto-code at or above
Code everythingReview everything

Each stay gets one confidence score from the agent. Stays at or above the line are finalized without a human. Everything below goes to a coder, with the reason it was held.

Coded autonomously
46%
11 of 24 stays
95.3%
95% CI 91%–99%
100%
95% CI 100%–100%
0%
95% CI 0%–0%
No escapes. Every stay that needed a human was held at this threshold.

Coded autonomously

11

Sent to a coder

13

n = 24 synthetic stays. Intervals are 95% case-level bootstrap. With this few cases they are wide on purpose: the point is the method, not the number.

Models where judgment is needed. Code everywhere else.

  1. 01code

    Triage

    Orders the documents, flags addenda and the discharge summary.

  2. 02Haiku 4.5

    Evidence

    Pulls every relevant statement as a verbatim quote. Quotes that aren't in the chart are rejected.

  3. 03Sonnet 5.5 + tools

    Coder

    Looks codes up in the real FY2027 code set. Non-billable or invented codes are sent back.

  4. 04Sonnet 5.5

    Critic

    Tries to refute every code like a payer auditor. Can remove codes and lower confidence, never raise it.

  5. 05code

    Grouper + router

    DRG is arithmetic, not a model output. One confidence per stay decides who finalizes it.

  6. 06Sonnet 5.5 + linter

    Query

    Drafts a neutral provider query for held stays. A linter blocks leading or money language.

Does the agent earn its cost?

Same charts, one prompt, no tools.

A single-prompt baseline on the same model reads each chart once and returns codes. Same answer key, same threshold. The agent costs more per stay. The evals page shows exactly what that buys.

See the evals
Agent versus single-prompt baseline at threshold 0.8
At 0.80AgentBaseline
Code precision95.3%92.3%
DRG match100%100%
Escapes01
Invalid codes0.0%0.0%
Cost per stay$0.096$0.011