How to Build HIPAA Compliant Software, Step by Step
HIPAA compliant software protects patient health information with access controls, encryption, audit logs and signed agreements. Here is how to build it.
On this page
Short answer
HIPAA compliant software is software that handles protected health information while meeting the safeguards in the HIPAA Security and Privacy Rules. To build it, map every place health data flows, apply access controls and encryption, keep audit logs, sign business associate agreements with vendors, and test the controls before launch. Compliance is an ongoing practice, not a one-time feature.
What does HIPAA compliant software mean?
HIPAA compliant software is software that handles protected health information, known as PHI, in line with the safeguards in the HIPAA Security and Privacy Rules. PHI covers any information that identifies a patient and relates to their health, care or payment, from names and dates of birth to diagnoses, prescriptions and appointment records.
Compliance does not mean the software is certified, because HIPAA has no official certification for software. It means the product and the organisation behind it follow the required safeguards: limiting who can see PHI, protecting it in transit and at rest, keeping records of access, and having written policies and agreements that cover the whole lifecycle of the data.
The rules apply to covered entities such as hospitals, clinics and insurers, and to business associates that handle PHI on their behalf, including software vendors. If your product touches PHI at all, the rules apply to you, even if you only store it and never read it.
What safeguards does HIPAA require?
HIPAA groups its safeguards into three types: administrative, physical and technical. Each type covers a different part of the problem, and a compliant product needs all three, not just encryption.
| Safeguard type | What it covers | Examples |
|---|---|---|
| Administrative | Policies and people | Risk analysis, staff training, access reviews |
| Physical | Facilities and devices | Locked server rooms, device disposal |
| Technical | Systems and data | Encryption, access control, audit logs |
The technical safeguards are where software teams spend most of their effort: unique user accounts, role-based access so each person sees only the records their job needs, automatic logoff, encryption in transit and at rest, and audit logs that record who viewed or changed each record. Administrative safeguards cover the human side: a named privacy officer, staff training, a written incident plan, and regular reviews of who still needs access.
How to build HIPAA compliant software in six steps
You build HIPAA compliant software by mapping the data first, then applying the safeguards, and testing them before launch. Starting with code and adding safeguards later costs more and leaves gaps.
- Map every PHI flow. List where PHI enters, where it is stored, who sees it, which vendors touch it and where it leaves the system. A flow you do not know about cannot be protected.
- Design access around roles. Give each role the smallest set of records it needs. A receptionist books appointments; a clinician reads full records. Never share accounts.
- Encrypt in transit and at rest. Use TLS for every connection and encrypt stored PHI. Manage keys separately from the data, with rotation and limited access.
- Add audit logs. Log who viewed, created, changed or exported each record, with a timestamp. Keep the logs where they cannot be edited by the same people they watch.
- Handle vendors with agreements. Any vendor that touches PHI needs a signed business associate agreement before the first record flows. Check their security posture too.
- Test before launch. Run a security review, test access controls with real roles, check the backup and restore process, and rehearse the incident plan.
For the data protection side, data security and compliance covers the controls in more depth.
For the product build itself, see custom software development.
How do you handle vendors and business associate agreements?
Vendors are where many HIPAA programmes fail, because PHI flows through hosting providers, analytics tools, email services and support desks that the software team did not design for. Every vendor that creates, receives, stores or transmits PHI on your behalf is a business associate and needs a signed business associate agreement, known as a BAA, before the data flows.
A BAA is a contract, not a checkbox. It should state what the vendor may do with the PHI, how it protects it, how it reports incidents, and how it returns or destroys the data when the contract ends. It should also cover subcontractors: if your cloud host uses another company for support, that company needs the same protections.
Before signing, check the vendor's own posture. Ask for their security documentation, their incident history and whether they will sign your BAA rather than offering only their own. Some well-known consumer tools refuse to sign a BAA at all, which means they cannot legally touch PHI. Finding that out after launch is expensive, so check it during vendor selection, not after.
Example (hypothetical): a clinic builds a booking app
Example (hypothetical): a small clinic builds a booking app that handles 400 appointments a week. Each appointment record holds the patient name, phone number, reason for visit and clinician, which is PHI, so the app must meet HIPAA safeguards from the first release.
The team maps the flow: patients book in the app, the data sits in a hosted database, the clinic staff see it in a web dashboard, and reminders go out by text message. They set roles so reception staff see names and times but not clinical notes, encrypt the database and all connections, and log every record view.
For audit review, they compare manual and automated checks. A manual review of 400 weekly records at 2 minutes each is 800 minutes, or about 13 hours and 20 minutes.
Instead, automated alerts flag only the 5% of records with unusual access, which is 20 records, and a reviewer checks those at 5 minutes each, or 100 minutes, about 1 hour and 40 minutes. The team keeps the full logs for the record and reviews the flagged cases each week.
What about testing and audits?
Testing and audits are how a team proves the safeguards work, rather than assuming they do. HIPAA expects a risk analysis, and a risk analysis without testing is a guess. The testing should cover the controls that matter most: access, encryption, logging and backups.
A practical testing routine has four parts. First, test access controls with real roles: log in as a receptionist and try to open a clinical note, and confirm the system refuses. Second, test encryption by checking that stored PHI is unreadable without the keys and that every connection uses TLS.
Third, test the audit logs by making a change and confirming it appears in the log with the right user and time. Fourth, test backup and restore: restore a backup to a test environment and confirm the data is complete and still protected.
Repeat the routine on a schedule, not just before launch. Access needs change as staff join and leave, vendors change, and new features add new data flows. A quarterly review of roles and a yearly risk analysis are a reasonable baseline for a small product, with more frequent checks for larger ones.
What are the common mistakes?
The most common HIPAA software mistakes are shared accounts, unencrypted data, missing vendor agreements and no audit trail. Each one is a finding in an audit and a real risk to patients.
- Shared accounts. A shared login means the audit log cannot say who viewed a record. Give every person their own account.
- PHI in the wrong place. Patient data ends up in support tickets, analytics tools and test databases. Map every flow and keep PHI out of tools without a BAA.
- No business associate agreement. A vendor without a signed BAA cannot legally touch PHI. Sign before the data flows.
- Encryption only in transit. Data at rest needs encryption too, with keys managed separately from the data.
- No audit logs, or logs nobody reads. Logs that are never reviewed catch nothing. Review flagged access weekly.
- Treating compliance as a launch task. New features add new data flows. Review safeguards whenever the product changes.
Key takeaways
- HIPAA has no software certification: compliance means following the safeguards
- Map every PHI flow before writing code, so no data path is unprotected
- Every person gets their own account; shared logins break the audit trail
- Vendors need a signed business associate agreement before they touch PHI
- Test access, encryption, logs and backups on a schedule, not just at launch
Frequently asked questions
What is protected health information?
Protected health information, or PHI, is any information that identifies a patient and relates to their health, care or payment. It includes names, dates of birth, diagnoses, prescriptions, appointment records and payment details. If your software stores or processes any of it, HIPAA safeguards apply.
Does HIPAA certify software?
No. HIPAA has no official certification programme for software products. A vendor that claims to be HIPAA certified is using the term loosely. What matters is whether the product and the organisation behind it follow the required administrative, physical and technical safeguards, and whether those safeguards are tested.
What is a business associate agreement?
A business associate agreement, or BAA, is a contract between a covered entity and a vendor that handles PHI on its behalf. It states what the vendor may do with the data, how it protects it, how it reports incidents, and how it returns or destroys the data when the contract ends. It must be signed before PHI flows to the vendor.
How should patient data be encrypted?
Patient data should be encrypted both in transit, using TLS for every connection, and at rest, using encryption on the database and storage. Keys should be managed separately from the data, with rotation and limited access, so that a stolen database alone does not expose readable records.
What happens if there is a data breach?
The organisation must follow its incident plan: contain the breach, assess what data was exposed, notify affected patients and, for larger breaches, the regulator, within the required timeframes. Having an incident plan and audit logs ready before a breach happens is what makes this possible. The exact notification rules depend on the breach size and type, so the plan should name who decides and who sends the notices.
Can we use our usual cloud and analytics tools with PHI?
Only if the vendor will sign a business associate agreement and the tool is configured to protect the data. Many consumer tools refuse to sign a BAA, which means they cannot legally touch PHI. Check the agreement and the configuration before the first record flows, not after.