Design an Autonomous Coding System With Confidence-Based Human Routing

Last updated: November 29, 2026

Quick Overview

Design an ML system that reads an encounter's documentation and assigns the final CPT, ICD-10 and modifier codes, submitting low-risk charts automatically and routing the rest to human coders, with a target of automating most charts without raising error or denial rates.

Charta Health
ML System Design
Machine Learning Engineer
Charta Health
November 29, 2026
Machine Learning Engineer
System Design Round
ML System Design
Hard

0

0

0 solved


Design an ML system that reads an encounter's documentation and assigns the final CPT, ICD-10 and modifier codes, submitting low-risk charts automatically and routing the rest to human coders, with a target of automating most charts without raising error or denial rates.

Autonomous coding is one of Charta Health's product lines, and it raises the bar from suggesting findings to owning the final answer. The interviewer checks how you structure extraction versus code assignment, calibrate confidence for routing, evaluate against auditors, guard against payer rules and drift, and keep a human in the loop where it matters.

What the Interviewer Expects
  • Breaks the problem into extraction, code assignment, rules validation and routing
  • Defines the routing decision on calibrated, per-chart risk, not raw LLM confidence
  • Sets up offline and online evaluation with auditor labels and a random audit sample
  • Handles payer and specialty specific rules deterministically
  • Plans for drift, guideline updates and feedback from coder corrections
  • Addresses latency, cost and PHI constraints
Key Topics to Cover
LLM pipelines
calibration
human-in-the-loop
medical coding
evaluation
drift monitoring
How to Approach This
  1. Start by mapping the business objective to a concrete ML objective and metric.
  2. Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
  3. Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
  4. Address the serving latency budget and whether batch or real-time inference is needed.
  5. Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
  • How would you choose the automation rate for a new customer with no labeled history?
  • A payer changes its policy for a code mid-month; how does the system react?
  • Coders correct an automated chart in only 2% of cases; how do you know the other 98% are right?
  • How would you cut LLM cost by half without lowering quality?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice ML System Design Problems
Sample Answer
Requirements

Input: a signed encounter (notes, orders, procedures, prior problem list, payer). Output: final code set with units and modifiers, plus evidence for each code. Goals: automate 70% or more of charts in...

High-Level Design
  1. Normalize the chart into sections; deduplicate copied-forward text.
  2. Extraction: an LLM produces structured facts (procedures performed with laterality, diagnoses addressed, MDM elements, time) e...

Submit Your Answer
Markdown supported

Related Questions