Design a Claims Submission and Remittance Pipeline for Therapy Sessions

Last updated: November 29, 2026

Quick Overview

Design the system that turns completed therapy sessions into insurance claims, submits them to payers through clearinghouses, tracks their status, ingests remittance (payment and denial) files, and drives provider payouts and patient balances.

Headway
System Design
Software Engineer
Headway
November 29, 2026
Software Engineer
System Design Round
System Design
Hard

0

0

0 solved


Design the system that turns completed therapy sessions into insurance claims, submits them to payers through clearinghouses, tracks their status, ingests remittance (payment and denial) files, and drives provider payouts and patient balances.

Headway bills insurers on behalf of tens of thousands of therapists, so the claims pipeline is the financial backbone of the business. The interviewer wants to see a durable, auditable workflow with idempotent submission, reconciliation of asynchronous payer responses, and a clear story for denials, corrections and money movement.

What the Interviewer Expects
  • Model a claim as a versioned state machine with an append-only event history
  • Make submission to clearinghouses idempotent and retry safe
  • Ingest status and remittance files asynchronously and match them to claims reliably
  • Separate payer money in from provider money out with a double-entry ledger
  • Handle denials, corrections, voids and resubmissions
  • Address HIPAA concerns: PHI access, encryption and audit logging
Key Topics to Cover
workflow state machines
idempotency
reconciliation
double-entry ledger
EDI integration
auditability
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • Remittance arrives for a claim you cannot match. What happens?
  • Should Headway pay providers before the payer pays, and how does that change the design?
  • How do you roll out a new clearinghouse without double submitting claims?
  • How would you detect a payer silently dropping a batch of claims?
Sharpen Your Skills on Codemia

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

Practice System Design Problems
Sample Answer
Requirements

Functional: build claims from completed sessions (CPT code, diagnosis, provider NPI, patient member id), validate, submit, track acknowledgements and status, ingest remittance with paid amounts and ad...

High-Level Design

Session service emits session_completed. A Claim Builder creates a claim record (state draft) and runs a validation rule engine (eligibility on date of service, required modifiers per payer, provide...


Submit Your Answer
Markdown supported

Related Questions