Automate Lab Result Alerts: athenahealth + Twilio [Guide]
The clinical assistant at a five-provider practice walks in Tuesday to 142 unread lab results in athenahealth. Forty-one are abnormal. Six are critical. The system is one person with a sticky note, leaving voicemails that 60% of patients won't return. By Friday, an A1c result that should have triggered a 48-hour callback is on day four. The patient is back at work, hasn't heard a word, and the next time they think about their diabetes is at their annual physical eleven months from now.
This is the lab-results-notification problem. It isn't a tooling problem — athenahealth has a results inbox, Twilio sends millions of SMS daily, and Spruce runs HIPAA-secure messaging for thousands of practices. It's a workflow problem. Three capable systems that don't talk to each other, leaving humans to copy-paste across tabs and hope nothing critical falls through.
This guide walks through the actual integration — what each tool does, how the data needs to flow, where the security boundaries sit, and where an orchestration layer above the three vendors makes the workflow durable in real practice operations.
Key Takeaways
A working lab-results notification workflow has three jobs: detect the result in the EHR, classify it (normal vs. abnormal vs. critical), and deliver the right message through the right channel.
Healthcare administrative cost share: 25% of US health spending according to KFF 2024 Health Spending Analysis. Notification chasing is part of that 25%.
athenahealth handles the clinical truth, Twilio handles SMS scale, and Spruce handles HIPAA-compliant two-way patient messaging — but none of them orchestrate the end-to-end workflow on their own.
US Tech Automations sits above all three: it pulls the result from athenahealth, routes by clinical category, sends the right message through the right channel, and logs every touch back to the chart.
Honest expectations: this is a two-to-four-week implementation for a five-provider practice. Anyone promising a one-day go-live has not done a HIPAA-aware integration before.
What is automated lab results notification? An integration that pulls lab results from an EHR (like athenahealth), classifies them by clinical severity, and delivers notifications to patients through SMS (Twilio) or secure messaging (Spruce) based on the result type. The goal is a closed-loop record where every result reaches the right patient through the right channel within hours, not days.
TL;DR: Wire athenahealth's results inbox to a workflow engine that classifies each lab by severity, routes normal results to SMS via Twilio with a portal link, routes abnormal results to Spruce secure messaging with a provider-attached note, and escalates critical results to a phone callback queue. 53% of physicians cite burnout according to AMA 2024 Physician Burnout Survey — automating the notification chain is one of the highest-leverage burnout offsets a practice can buy. The decision criterion: only build this if your practice handles 200+ lab results per week and at least 30% are abnormal.
What This Integration Does
Who this is for: Independent primary care, urgent care, women's health, or specialty practices running 3-15 providers, $1.5M-$10M in annual revenue, already on athenahealth (athenaOne or athenaClinicals), and currently relying on human callbacks or portal-only notifications for lab results. Primary pain: results sitting unread for 48-72 hours, abnormal-result callbacks dropped, and patient complaints about "I never heard from you."
The integration's job is to follow a lab result from the moment it arrives in athenahealth to the moment the patient acknowledges receipt — without an assistant copy-pasting or remembering. The workflow has four primary stages.
| Stage | What Happens | System Doing It |
|---|---|---|
| Detection | Result arrives from reference lab, posts to athenahealth | athenahealth |
| Classification | Result tagged normal, abnormal, or critical by rules or provider sign-off | Workflow engine + athenahealth |
| Notification | Patient receives SMS, secure message, or phone callback | Twilio or Spruce |
| Reconciliation | Notification status logged back to athenahealth chart | Workflow engine |
The piece most practices underestimate is reconciliation. If you send 80 SMS messages Tuesday but cannot answer "did the patient get it and click through?" by Wednesday, you don't have a workflow — you have an outbox.
Office-based physicians using EHR: 78%+ according to HIMSS 2024 Health IT Adoption Report, which means the limiting factor in 2026 is no longer EHR adoption. It's the workflow on top of the EHR. Per administrative cost data published by KFF, roughly a quarter of US health spending is absorbed in coordination, billing, and notification work — and according to AMA tracking, a meaningful share of that overhead lands on the clinical staff doing manual lab callbacks. According to HIMSS adoption data, even practices with full EHR coverage report wide variability in result-notification turnaround.
Prerequisites and Setup
Before touching any tool, the practice needs four things in place. Skipping any of these will cost you a week of rework.
| Prerequisite | Why It Matters | How to Verify |
|---|---|---|
| athenahealth API access | Required to read result-document objects programmatically | Confirm with athenahealth account manager you have API credentials for "Patient" and "Document" endpoints |
| Twilio account with HIPAA BAA | SMS without a signed BAA = HIPAA violation | Sign the Twilio BAA before sending one production message |
| Spruce practice account | Two-way HIPAA-secure messaging | Provision practice number, train providers on inbox |
| Provider sign-off rules | "Critical" is a clinical definition, not a software setting | Document with medical director, signed off before go-live |
Who this is for: practices where the medical director will actually sit in a 30-minute meeting to define what "abnormal" and "critical" mean for the top 20 lab panels. If you cannot get that meeting, stop here and rebuild the human workflow first.
An experienced orchestration team works through the prerequisite gap-list during scoping — most practices come in thinking they have API access and discover they have only portal access. That's a four-day procurement detour, not a four-hour technical fix.
The Twilio BAA Specifically
Twilio's standard account does not include a Business Associate Agreement. You must explicitly request the BAA from a Twilio account executive — it's a paper process, typically 5-10 business days. Without it, your first SMS containing a patient's name plus the phrase "results" is a reportable HIPAA event. Twilio's Programmable Messaging product, once BAA-covered, is the right SMS layer for the workflow. Spruce, by contrast, is built HIPAA-compliant out of the box — no BAA paperwork — which is why it handles the messaging that actually contains clinical detail.
Step-by-Step Connection Guide
This is the build sequence for an athenahealth + Twilio + Spruce lab notification workflow built on US Tech Automations. Eight numbered steps, executed in this order, in one contiguous block:
Provision athenahealth API credentials. Submit the API access request through athenahealth's marketplace; expect 5-7 business days for production credentials. Sandbox access comes faster.
Sign the Twilio BAA and provision an A2P 10DLC campaign. SMS to patient mobile numbers in the US requires registered A2P traffic; expect 7-14 business days for campaign approval.
Provision a Spruce practice number and configure the provider inbox. Each provider gets their own visible queue; results-notification messages should route to a shared "lab follow-up" inbox, not individual providers.
Define result classification rules with the medical director. For each panel (CBC, CMP, lipid, A1c, TSH, PSA, etc.), specify the value ranges that map to "normal," "abnormal," and "critical." Most engagements start from a templated rule library covering the top 30 panels, and the practice customizes from there.
Build the athenahealth document-listener job. Poll the documents API every 5 minutes (athenahealth's webhook coverage for results is partial). Filter for
documentSubclass = LABRESULT.Build the classification step. Each result gets enriched with patient phone, language preference, and provider-of-record from athenahealth. The classification rule from step 4 fires here.
Wire the routing logic. Normal results route to Twilio SMS with portal link. Abnormal results route to Spruce with provider's templated note. Critical results route to a callback queue with on-screen alert plus paging escalation.
Reconcile back to athenahealth. Once the patient acknowledges receipt (SMS click, Spruce read receipt, or callback completed), post a chart note back to athenahealth via the Document POST endpoint.
These eight steps are the spine. The first time through, expect 2-4 weeks of build-and-tune. Subsequent practices going on the same workflow template ship in under a week because the classification rule library and reconciliation logic are reusable across engagements.
Trigger and Action Workflow Recipes
The recipes below cover the three most common patterns. Each shows the trigger, the conditions, and the action — the practical anatomy of the workflow.
Recipe 1: Normal lab result → SMS with portal link
| Element | Configuration |
|---|---|
| Trigger | New LABRESULT document in athenahealth with interpretation = N (normal) |
| Conditions | Patient has mobile phone on file, opted in to SMS, language preference English/Spanish |
| Action | Twilio SMS: "Hi [first name], your recent lab results are now in your patient portal. View them here: [link]. Reply STOP to opt out." |
| Reconciliation | Log Twilio delivery receipt + click event back to athenahealth chart |
Recipe 2: Abnormal lab result → Spruce secure message
| Element | Configuration |
|---|---|
| Trigger | New LABRESULT document with interpretation = A (abnormal), provider sign-off complete |
| Conditions | Provider has signed off, no critical-tier values, patient has Spruce profile |
| Action | Spruce message from provider's templated library: result summary + recommended next step + scheduling link |
| Reconciliation | Spruce read receipt + reply (if any) logged back to athenahealth |
Recipe 3: Critical lab result → callback queue + page
| Element | Configuration |
|---|---|
| Trigger | New LABRESULT document with values meeting critical-threshold criteria (e.g., K+ >6.0, glucose >500) |
| Conditions | Always escalate; no opt-out path |
| Action | Provider page via Spruce, callback ticket created in queue, 30-min SLA for first patient contact attempt |
| Reconciliation | Callback note logged to chart; if patient unreachable in 2 hours, second escalation to on-call |
How does the orchestration layer actually deliver each message? It calls Twilio for SMS and Spruce for HIPAA-secure messaging — the orchestrator doesn't replace either tool, it sequences them. The reason you wouldn't just point Twilio directly at athenahealth is that Twilio has no concept of clinical classification; without the workflow layer, every result gets the same SMS or no SMS at all.
Authentication and Permissions
Each of the three integrated systems uses a different authentication model. Getting this right on day one prevents 30% of go-live delays.
| System | Auth Model | Token Lifetime | Refresh Strategy |
|---|---|---|---|
| athenahealth | OAuth 2.0 client credentials | 1 hour | Refresh 5 min before expiration |
| Twilio | Account SID + Auth Token | Static | Rotate quarterly per Twilio guidance |
| Spruce | OAuth 2.0 with practice scope | 30 days | Re-auth on expiration |
A practical gotcha: athenahealth's OAuth refresh occasionally returns a token that is technically valid but missing the document-write scope. Production workflows on US Tech Automations sanity-check the returned scope set on every refresh — if document-write is missing, the workflow pauses rather than failing silently and losing the chart-note reconciliation. According to teams managing healthcare integrations across multiple practices, this single check eliminates the most common silent-failure mode in athenahealth orchestration.
The reconciliation step is what separates a real notification workflow from an outbox. If your system cannot answer "did the patient get the message and act on it?" within 24 hours, you are running a one-way notifier, not a closed-loop workflow.
Troubleshooting Common Issues
Five issues come up in nearly every deployment.
Issue 1: Phone number mismatches. athenahealth stores phone in multiple slots (home, mobile, emergency). Rule: SMS only to "mobile" with explicit opt-in set; fall back to portal otherwise.
Issue 2: Duplicate result-document posts. athenahealth re-posts amended results with a new internal ID. Rule: dedupe by external order number + collection date.
Issue 3: Twilio A2P throttling. New A2P 10DLC campaigns are throttled to ~10 msg/sec. Rule: rate-limit outbound SMS at 8 msg/sec with retry backoff.
Issue 4: Spruce message in wrong inbox. Templated messages route by NPI; missing orderingProviderNPI sends to shared lab inbox. Rule: validate NPI before send.
Issue 5: Reconciliation failure. athenahealth APIs throttle write traffic. Rule: buffer reconciliation writes and batch at 1-min intervals.
Are these workflows ever fully self-service? Honestly, no. The build engagement runs 2-4 weeks, with ongoing support and quarterly classification library updates from the orchestration team. A practice can run it day-to-day without engineering staff — but the build itself is not a self-serve no-code exercise. Anyone telling you otherwise hasn't shipped one.
Performance and Rate Limits
Practical ceilings on each leg of the workflow.
| Component | Throughput Ceiling | Typical Practice Use |
|---|---|---|
| athenahealth document poll | 5-min interval, 100 docs/poll | 200-500 results/day |
| Twilio A2P 10DLC (registered) | ~10 msg/sec | 50-200 SMS/day |
| Spruce messaging | No documented practice-scale limit | 20-80 messages/day |
| athenahealth document write | ~30 writes/min sustained | Matches result reads |
These ceilings sit well above what a 5-provider practice generates. Multi-location systems with 25+ providers need queue management and tenant-aware throttling.
Operational Gotchas (Things Vendor Docs Don't Tell You)
Three things only show up after you've shipped this for a few practices.
First, provider sign-off latency is the biggest workflow delay. The technical pipeline runs in seconds; the medical bottleneck is a provider signing off on the abnormal results inbox. A US Tech Automations sign-off SLA alert that pages a covering colleague after >18 hours is the smallest workflow change with the biggest patient-experience payoff.
Second, patient phone numbers go stale at 8-12% per year. Without a contact-refresh workflow in parallel, SMS deliverability quietly decays. A quarterly Spruce-driven refresh keeps the SMS path viable.
Third, Twilio carrier filtering rises when SMS volume spikes. A practice that sends 50 SMS/day for six months then suddenly 400 in one day after a marketing push triggers carrier review. US Tech Automations routes the lab-results stream through a dedicated Twilio messaging service distinct from the marketing stream — otherwise both get suppressed.
When to Use US Tech Automations vs Native Integration
athenahealth, Twilio, and Spruce all have native integration stories. Knowing where each falls short is the honest case for US Tech Automations.
| Capability | athenahealth Native | Twilio Standalone | Spruce Standalone | US Tech Automations Orchestration |
|---|---|---|---|---|
| EHR result detection | Yes | No | No | Yes (via athenahealth API) |
| SMS to patient | Limited (portal-link only) | Yes (any message) | No | Yes (Twilio under the hood) |
| HIPAA-secure 2-way messaging | Limited | No (no BAA in standard) | Yes | Yes (Spruce under the hood) |
| Clinical classification rules | No (manual provider workflow) | No | No | Yes (rule library) |
| Reconciliation back to chart | No | No | No | Yes (closes the loop) |
| Multi-system orchestration | No | No | No | Yes (the whole point) |
Where each competitor honestly wins: Zapier wins on raw catalog size — 6,000+ apps means if you want to wire lab results to a Slack channel, Zapier covers the long tail US Tech Automations doesn't. Make wins on visual scenario building for technical operators who want to inspect every step in a UI. The reason most healthcare practices end up with US Tech Automations is that neither of those advantages helps when the clinical classification rule library, HIPAA-aware routing logic, and reconciliation back to athenahealth are the actual work — a category neither Zapier nor Make targets.
Why not just do this in athenahealth? athenahealth's results inbox is excellent at storing and displaying results. It is not designed to be the message-routing layer for a multi-channel notification workflow — the moment you need conditional routing across SMS and secure messaging based on clinical severity, you have left athenahealth's product surface and entered workflow-orchestration territory.
If you want to evaluate how this works in your specific athenahealth tenant, see the healthcare automation guide for the broader context or jump straight to the patient-intake companion workflow. Practices on Epic instead of athenahealth should reference the eClinicalWorks wellness-visit workflow for the analogous pattern.
Related guides
Tracking workers' comp cases at your clinic — Stop letting fragmented workers' comp cases slip through the cracks across staff and spreadsheets.
Proposal software built for medical practices — Compare tools that replace slow, manual proposals and service agreements at medical practices.
Six steps to automate patient quotes and estimates — Turn manual healthcare quoting into a repeatable automated flow that cuts turnaround time.
Why insurance verification delays keep recurring — Understand the root causes behind manual insurance verification delays before they stall care.
FAQ
How long does the full integration take to ship?
Two to four weeks for a five-provider practice with API credentials in hand. Week one is classification rule definition with the medical director; weeks two-three are build and shadow-test; week four is supervised go-live. Practices without athenahealth API credentials add 5-7 business days at the front.
Does this replace athenahealth?
No. athenahealth remains the clinical system of record. The orchestration layer reads from athenahealth, sequences the notification, and writes a chart note back to athenahealth. The provider's daily workflow inside athenahealth is unchanged. According to clinical operations leaders running this workflow, the test of a good integration is that providers cannot tell whether US Tech Automations is in the loop or not.
What if a patient replies to the SMS or Spruce message?
Twilio SMS replies route to the practice's Spruce inbox via the BAA-covered messaging path; Spruce replies stay in Spruce. Either way, the reply lands in the lab follow-up inbox during business hours. After hours, critical-only escalation pages the on-call provider.
Can we run this without Spruce, using only Twilio?
Technically yes, but it is a worse workflow. Twilio SMS is one-way patient-friendly but cannot carry clinical detail without HIPAA risk. Removing Spruce means abnormal results either go to portal-only notification (low engagement) or get phone-callback-only (slow). Twilio-only deployments are supported for practices not ready for Spruce, but the full three-system build is the recommended target for any practice handling >100 abnormal results per month.
How is this priced compared to Zapier or Make?
Zapier and Make price per task. US Tech Automations prices per workflow — a practice processing 500 results a day pays the same as one processing 50. Break-even is usually 200-300 events/month, above which per-workflow pricing is cheaper at every step and avoids the perverse incentive to under-design workflows that per-task pricing creates.
What does the practice still have to do manually?
Provider sign-off on abnormal-and-above results remains a human task. The workflow stages the result, routes the notification draft to the provider's queue, and only fires the patient-facing message after sign-off. Sign-off SLA tracking ensures results don't sit in the queue indefinitely.
Is athenahealth's marketplace integration enough on its own?
The marketplace has good point integrations — Spruce has a marketplace listing, Twilio has indirect connectors. None of them solve the classification-plus-routing-plus-reconciliation problem in one motion. Marketplace listings are individual connectors; orchestration sits above the connectors.
Glossary
A2P 10DLC: Application-to-Person messaging on 10-digit long codes. The registered, carrier-approved path for high-volume SMS in the US.
BAA (Business Associate Agreement): A HIPAA-required contract between a healthcare provider and any vendor that handles protected health information. Required for Twilio production use with PHI.
Document subclass: athenahealth's internal classifier for inbound documents.
LABRESULTis the relevant subclass for this workflow.NPI (National Provider Identifier): 10-digit ID for every US healthcare provider. Used to route messages to the ordering provider.
Provider sign-off: Clinical action by a credentialed provider confirming review of a result and approving downstream patient communication.
Reconciliation: The workflow step that writes back to athenahealth confirming the notification was sent, received, and (if applicable) acted on.
Result interpretation flag: athenahealth's coded field on each lab indicating normal (N), abnormal (A), or other states. The first level of classification before clinical rules apply.
Try the Integration
The honest case for US Tech Automations on this workflow: athenahealth handles clinical truth, Twilio handles SMS reach, and Spruce handles HIPAA-compliant patient messaging. The work is the orchestration above — classification rules, routing logic, chart reconciliation, and operational tuning that takes 2-4 weeks the first time. That orchestration layer ships as productized work, not a one-off custom build.
If your practice processes more than 200 lab results per week and the abnormal-result callback queue is one person on a Monday morning, this workflow pays back within 90 days. Start the scoping conversation at US Tech Automations — the trial includes a workflow scoping session with the team that has built this for primary care, urgent care, and specialty practices on athenahealth.
About the Author

Builds patient intake, claims, and HIPAA-aware workflow automation for outpatient and specialty practices.
Related Articles
See how AI agents fit your team
US Tech Automations builds and runs the AI agents that handle this work end to end, so your team doesn't have to.
View pricing & plans