Problem breakdown · No. 047 · December 3, 2026
Referrals die in the fax inbox before anyone calls the patient
Small specialty clinics lose new patients to faxes that were received but never turned into a phone call. The fix is mostly a state machine with a narrow extraction step, not an intake agent.
The problem
A small specialty clinic, such as physical therapy, dermatology or a two-doctor cardiology practice, gets most new patients through referrals. Many of those still arrive by fax from primary care offices and land as PDFs in an e-fax inbox.
Someone at the front desk opens each one, reads several pages to find the patient details and insurance, types them into the practice management system, and calls the patient. On a busy morning the inbox waits. Faxes get opened and closed without action, duplicates arrive when the sender resends, and nobody can say which referrals have had no contact yet.
The cost is quiet. The patient who never gets a call goes elsewhere or nowhere, and the referring office assumes the clinic is slow. Existing tools miss this: EHR referral modules assume electronic referrals inside one network, fax services deliver documents without any notion of state, and intake automation products are priced for health systems.
Constraints
- Regulation: referrals are PHI, so every vendor that touches them, including the model provider, needs a business associate agreement.
- Budget: a small monthly subscription, not a project with an implementation fee.
- Skills: no IT staff. Setup has to be pointing a tool at the fax inbox.
- Integration: many practice management systems have no usable write API, so assume the clinic keeps entering patients by hand.
- Data quality: skewed scans, handwritten notes, cover sheets and duplicated pages.
- Trust: staff must see the source page for every extracted field, and nothing may make a clinical judgment.
System design
Ingest is plain code: watch the e-fax inbox or export folder, store each PDF, and hash it so exact resends collapse into one record.
Extraction is where a model belongs. Fax layouts vary endlessly, and a vision-capable model under a BAA reads them better than templates. It fills a fixed schema: patient name, date of birth, phone, insurance, referring provider, reason for referral. Every field carries the page it came from, and absent fields stay null rather than guessed. If the fax says urgent, the model quotes that text; a person decides what it means.
Everything after that is deterministic:
- Validation checks date formats, phone numbers and the NPI check digit.
- Matching compares name and date of birth against open referrals to catch near-duplicates that hashing missed.
- A state machine moves each referral through
received,needs_info,contacted,scheduledandclosed_unreachable, with a timestamp per transition. - A queue sorts by age since arrival, so a referral with no contact rises to the top.
- A templated fax back to the referring office goes out when the patient is scheduled.
The review screen shows the PDF beside the extracted fields. Staff confirm or correct, then act.
Trade-offs
Staff still type the patient into the practice management system. That is double entry, but it keeps the design independent of vendor APIs, and the confirmation step is where extraction errors get caught.
Every record needs a human confirmation, so this is not hands-off intake. For PHI and a new tool, that is the right default.
Requiring a BAA narrows the choice of model. Referrals that arrive by phone or portal stay outside the system for now.
What I would build first
I would start with the folder watcher, the extraction schema with page citations, and the queue with states and ages. No outbound fax, no matching beyond hashes.
Then run it under a BAA against last month's faxes and compare with the practice management system: how many referrals never turned into an appointment, and how long first contact took for the ones that did. If that number is uncomfortable, the clinic has its reason to keep the queue open every morning.
Give every inbound document a state and an age, and let the model only fill fields that a person confirms against the source page.