Flag Charts Missing Documentation Required by Billed Codes
Last updated: November 29, 2026
Quick Overview
Given a list of charts, each with the CPT codes about to be billed and the documentation sections present, and a map from code to the sections that code requires, return every chart with missing sections grouped by code.
Charta Health
November 29, 20260
0
0 solved
Given a list of charts, each with the CPT codes about to be billed and the documentation sections present, and a map from code to the sections that code requires, return every chart with missing sections grouped by code.
A warm-up in the style of Charta Health's phone screen: pre-bill review is about catching documentation gaps before a claim leaves the building, and this is the simplest deterministic version of that check. The interviewer watches for clean data modeling, case-insensitive matching on messy section headers, and deterministic output.
What the Interviewer Expects
- Uses sets for constant-time section lookups
- Normalizes section names (case, whitespace) before comparing
- Ignores codes that have no requirement entry instead of crashing
- Returns only charts with gaps, with deterministic ordering of missing sections
- States O(total codes x required sections) complexity
Key Topics to Cover
How to Approach This
- Clarify input constraints and edge cases before writing code.
- Walk through your approach verbally and confirm with the interviewer before coding.
- Start with a brute force solution, then optimize. Mention time and space complexity.
- Test your solution with examples, including edge cases like empty input or duplicates.
- Consider common patterns: sliding window, two pointers, hash map, BFS/DFS, dynamic programming.
Possible Follow-up Questions
- How would you support requirements that are 'one of' several sections (for example Exam OR Review of Systems)?
- Payers differ in what they require; how would you make the requirement map per payer?
- How would you surface the gaps to a coder so they can fix the chart quickly?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice DSA ProblemsSample Answer
Requirements
Input: charts as {id, codes, sections} and requirements: code -> set(section). Output: {chart_id: {code: [missing sections]}}, only for charts with at least one gap. Section headers come from fr...
High-Level Design
For each chart, build a normalized set of present sections once. Then, for each billed code, compute required - present. Collect non-empty differences. Sorting the missing list keeps output stable, ...