Compute Anesthesia Billable Units From Overlapping Time Records
Last updated: November 29, 2026
Quick Overview
Anesthesia claims are billed as base units for the procedure plus time units (one per 15 minutes of anesthesia time). Given possibly overlapping or duplicated start/end time records for one case, compute total anesthesia minutes and billable units under a configurable payer rounding policy.
Charta Health
November 29, 20260
0
0 solved
Anesthesia claims are billed as base units for the procedure plus time units (one per 15 minutes of anesthesia time). Given possibly overlapping or duplicated start/end time records for one case, compute total anesthesia minutes and billable units under a configurable payer rounding policy.
Charta Health reviews charts across specialties, and anesthesia is a classic place where documentation (start/stop times across handoffs) turns directly into revenue or overbilling risk. The interviewer looks for a correct interval merge, defensive handling of bad records, and awareness that payers round differently.
What the Interviewer Expects
- Sorts and merges overlapping intervals rather than summing raw durations
- Discards zero-length or reversed intervals
- Treats touching intervals correctly
- Parameterizes the unit length and rounding policy
- Analyzes O(n log n) time
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
- Gaps between intervals: should a short break during a handoff count as continuous time?
- How would you flag a chart where the documented time looks implausibly long for the procedure?
- How would you handle times recorded as clock strings that cross midnight?
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: a list of (start, end) in minutes, base units for the procedure, unit length (usually 15 minutes), and a rounding policy. Records may overlap (two providers documenting the same window) or be...
High-Level Design
Summing durations double counts overlaps, which would overbill. Instead, sort by start, sweep, and extend the current block while the next start is within it; when a gap appears, close the block and a...