Workflows

Building Your Own Insurance Verification Tool: The HIPAA Guide

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

Short answer: You can build your own insurance verification tool, but an eligibility check is a HIPAA transaction, and sending one electronically can make a practice a covered entity. (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026) Before checking a real patient's coverage, put the clearinghouse, database, card-photo storage, AI and texting services under BAAs.

An insurance verification tool is one of the most useful things a practice can vibe code. The front desk stops retyping member IDs into payer portals. Patients upload a photo of their card before the visit. The app checks coverage the night before and flags anyone whose plan has lapsed, so nobody finds out at checkout.

It also pulls a practice straight into HIPAA's rules for electronic transactions. The tool does not just hold patient data. It sends that data to a health plan through a chain of vendors and brings back benefit details. Every link in that chain needs to be checked before a real patient's card goes through it.

What the rules say about eligibility checks, in their own words (checked November 15, 2026)

An eligibility check is a defined HIPAA transaction

“An inquiry from a health care provider to a health plan, or from one health plan to another health plan, to obtain any of the following information about a benefit plan for an enrollee: (1) Eligibility to receive health care under the health plan. (2) Coverage of health care under the health plan. (3) Benefits associated with the benefit plan.”

The response from the health plan is part of the same transaction. Eligibility for a health plan is on HIPAA's list of transaction types, next to coordination of benefits, claim status and plan enrollment (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026).

Running one can make your practice a covered entity

A health care provider is a covered entity (the people and organizations HIPAA directly regulates) if it transmits health information electronically in connection with a covered transaction (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026). Using a vendor does not change that. CMS's covered entity decision tool says “If a healthcare provider uses another entity (such as a clearinghouse) to conduct covered transactions in electronic form on its behalf, the health care provider is considered to be conducting the transaction in electronic form.” (Covered Entity Decision Tool (CMS PDF), verified November 15, 2026)

The format is set by regulation

When a covered entity runs an eligibility check electronically with a health plan, “the covered entity must conduct the transaction as a standard transaction” (HHS (eCFR), 45 CFR 162.923 -- Requirements for covered entities., verified November 15, 2026) For eligibility, the operating rules HHS adopted refer to the 270 inquiry and 271 response, the electronic messages for the question and the answer (HHS (eCFR), 45 CFR 162.1203 -- Operating rules for eligibility for a health plan transaction., verified November 15, 2026). Typing into a plan's own web portal is treated differently: the provider must follow the standard's data content but not its format (HHS (eCFR), 45 CFR 162.923 -- Requirements for covered entities., verified November 15, 2026).

A clearinghouse can do it for you, as your business associate

“A covered entity may use a business associate, including a health care clearinghouse, to conduct a transaction covered by this part.” (HHS (eCFR), 45 CFR 162.923 -- Requirements for covered entities., verified November 15, 2026) A business associate is a company that creates, receives, maintains or transmits PHI on your behalf (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026), and that relationship must be put in writing in a business associate agreement (BAA) (HHS, 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). Read the fine print on which account the BAA covers. One example, from the BAA of Stedi, a vendor that offers an eligibility-check API:

“This BAA is applicable only to the HIPAA Account. You acknowledge that this BAA does not apply to any other accounts you may have now or in the future.”

Stedi's Trust Center says to request a BAA through its contact form (Trust Center - Stedi, verified November 15, 2026). Its eligibility-check docs also advise against Postman, a tool developers use to test APIs, for requests containing PHI, because Postman stores request history on its cloud servers by default (Submit eligibility checks - API - Stedi Docs, verified November 15, 2026).

No patient authorization is needed, but limits still apply

A practice may use or disclose PHI for its own payment activities (HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations., verified November 15, 2026), and payment includes determinations of eligibility or coverage, including cost-sharing amounts (HHS (eCFR), 45 CFR 164.501 -- Definitions., verified November 15, 2026). The minimum necessary standard still applies: reasonable efforts to limit PHI to what the purpose needs (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). One patient request can also limit what goes to a plan. “A covered entity must agree to the request of an individual to restrict disclosure of protected health information about the individual to a health plan if” (HHS (eCFR), 45 CFR 164.522 -- Rights to request privacy protection for protected health information., verified November 15, 2026) the PHI pertains solely to an item or service paid in full by the patient or someone other than the plan (HHS (eCFR), 45 CFR 164.522 -- Rights to request privacy protection for protected health information., verified November 15, 2026).

The data flow, end to end

Here is what a typical vibe-coded verification tool does, and where patient data goes at each step.

  1. The patient or the front desk enters insurance details. Name, date of birth, payer, member ID, group number, and the subscriber's name and date of birth if the patient is a dependent. Often a photo of the front and back of the card, sometimes a driver's license. This lands in your app's database and file storage.
  2. Something reads the card. Either a staff member types it in, or the app sends the photo to an AI model to pull out the member ID. That AI call carries a card image with a name and member ID on it.
  3. The app sends the eligibility inquiry. Typically to a clearinghouse API, which converts it and routes it to the right payer. Some tools instead log in to payer portals. Either way, patient identifiers leave your app.
  4. The answer comes back. Active or inactive coverage, plan type, copay, deductible remaining, coinsurance, sometimes other coverage. The app stores some or all of it, and often the full raw response.
  5. Staff see the result, and some tools write it back into the EHR. What your tool can write there is the EHR vendor's decision (see build around the EHR).
  6. The patient is told. A text or email saying coverage is confirmed or that the card needs updating, sometimes with a payment link for the copay.
  7. Copies pile up quietly. Server logs, error trackers, backups, nightly batch job output, and the builder chat where you pasted a real 271 response to ask why a field was empty.

Which pieces need a BAA

PiecePatient data it touchesBAA?
Database and hostingEvery insurance record and stored responseYes. Supabase, for example, requires a signed BAA and its HIPAA add-on for PHI (HIPAA Projects | Supabase Docs, verified November 15, 2026). A storage vendor is a business associate even if it never looks at the data (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, verified November 15, 2026).
Card photo storageCard and ID imagesYes, and the files must be private. In Supabase, a public bucket means “When a bucket is designated as 'Public,' it effectively bypasses access controls for both retrieving and serving files within the bucket. This means that anyone who possesses the asset URL can readily access the file.” (Storage Buckets | Supabase Docs, verified November 15, 2026)
AI that reads the cardCard image, name, member IDYes, and only on eligible features. OpenAI says API HIPAA eligibility needs a signed BAA plus Modified Retention, unless OpenAI specifies otherwise (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026). Anthropic lists its standard Messages API as HIPAA eligible (Anthropic, API and data retention - Claude Docs, verified November 15, 2026), but not its Files API (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026).
Clearinghouse or eligibility APIIdentifiers out, benefit details backYes. It conducts the transaction for you as a business associate (HHS (eCFR), 45 CFR 162.923 -- Requirements for covered entities., verified November 15, 2026). Confirm the BAA covers the exact account your app uses.
The health planThe inquiry itselfThe plan is a covered entity in its own right (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026). It answers your inquiry about its own member; it is not doing work on your behalf, which is what makes a vendor a business associate (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026).
SMS and email to patientsName, phone, coverage statusYes. Twilio says not to use even its eligible services with PHI until a Twilio BAA is in place (Twilio, HIPAA Eligible Services, verified November 15, 2026) and requires designated HIPAA Projects (Architecting for HIPAA on Twilio, verified November 15, 2026); Twilio says SendGrid must not be used to transmit PHI (Twilio SendGrid, Is SendGrid HIPAA Compliant?, verified November 15, 2026).
Card processor for the copayPayment detailsHHS said a financial institution processing card payments for health care is not acting on your behalf, so no business associate contract is required (HHS, Federal Register, Volume 65 Issue 250 (Thursday, December 28, 2000) - Standards for Privacy of Individually Identifiable Health Information, verified November 15, 2026). Keep visit details out of payment descriptions: Stripe's own healthcare guide says a payment with a patient name plus diagnosis is PHI (Healthcare Embedded Payments: A Guide for Businesses | Stripe, verified November 15, 2026).

For your builder, host and database, the BAA Matrix shows each vendor's dated BAA position, and the Stack Checker lists the gaps in your specific stack.

What this means for your app

  • Insurance numbers are identifiers, so treat logs as PHI. AWS's own log-masking feature names health insurance numbers as PHI (Amazon Web Services (AWS), Help protect sensitive log data with masking - Amazon CloudWatch Logs, verified November 15, 2026). On Vercel, runtime logs capture console.log output from both preview and production deployments (Vercel, Runtime Logs, verified November 15, 2026). A single line that prints the eligibility response puts member IDs and benefits in your host's logs. Log a request ID and a status, not the payload.
  • Keep member IDs out of URLs. A page like /verify?member=ABC123 writes the ID into browser history, analytics and access logs. Look records up by an internal ID after sign-in.
  • Store the answer, not the whole response. At check-in, the front desk needs active or inactive, plan name, copay and deductible remaining. A raw 271 can carry much more. The minimum necessary standard is a good design rule here (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026).
  • Make card photos private and short-lived. Once the details are confirmed, decide with your privacy officer whether the image needs to be kept. On Base44, “Files in your file library are public by default, so anyone with a file’s link can open it.” (Uploading and managing media - Base44 Support Documentation, verified November 15, 2026)
  • Add a self-pay restriction flag. If a patient pays in full and asks you not to tell their plan about that care, an automatic check tied to that visit can cut against the request. Give staff a flag that pauses automatic checks, claims and plan-facing exports for that visit, and let your privacy officer decide how flagged visits are handled.
  • One account, one BAA. Prototypes often start on a clearinghouse test account. Make sure production runs on the account the BAA covers, and that the key lives on the server, not in browser code.
  • Test with synthetic patients. Not Postman with a real member ID, and not a real 271 pasted into the builder chat to debug a parsing error.
  • Role-based access and a record of who looked. Benefit details reveal plan type and sometimes other coverage. Give each staff member their own login, limit who sees what, and keep an audit log you actually review.

If the tool grows into submitting authorizations, read the prior authorization tool guide; if it collects signatures on financial policies, see the consent form app guide.

How this goes wrong: the nightly batch on the wrong account

This is a hypothetical scenario. Imagine a four-physician practice whose office manager vibe codes a verification tool over a weekend. She signs up for a developer account with an eligibility API vendor to get an API key, pastes in tomorrow's schedule as a test, and it works. She adds a nightly job that checks every patient on the next day's schedule and a line of code that prints each response so she can see why some plans come back blank.

Two months later the practice signs the vendor's BAA. It covers only a separate HIPAA account, which is how Stedi's BAA, for one, is written (BAA (Stedi Business Associate Addendum, Version 1.3), verified November 15, 2026). Nobody moves the app's key. So every night, before and after the signing, real patients' names, dates of birth and member IDs run through an account no BAA covers. Every full response is printed into the host's logs, preview and production alike (Vercel, Runtime Logs, verified November 15, 2026).

The problem surfaces when a patient who paid cash for a sensitive visit, and asked in writing that her plan not be told about it, shows up in the batch output. Her request lived in a scanned form the tool never read, so the nightly job checked her coverage like everyone else's. None of this was malicious. Each step was a reasonable prototype choice that never got revisited. Whether it is a reportable breach is for counsel to decide, using the risk assessment HIPAA's breach rule requires (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026).

Before the first real eligibility check

  1. Get a written answer on covered-entity status from counsel, especially if the practice is cash-based and this tool would be its first electronic transaction.
  2. List every vendor in the data flow above and attach a signed BAA, or remove the vendor from the path.
  3. Confirm the production API key belongs to the BAA-covered account.
  4. Search your code for anything that logs request or response bodies, and clean up logs that already hold them.
  5. Lock down card photo storage and set a retention rule.
  6. Build the self-pay restriction flag before turning on automatic checks.
  7. Add the tool to your Security Risk Analysis.

Insurance verification by specialty

The same tool looks different depending on who pays. Read the version for your practice: concierge and direct primary care, med spa and aesthetics, GLP-1 and weight-loss clinics, urgent care, sleep medicine and pain medicine.

Keep, refactor, or rebuild?

Verdict: Refactor

Keep the intake screens and the front desk workflow you designed; they are what make the tool useful. Replace the data layer, card-photo storage, clearinghouse account, AI call and logging so every piece that touches a member ID is covered by a BAA and limited to what the front desk needs. Add the self-pay restriction flag before automatic checks run.

The screens are usually the easy part to keep: the upload form, the front desk queue, the coverage badge next to each appointment. What changes is everything behind them. The database and file storage move to BAA-covered services, the clearinghouse connection moves to the covered account, the card-reading AI call moves to an eligible endpoint, and logging is rewritten so it never prints a response. If your builder cannot export your code and data in a usable form, use today's app as the specification and rebuild production. See keep, refactor or rebuild for the full decision.

Frequently asked questions

Do I need a patient's authorization to check their insurance eligibility?

No authorization is needed for the check itself. A practice may use or disclose PHI for its own payment activities (HHS (eCFR), 45 CFR 164.506 -- Uses and disclosures to carry out treatment, payment, or health care operations., verified November 15, 2026), and payment includes determinations of eligibility or coverage (HHS (eCFR), 45 CFR 164.501 -- Definitions., verified November 15, 2026). The case to plan for: a patient who pays in full for an item or service and asks you not to disclose it to their plan, a request you generally must agree to (HHS (eCFR), 45 CFR 164.522 -- Rights to request privacy protection for protected health information., verified November 15, 2026).

Do I need a BAA with the insurance company?

Usually the BAAs that matter are not with the plan. The health plan is a covered entity in its own right (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026), answering an inquiry about its own member rather than working on your behalf. The BAAs you need are with the vendors in between and around it: the clearinghouse or eligibility API (HHS (eCFR), 45 CFR 162.923 -- Requirements for covered entities., verified November 15, 2026), your database and host, file storage, any AI model, and your texting service. Confirm the list with counsel.

My practice is cash-only. If I build an eligibility checker, does HIPAA start to apply?

It may. A provider becomes a covered entity by transmitting health information electronically in connection with a covered transaction (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026), and eligibility is one of them (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026). Using a clearinghouse still counts (Covered Entity Decision Tool (CMS PDF), verified November 15, 2026). Ask counsel before the first check. See insurance verification for concierge and direct primary care.

Can I use AI to read the insurance card photo?

Only through a model service covered by a BAA, and only on its eligible features. OpenAI says API HIPAA eligibility needs a signed BAA plus Modified Retention, unless OpenAI specifies otherwise (HIPAA eligible products and functionality | OpenAI Help Center, verified November 27, 2026). Anthropic lets eligible API organizations sign its BAA in the Claude Console (Anthropic, API and data retention - Claude Platform Docs, verified November 27, 2026) and lists the standard Messages API as HIPAA eligible (Anthropic, API and data retention - Claude Docs, verified November 15, 2026), but its Files API is not covered (Anthropic, Business Associate Agreements (BAA) for Commercial Customers, verified November 27, 2026). Check the exact feature your app calls.

Can the tool text patients that their coverage is confirmed?

Yes, through a texting service under a BAA. Twilio requires a BAA before PHI touches its eligible services (Twilio, HIPAA Eligible Services, verified November 15, 2026) and PHI must stay in designated HIPAA Projects (Architecting for HIPAA on Twilio, verified November 15, 2026). Keep the message short, with no plan or benefit details, and send the patient to a signed-in page for the rest.

Can my tool log in to payer portals instead of using a clearinghouse?

HIPAA treats a provider using a plan's own direct data entry differently: the standard's data content applies, but not its format (HHS (eCFR), 45 CFR 162.923 -- Requirements for covered entities., verified November 15, 2026). Automating a portal with staff credentials is a separate question for each payer. Ask the payer before building it.

Palo Alto Health Labs Fabrica

Keep building. We make it safe.

Built an eligibility checker that already touches real member IDs? This is the conversation to have before the next nightly run.

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. HHS (eCFR), 45 CFR 160.103 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  2. HHS (eCFR), 45 CFR 162.1201 -- Eligibility for a health plan transaction.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  3. Covered Entity Decision Tool (CMS PDF). Checked November 15, 2026. Page dated 2016-06-17 (file name); linked from CMS page modified 03/16/2026.
  4. HHS (eCFR), 45 CFR 162.923 -- Requirements for covered entities.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  5. HHS (eCFR), 45 CFR 162.1203 -- Operating rules for eligibility for a health plan transaction.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  6. HHS, 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules.. Checked November 15, 2026.
  7. BAA (Stedi Business Associate Addendum, Version 1.3). Checked November 15, 2026. Page dated Effective April 14, 2025.
  8. Trust Center - Stedi. Checked November 15, 2026.
  9. Submit eligibility checks - API - Stedi Docs. Checked November 15, 2026.
  10. 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.
  11. HHS (eCFR), 45 CFR 164.501 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-01.
  12. 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.
  13. HIPAA Projects | Supabase Docs. Checked November 15, 2026. Page dated Updated Oct 30, 2026.
  14. 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.
  15. Storage Buckets | Supabase Docs. Checked November 15, 2026.
  16. 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).
  17. Anthropic, API and data retention - Claude Docs. Checked November 15, 2026.
  18. Anthropic, Business Associate Agreements (BAA) for Commercial Customers. Checked November 27, 2026.
  19. Twilio, HIPAA Eligible Services. Checked November 15, 2026. Page dated Last Updated: June 30, 2026.
  20. Architecting for HIPAA on Twilio. Checked November 15, 2026. Page dated Last Updated: June 30, 2026.
  21. Twilio SendGrid, Is SendGrid HIPAA Compliant?. Checked November 15, 2026. Page dated dateModified 2026-07-23 (page metadata).
  22. HHS, Federal Register, Volume 65 Issue 250 (Thursday, December 28, 2000) - Standards for Privacy of Individually Identifiable Health Information. Checked November 15, 2026. Page dated December 28, 2000.
  23. Healthcare Embedded Payments: A Guide for Businesses | Stripe. Checked November 15, 2026. Page dated Last updated May 13, 2026.
  24. Amazon Web Services (AWS), Help protect sensitive log data with masking - Amazon CloudWatch Logs. Checked November 15, 2026.
  25. Vercel, Runtime Logs. Checked November 15, 2026. Page dated dateModified 2026-08-28 (per page metadata).
  26. Uploading and managing media - Base44 Support Documentation. Checked November 15, 2026.
  27. 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).