Book a free call

What Is HIPAA Compliance, and What Does It Mean for Software?

HIPAA compliance means meeting the HIPAA rules for protecting protected health information. For software teams it shapes architecture, access control, logging and vendor contracts.

Hertiv engineering teamReviewed by a senior engineer
7 min read
What Is HIPAA Compliance, and What Does It Mean for Software?
On this page

Short answer

HIPAA compliance is the state of meeting the HIPAA Privacy, Security and Breach Notification Rules when handling protected health information (PHI). It applies to covered entities such as providers and insurers, and to business associates such as software vendors that process PHI on their behalf.

What is HIPAA compliance?

HIPAA compliance is the practice of meeting the requirements of the Health Insurance Portability and Accountability Act (HIPAA) when creating, receiving, maintaining or transmitting protected health information. In software terms, it is a set of administrative, technical and physical controls plus contracts, not a product feature you switch on.

HIPAA has three main rules that matter to engineers:

  • Privacy Rule: limits how PHI is used and disclosed, and defines patient rights.
  • Security Rule: defines safeguards for electronic PHI (ePHI), grouped into administrative, physical and technical safeguards.
  • Breach Notification Rule: sets out how breaches are detected and reported.

There is also the Transactions and Code Sets Rule for electronic claims, which mostly affects healthcare integrations rather than general software. For most product teams, the Security Rule is where the real engineering work sits. Because HIPAA compliance touches infrastructure, logging and vendor contracts together, many teams bring in outside help for data security and compliance alongside their own engineers.

Who has to comply with HIPAA?

HIPAA applies to covered entities and to business associates. A covered entity is a healthcare provider, health plan or clearinghouse that transmits health information electronically in covered transactions. A business associate is a person or company that performs a function involving PHI for a covered entity, which commonly includes software vendors, cloud hosts, analytics tools and AI providers.

If you build software for a hospital, clinic, insurer or health app, you are probably a business associate. That status brings direct obligations under the Security Rule: you must implement safeguards, sign Business Associate Agreements, and report breaches to the covered entity.

Two practical consequences follow:

  • Your own subcontractors, such as a cloud provider or a translation API, may also be business associates and need their own BAAs.
  • Processing de-identified data is usually outside HIPAA, but de-identification has strict standards and is easy to get wrong.

A common misconception is that a vendor is compliant because it hosts data in a certain region. Hosting location is not the test; the question is whether the vendor handles PHI and has the right contract and controls in place.

What is PHI, and where does it show up in a software system?

PHI is health information combined with identifiers that can link it to a person. That combination is what makes it sensitive, and it appears in more places than most teams expect.

Typical identifiers include names, dates of birth, addresses, phone numbers, email addresses, account numbers, IP addresses and full-face photos. When any of these sit next to a diagnosis, medication, appointment or treatment note, the record is PHI.

In a real system, PHI tends to appear in:

  • Primary databases and backups.
  • Application and access logs, including request bodies and error traces.
  • Support tickets and chat transcripts.
  • Analytics and product telemetry.
  • Email and notification services.
  • Staging and test environments populated from production data.

A useful exercise is to trace one patient record through your whole stack, from the intake form to the last analytics event, and note every system it touches. Each stop needs an owner and either a control or a BAA.

What are the Security Rule safeguards in practice?

The Security Rule asks for administrative, physical and technical safeguards, plus documented policies and periodic risk analysis. It does not prescribe specific products, so you choose controls that fit your risk profile.

Administrative safeguards cover risk analysis, workforce training, access management policy and contingency planning. A written risk analysis is the foundation auditors and customers ask for first.

Technical safeguards are the engineering core:

  • Unique user IDs and role-based access control, with least privilege.
  • Audit controls that record who accessed what and when, with logs protected from tampering.
  • Encryption in transit and at rest, treated as addressable but expected in practice.
  • Automatic logoff and session controls.
  • Integrity controls so ePHI is not altered improperly.

Physical safeguards cover facilities and devices, which for cloud-hosted systems mostly means relying on a hosting provider's controls and documenting that reliance.

The work is not one project but an ongoing program. Teams usually pair their first implementation with a cybersecurity services review to catch gaps in logging, identity and network boundaries.

How do BAAs and vendor management work?

A Business Associate Agreement is a contract that requires a vendor handling PHI to protect it and to meet specific HIPAA obligations. You need one in place before PHI flows to the vendor, and it should cover permitted uses, safeguards, breach reporting and return or destruction of data at the end of the relationship.

Vendor management is where many compliance programs quietly fail. Each vendor in the data path needs review:

  • Confirm whether the vendor will actually receive PHI, including in logs and support sessions.
  • Check that the vendor offers a BAA and that its terms match your obligations to your own customers.
  • Record the vendor, the data involved, the BAA status and a review date.

This becomes more complex with AI features. Sending patient notes to a model provider means that provider is likely a business associate, and many consumer AI APIs do not offer BAAs or training-data exclusions suitable for PHI. Teams building clinical assistants often need an enterprise agreement, data-retention controls and a clear rule about what may never leave the boundary.

Our guide to agentic AI development covers how to design those controls around tool calls and data access.

Worked example: a patient intake form

Example (hypothetical): a clinic builds a web intake form that saves answers to a database and sends a confirmation email.

Walking through the data path:

  1. The browser sends the form over TLS to the API. Encryption in transit covers this step.
  2. The API writes the record to an encrypted database. The service account has write access but not read access to other patients' rows.
  3. A confirmation email goes through an email vendor containing the appointment date but not the reason for the visit. The team checks that no diagnosis fields are included.
  4. Application logs redact request bodies so field values never land in the log store. Logs are retained for a defined period and access is restricted.
  5. Nightly backups are encrypted, and restore is tested quarterly.
  6. The email vendor and the cloud host each sign a BAA before go-live.

Nothing here is exotic, but each step required a decision and a written record. The team also added the intake service to its risk analysis and trained the two engineers who maintain it. This is what a compliance program looks like at small scale: controls that are documented, tested and owned.

Common mistakes in HIPAA software projects

Most compliance failures are operational, not technical. These are the patterns that recur:

  • Treating compliance as a certificate. There is no official HIPAA certification. Claims of being "HIPAA certified" are a warning sign in a vendor.
  • Forgetting logs and telemetry. PHI in logs, error trackers or session replay tools is a leak even if the database is encrypted.
  • No risk analysis. Without a documented, current risk analysis, the rest of the program is hard to defend.
  • Missing BAAs. A vendor handling PHI without a BAA is a gap, even if the vendor is otherwise secure.
  • Over-broad access. Shared admin accounts and standing production access make audit trails meaningless.
  • Ignoring the AI layer. Sending PHI to a model API without a BAA and retention terms breaks the chain.

A practical remedy is to schedule a short quarterly review of the data map, access lists and vendor BAAs. Compliance teams often ask engineering for evidence, so keeping the documentation current saves time during customer security reviews. Teams that need extra engineering capacity for this work sometimes use staff augmentation rather than delaying a release.

How to start a HIPAA compliance program

Start with the data, not the tooling. The order below keeps effort focused where risk is highest.

  1. Map PHI flows. List every system, vendor and log store that touches PHI, and name an owner for each.
  2. Run a risk analysis. Document threats, likelihood and current controls. This becomes the spine of the program.
  3. Close contract gaps. Sign BAAs with every business associate, including cloud, email, analytics and AI providers.
  4. Implement technical safeguards. Role-based access, audit logging, encryption, session controls and redaction in logs.
  5. Write policies and train staff. Access management, incident response, contingency planning and breach notification.
  6. Test and review. Restore backups, review access lists, and update the risk analysis on a schedule.

Teams building new products often start with a narrower security baseline and extend it as the product grows. Our custom software development practice builds these controls into the first release rather than bolting them on later.

Key takeaways

  • HIPAA applies to covered entities and to business associates that touch PHI, including SaaS and AI vendors.
  • The Security Rule is the part most software teams implement: access control, audit logs, encryption, risk analysis.
  • A signed Business Associate Agreement (BAA) is required before a vendor handles PHI.
  • HIPAA compliance is an ongoing program, not a certificate; there is no official HIPAA certification.
  • PHI includes identifiers combined with health data, so logs, backups and support tickets are in scope too.
  • Storage location matters: HIPAA has no data residency rule, but contracts and state or EU law may add one.

Frequently asked questions

Is there an official HIPAA certification?

No. The US Department of Health and Human Services does not certify organizations as HIPAA compliant. Vendors may be independently audited against frameworks such as HITRUST, but that is separate from HIPAA itself. Treat claims of official certification with caution.

Does HIPAA apply to software companies outside the US?

Yes, if the software handles PHI for a US covered entity, the business associate obligations apply regardless of where the company is based. Local laws such as GDPR may add further requirements, so teams often need to satisfy both.

Does HIPAA require data to stay in the United States?

No. HIPAA does not set a data residency rule. However, customer contracts, state laws and sector rules may require specific locations, and cross-border transfers need their own legal review. Check contract terms before assuming a region is acceptable.

Can we use AI tools on PHI?

Only with the right controls: a BAA with the model provider, retention and training settings that exclude your data, and limits on what gets sent. Many consumer AI APIs are not suitable for PHI. Keep a clear rule about which fields may leave your boundary.

What happens if a business associate has a breach?

The business associate must notify the covered entity without unreasonable delay and generally within a set period agreed in the BAA. The covered entity then handles notification to individuals and regulators as required. Incident response procedures should be written and tested before an event.

How long does HIPAA compliance take?

It depends on the size of the system and existing controls. A focused product with good cloud hygiene can reach a defensible baseline in a few months, while larger organisations take longer. Treat it as an ongoing program rather than a one-time project.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Building a health product that handles PHI? Talk to Hertiv about compliance-aware engineering.

A senior engineer replies within one business day. Or see our Data Security & Compliance service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call