Workflows

Building Your Own Lab Results Delivery App: The HIPAA Guide

Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.

Short answer: Yes, a physician can build a lab results delivery app, but two rules shape it. Every service that stores, summarizes or sends results needs a BAA, and ONC says a practice policy that holds results until a clinician reviews them would likely count as information blocking (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, When would a delay in fulfilling a request for access, exchange, or use of EHI be considered an interference under the information blocking regulation?, verified November 15, 2026). Release results promptly, and move storage, texting, email and AI onto BAA-covered services first.

A results app is a natural thing to build. Patients call asking whether their labs are back, staff read values over the phone, and not every patient finds the EHR portal easy to use. So a physician asks an AI app builder for something simple: results arrive, the patient gets a text, signs in, sees the report and a plain-language summary, and can message a question back.

Every step of that handles protected health information (PHI): names, dates of birth, test names, values, reference ranges and the physician's comment. Lab results also fall under a second federal rule, on information blocking, which shapes when patients can see their own results. That rule is easy to miss, because the most natural feature to ask for, a review queue, is the design ONC warns about. ONC is the HHS office for health information technology.

What the rules and vendors say, in their own words (checked November 15, 2026)

Holding results for review is the information blocking problem

Information blocking rules are separate from HIPAA. They deal with practices that interfere with access to electronic health information. ONC answers questions on them, and says this about lab results:

“It would likely be considered an interference for purposes of information blocking if a health care provider established an organizational policy that, for example, imposed delays on the release of lab results for any period of time in order to allow an ordering clinician to review the results or in order to personally inform the patient of the results before a patient can electronically access such results”

ONC adds that once a patient asks for results, this could mean the patient sees them at the same time as the ordering clinician: “In practice, this could mean a patient would be able to access EHI such as test results in parallel to the availability of the test results to the ordering clinician.” (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Are actors (for example, health care providers) expected to release test results to patients through a patient portal or application programming interface (API) as soon as the results are available to the ordering clinician?, verified November 15, 2026) A practice-wide waiting period does not fit the Preventing Harm Exception either. ONC's answer is short: “No. Blanket delays that affect a broad array of routine results do not qualify for the Preventing Harm Exception.” (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Would the Preventing Harm Exception cover a 'blanket' several day delay on the release of laboratory or other test results to patients so an ordering clinician can evaluate each result for potential risk of harm associated with the release?, verified November 15, 2026) Only individualized, good-faith clinician determinations can qualify (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Would the Preventing Harm Exception cover a 'blanket' several day delay on the release of laboratory or other test results to patients so an ordering clinician can evaluate each result for potential risk of harm associated with the release?, verified November 15, 2026).

Two delays are different. ONC says following a patient's own request to wait is likely fine: “It would likely not be an interference when an actor follows an individual patient’s, or patient’s representative’s, request to delay release of the patient’s electronic health information (EHI) to the patient or to the patient’s representative.” (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Can an actor grant a patient's request to delay the release of a patient's test result(s) (e.g., laboratory or image result(s)) to the patient without implicating the information blocking regulations?, verified November 15, 2026) The delay should last no longer than needed to honor that request (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Can an actor grant a patient's request to delay the release of a patient's test result(s) (e.g., laboratory or image result(s)) to the patient without implicating the information blocking regulations?, verified November 15, 2026).

The lab may give patients the report directly

Under CLIA, the federal lab-quality rules, a laboratory may, on the patient's request, give the patient completed test reports that its own sign-in or identity check ties to that patient (Centers for Medicare & Medicaid Services (CMS) / HHS, eCFR :: 42 CFR 493.1291 -- Standard: Test report, verified November 15, 2026). In practice, your app is often not the only place a patient can see a result, and a gap between the lab's portal and yours can be noticed.

HIPAA rules that touch every result

One result, end to end: where the data goes and which pieces need a BAA

Here is the path a single result takes through a typical physician-built results app. Your EHR and lab interfaces may differ; check your own flow against this.

StepWho enters whatWhere it goesBAA needed?
1. Result arrivesThe lab interface files it in the EHR; staff download a PDF from the lab portal, or the app reads it from the EHRThe EHR, then the app's databaseUsually not with the lab for sending it (HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations., verified November 15, 2026). Yes with whoever hosts the app's database
2. StoredValues, reference ranges, flags and the PDF reportDatabase and file storageYes. Supabase, for example, needs a signed BAA plus its HIPAA add-on (HIPAA Projects | Supabase Docs, verified November 15, 2026) and says not to keep PHI in public storage buckets (Shared Responsibility Model | Supabase Docs, verified November 15, 2026)
3. Physician commentPhysician adds a note: normal, repeat in three months, call the officeThe app's database, linked to the resultSame as step 2. The comment must not gate release (see above)
4. Plain-language summaryAn AI model reads the values and drafts an explanationAI model APIYes. OpenAI's API needs a BAA plus Modified Retention (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026). Anthropic's API needs a signed BAA and a HIPAA-enabled organization (Anthropic, API and data retention - Claude Docs, verified November 15, 2026), and HIPAA eligibility for PDFs applies only to PDFs sent inline, not uploaded through its Files API (Anthropic, API and data retention - Claude Docs, verified November 15, 2026)
5. Patient notifiedThe app sends a text or email that a result is readySMS or email providerYes. Twilio requires Security or Enterprise Edition for a BAA (Twilio and HIPAA, verified November 15, 2026); Twilio says SendGrid should not be used for anything involving PHI (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026)
6. Patient signs inName, email, phone, date of birth; a sign-in code or magic linkSign-in (auth) service and its email senderYes. Clerk's terms bar PHI unless the customer agrees to its Subcontractor BAA (Clerk Standard Terms and Conditions, verified November 15, 2026). Google's table shows no BAA coverage for Firebase Authentication (Google / Firebase, Differences between Identity Platform and Firebase Authentication | Google Cloud Documentation, verified November 15, 2026)
7. Patient views or downloadsPatient opens the report or saves the PDFHosting, file links, the browserYes for hosting. Vercel signs BAAs with eligible Pro and Enterprise customers (Vercel, Security & Compliance Measures, verified November 15, 2026)
8. Patient replies or requests a copyA question about a value, or a request to send results elsewhereApp messaging, staff inbox, exportYes for any inbox or messaging service that stores it. Access-request deadlines apply (HHS (eCFR), 45 CFR 164.524 -- Access of individuals to protected health information., verified November 15, 2026)

To check which of your current services have a BAA path, run your stack through the Stack Checker or look each vendor up in BAA Matrix.

What this means for your app

The lab and the EHR are rarely where a results app leaks. The leaks come from the pieces the AI builder added to make the app feel finished. In a vibe-coded results app, PHI tends to hide here:

If you are building around an EHR that already has a portal, read build around the EHR, not instead of it. Your app may be better as a friendlier layer on the EHR than as a second copy of every result.

Safeguards specific to a results app

These are the results-specific controls to have in place before real patients sign in. The general list is in the HIPAA checklist for vibe-coded apps.

  1. Release on arrival by default. No global review queue. If a physician holds a specific result, the app should require a reason tied to that patient and that result, since only individualized, good-faith determinations can qualify for the Preventing Harm Exception (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Would the Preventing Harm Exception cover a 'blanket' several day delay on the release of laboratory or other test results to patients so an ordering clinician can evaluate each result for potential risk of harm associated with the release?, verified November 15, 2026). Have counsel review the hold feature before launch.
  2. A patient-chosen delay. Let patients choose to wait until their visit or a call, and release when the window they picked ends (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Can an actor grant a patient's request to delay the release of a patient's test result(s) (e.g., laboratory or image result(s)) to the patient without implicating the information blocking regulations?, verified November 15, 2026).
  3. Content-free notifications. The text or email says a new result is ready and links to sign-in. No test name, value or flag. Minimum necessary applies (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026).
  4. Private file storage with expiring links. Reports live in private storage and open only for the signed-in patient, through short-lived links.
  5. A stored channel preference. Each patient's choice of text, email or call and any alternate address, read by every notification job (HHS (eCFR), 45 CFR 164.522 -- Rights to request privacy protection for protected health information., verified November 15, 2026).
  6. Proxy access by rule, not by family. Parent, caregiver and adult-child access set per patient, with a way to exclude results the patient may control alone.
  7. Role-based access and an access log. Staff see only what their role needs (HHS (eCFR), 45 CFR 164.312 -- Technical safeguards., verified November 15, 2026), and the app records who opened each result (HHS (eCFR), 45 CFR 164.312 -- Technical safeguards., verified November 15, 2026).
  8. A copy and export path. A way to give a patient an electronic copy in a usable format, tracked against the 30-day clock. See patient access export workflows.
  9. A safety review of the AI summary. A model explaining an abnormal value to a patient is a clinical tool. Read clinical safety review for AI-built tools before turning it on.

Twilio, SendGrid and Resend each have their own guide: Twilio, SendGrid, Resend. For the AI step, see the OpenAI API and the Anthropic API.

How this goes wrong: the review queue that became a policy

Imagine a three-physician internal medicine practice. One physician builds a results app and asks the AI builder for a simple rule: show results to patients only after the ordering doctor signs off. The builder adds a review queue with one switch, on for everyone.

The ordering physician goes on vacation for nine days. Forty results sit in the queue. One patient sees her potassium result in the reference lab's own portal, which a lab may offer on request (Centers for Medicare & Medicaid Services (CMS) / HHS, eCFR :: 42 CFR 493.1291 -- Standard: Test report, verified November 15, 2026), but nothing in the practice app. She calls twice, then files a complaint saying the practice is withholding her results. The design she is describing, a hold on every result so a clinician can review first, is the example ONC gives of likely interference (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, When would a delay in fulfilling a request for access, exchange, or use of EHI be considered an interference under the information blocking regulation?, verified November 15, 2026).

To clear the backlog, the front desk bulk-releases everything. The app's release email, wired to a SendGrid account during the prototype, attaches each report as a PDF. Twilio says SendGrid should not be used for anything involving PHI (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026), and adds that sending secure download links instead of attachments would not make it eligible either (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026). One of the forty goes to an old address that a patient had asked the practice to stop using, the kind of reasonable request a practice must accommodate (HHS (eCFR), 45 CFR 164.522 -- Rights to request privacy protection for protected health information., verified November 15, 2026).

Now there are two separate questions. Whether the queue was information blocking is a question for counsel. The emails raise a HIPAA question. If they were an impermissible disclosure, HIPAA presumes a breach unless a risk assessment shows a low probability the PHI was compromised (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026), and the practice carries the burden of showing that (HHS (eCFR), 45 CFR 164.414 -- Administrative requirements and burden of proof., verified November 15, 2026). Whether to notify is the practice's decision with its counsel.

No one meant harm. The physician asked for a feature that sounds like good medicine, and the builder implemented it as a practice-wide policy with an uncovered email sender attached.

Lab results in your specialty

The flow above applies everywhere. Some specialties add their own results problems: tests that reveal a condition, results that arrive from outside labs, or results that sit in a different kind of system. Read the version for your practice:

If your results app is turning into a place where patients also message you and book visits, read building your own patient portal next.

Keep, refactor, or rebuild?

Verdict: Refactor

Keep the patient-facing screens and the results layout. Refactor the parts that touch PHI: storage and file links, the notification sender, the sign-in service and the AI summary call. Rewrite the release rule itself, because a single hold-for-review switch is the design ONC flags, and no change of vendor fixes that.

The screens patients like, the list of results, the trend charts and the plain-language layout, can usually stay. What changes is underneath: the database and file storage move under BAAs, the sender for texts and email is replaced, sign-in moves to a service with a BAA, and the release logic is rewritten so results go out on arrival unless a patient asks to wait or a physician makes an individual, patient-specific call.

A rebuild makes sense when the results app lives on a platform that will not accept PHI and cannot hand you its code and data in a form you can move; then the current app becomes the specification. Keep, refactor or rebuild walks through that decision.

Frequently asked questions

Can I hold lab results until I have reviewed them?

Not as a blanket rule. ONC says a practice policy that delays lab results for any period so the ordering clinician can review them first would likely be interference under the information blocking rules (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, When would a delay in fulfilling a request for access, exchange, or use of EHI be considered an interference under the information blocking regulation?, verified November 15, 2026). Individual, good-faith holds for a specific patient are treated differently (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Would the Preventing Harm Exception cover a 'blanket' several day delay on the release of laboratory or other test results to patients so an ordering clinician can evaluate each result for potential risk of harm associated with the release?, verified November 15, 2026). Have counsel review how your app handles holds.

What if the patient wants to hear results from me first?

ONC says following an individual patient's own request to delay release would likely not be interference, as long as the delay lasts no longer than needed to honor the request (ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Can an actor grant a patient's request to delay the release of a patient's test result(s) (e.g., laboratory or image result(s)) to the patient without implicating the information blocking regulations?, verified November 15, 2026). Build that as a per-patient choice the patient makes, not a default.

Can the text message say which test came back?

Keep it out. Practices must make reasonable efforts to limit PHI to the minimum necessary (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). A message that a new result is ready, with a link to sign in, does the job. The texting service still needs a BAA; Twilio requires Security or Enterprise Edition for one (Twilio and HIPAA, verified November 15, 2026).

Can I email the PDF report to patients who ask for it?

HHS has said a practice may send unencrypted email if it warned the patient of the risk and the patient still prefers it (U.S. Department of Health and Human Services (HHS), Modifications to the HIPAA Privacy, Security, Enforcement, and Breach Notification Rules (Omnibus Final Rule), Federal Register Vol. 78, No. 17, verified November 15, 2026). The email service is a separate question: Twilio says not to use SendGrid for anything involving PHI (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026), and we could not confirm from Resend's own public pages, as of November 15, 2026, any plan that includes a BAA (Resend: public pages we checked (7 pages), verified November 15, 2026). Gmail is among the services in Google's BAA (HIPAA compliance on Google Cloud and Google Workspace, verified November 26, 2026), once an administrator accepts it (HIPAA Compliance with Google Workspace and Cloud Identity, verified November 26, 2026) and the service is configured as Google requires (Google Workspace and Cloud Identity HIPAA Implementation Guide, verified November 26, 2026).

Do I need a BAA with the lab that sends me results?

Usually not for the results themselves: a covered entity may disclose PHI for a provider's treatment activities (HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations., verified November 15, 2026). You do need BAAs with the services your app uses to store, summarize and send those results (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026). Confirm any lab-supplied software or portal arrangement with your privacy officer.

Can I use AI to explain results to patients in plain language?

Only through an AI service under a BAA, configured as the vendor requires. OpenAI's API needs a BAA plus Modified Retention (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026); Anthropic's API needs a signed BAA and a HIPAA-enabled organization (Anthropic, API and data retention - Claude Docs, verified November 15, 2026). A patient-facing explanation of abnormal values should also get a clinical safety review before launch.

Palo Alto Health Labs Fabrica

Keep building. We make it safe.

Already sending results through an app you built? A short call can map where each result goes today and what has to change before the next one goes out.

Fabrica moves the patient data in your vibe-coded app into an environment your practice owns, built for HIPAA compliance, with a BAA. You keep building in the tool you already use. Start with a 30-minute call about what you have built and where patient data goes today.

See how Fabrica works and book a 30-minute call

Please do not send patient information when you get in touch. The call is a conversation, not an audit or legal advice.

Sources

Every vendor statement on this page comes from the vendor's own terms, documentation or trust pages, or from the regulator, opened and read on the date shown. Vendor terms change; confirm the current version and your own signed agreement before relying on it. This page is general information, not legal advice.

  1. ONC / Assistant Secretary for Technology Policy (ASTP), HHS, When would a delay in fulfilling a request for access, exchange, or use of EHI be considered an interference under the information blocking regulation?. Checked November 15, 2026. Page dated Last Updated: September 12, 2025.
  2. ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Are actors (for example, health care providers) expected to release test results to patients through a patient portal or application programming interface (API) as soon as the results are available to the ordering clinician?. Checked November 15, 2026. Page dated Last Updated: September 12, 2025.
  3. ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Would the Preventing Harm Exception cover a 'blanket' several day delay on the release of laboratory or other test results to patients so an ordering clinician can evaluate each result for potential risk of harm associated with the release?. Checked November 15, 2026. Page dated Last Updated: September 14, 2025.
  4. ONC / Assistant Secretary for Technology Policy (ASTP), HHS, Can an actor grant a patient's request to delay the release of a patient's test result(s) (e.g., laboratory or image result(s)) to the patient without implicating the information blocking regulations?. Checked November 15, 2026. Page dated Last Updated: September 12, 2025.
  5. Centers for Medicare & Medicaid Services (CMS) / HHS, eCFR :: 42 CFR 493.1291 -- Standard: Test report. Checked November 15, 2026. Page dated Amended at 79 FR 7316, Feb. 6, 2014.
  6. HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  7. HHS (eCFR), 45 CFR 160.103 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  8. HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  9. HHS (Federal Register via govinfo.gov), Modifications to the HIPAA Privacy, Security, Enforcement, and Breach Notification Rules Under the HITECH Act and GINA; Other Modifications to the HIPAA Rules (Final Rule), 78 FR 5566. Checked November 15, 2026. Page dated 2013-01-25.
  10. HHS (eCFR), 45 CFR 164.524 -- Access of individuals to protected health information.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  11. HHS (eCFR), 45 CFR 164.522 -- Rights to request privacy protection for protected health information.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  12. HIPAA Projects | Supabase Docs. Checked November 15, 2026. Page dated Updated Oct 30, 2026.
  13. Shared Responsibility Model | Supabase Docs. Checked November 15, 2026. Page dated Updated Oct 6, 2026.
  14. HIPAA eligible products and functionality | OpenAI Help Center. Checked November 27, 2026. Page dated Updated: 5 days ago (relative date as displayed on 2026-11-15, i.e. ~2026-11-10).
  15. Anthropic, API and data retention - Claude Docs. Checked November 15, 2026.
  16. Twilio and HIPAA. Checked November 15, 2026.
  17. Twilio SendGrid, Is SendGrid HIPAA Compliant?. Checked November 15, 2026. Page dated dateModified 2026-07-23 (page metadata).
  18. Clerk Standard Terms and Conditions. Checked November 15, 2026. Page dated October 1, 2026.
  19. Google / Firebase, Differences between Identity Platform and Firebase Authentication | Google Cloud Documentation. Checked November 15, 2026. Page dated Last updated 2026-11-12 UTC.
  20. Vercel, Security & Compliance Measures. Checked November 15, 2026. Page dated Last updated September 8, 2026.
  21. Uploading and managing media - Base44 Support Documentation. Checked November 15, 2026.
  22. Files | Bubble Docs. Checked November 15, 2026. Page dated Last updated 1 month ago (as displayed 2026-11-15).
  23. Architecting for HIPAA on Twilio. Checked November 15, 2026. Page dated Last Updated: June 30, 2026.
  24. Email and SMS templates | Clerk Docs. Checked November 15, 2026.
  25. Auth0 by Okta, Passwordless Authentication with Magic Links - Auth0 Docs. Checked November 15, 2026.
  26. Lovable for Enterprise - Lovable Documentation. Checked November 15, 2026.
  27. HHS (eCFR), 45 CFR 164.312 -- Technical safeguards.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  28. HHS (eCFR), 45 CFR 164.402 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
  29. HHS (eCFR), 45 CFR 164.414 -- Administrative requirements and burden of proof.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11 (versioner API).
  30. Resend: public pages we checked (7 pages). Checked November 15, 2026.
  31. HIPAA compliance on Google Cloud and Google Workspace. Checked November 26, 2026. Page dated Google Workspace supported services last updated 2026-10-28; page last updated 2026-11-11 UTC.
  32. HIPAA Compliance with Google Workspace and Cloud Identity. Checked November 26, 2026. Page dated Last updated 2026-11-10 UTC.
  33. Google Workspace and Cloud Identity HIPAA Implementation Guide. Checked November 26, 2026. Page dated November 2026.