Design a Therapist Directory Search With Insurance and Availability Filters
Last updated: November 29, 2026
Quick Overview
Design the patient-facing search that lets someone enter their insurance plan, state and needs and quickly see in-network therapists ranked by fit, with accurate next-available times.
Headway
November 29, 20260
0
0 solved
Design the patient-facing search that lets someone enter their insurance plan, state and needs and quickly see in-network therapists ranked by fit, with accurate next-available times.
Search is the entry point of Headway's patient funnel, and its results are only useful if network status and availability are current. The interviewer checks how a candidate splits slowly changing profile data from fast changing calendars, keeps the index fresh, and protects the booking path from stale results.
What the Interviewer Expects
- Clarify query patterns, latency targets and freshness needs per field
- Use a search index for filtering and ranking with denormalized therapist documents
- Treat availability as a separate fast path with precomputed next-open times
- Re-validate network status and slot availability at booking time
- Discuss ranking, fairness of exposure and caching
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- A payer drops a group of therapists from network overnight. How fast do results update, and how?
- How would you paginate when ranking includes a fast changing wait time?
- How would you support a free-text query like 'postpartum anxiety, Spanish speaking'?
- What metrics tell you search quality is getting better or worse?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Filters: state license, insurance plan and network status, specialties, modality (video or in person), language, gender, and next availability. Sort by relevance with an availability boost. Targets: p...
High-Level Design
Sources of truth: Provider service (profile, licenses), Network service (provider to plan mapping from credentialing), Calendar service (availability and bookings). Change data capture from each feeds...