A healthcare platform that needs per-customer database isolation, multi-region data residency, a documented public API and a second product sharing one identity layer sits in the top band of our published ranges: multi-product or regulated SaaS starts at ₹60L, against ₹28L – ₹45L for an enterprise-ready platform that only has to pass a security questionnaire. HIPAA software architecture requirements are what move a build across that line, and almost none of the money buys anything a user can see. It buys an access model, an audit trail, a written path for every field of patient data, and the ability to answer a regulator’s question without opening a project to find out. Skip that work at the start and you pay for it later anyway, with a data migration attached and a deadline set by someone else.
In 2024 the Office for Civil Rights issued 22 financial penalties totaling $9,944,612. Read what they were for and you have a build spec.
What HIPAA software architecture requirements actually cover
The Security Rule reads like policy, so buyers file it under policy: something a consultant writes up once the product works. Then you read the settlements. Excessive account privileges. Scant internal controls limiting lateral movement. Default passwords still in place. Single-factor remote access to systems holding electronic protected health information.
Turn those findings into engineering questions and you have an architecture brief:
- Which role can reach which record, enforced in the query layer where the data lives
- What gets written when someone opens a chart, and where that write lands
- How one service proves its identity to another, and whether that credential can be rotated without taking the product down
- Which fields count as PHI, and which of your integrations receive a copy of them
Each is cheap in a first migration and expensive in a third year. Access control most of all, because a permission model added later means revisiting every query that has ever read a patient row.
One phrase turns up in nearly every row of the 2024 penalty list: risk analysis. Entities were cited for failing to conduct one, and for letting one go stale as the systems underneath it changed. The risk analysis is the only document obliged to name every system holding patient data, and naming all of them is the part that gets quietly skipped. Take a fifty-person specialty practice with an EHR, a billing portal and a patient messaging tool. Three vendors, three separate paths a user can take to authenticate. Plenty of practices document the EHR, file the report, and consider the obligation met. The regulator is citing a missing inventory, and an inventory is something the schema can produce.
So make the inventory a byproduct of the build. Tag PHI columns in the schema itself. Keep the list of services allowed to touch those columns in configuration that CI reads. The annual review then starts from a generated list, and a new integration cannot reach production without appearing in it.
Where healthcare data breaches actually happen
In 2024 there were 663 large breaches reported, down from 732 the year before. Those 663 incidents exposed the protected health information of 242,908,056 people. One of them, the Change Healthcare breach, accounts for an estimated 192 million of that figure. Hacking and IT incidents drove 81% of breaches and 99.45% of affected individuals.
Breach volume and blast radius have come apart. The damage concentrates wherever the data concentrates, which means a clearinghouse, or any shared layer several products sit on top of.
If you are a regional payer connected to a national clearinghouse, your exposure through that single pipe is larger than your exposure through your own login screen. Your own controls stay your job. The largest number in your exposure now belongs to somebody else’s infrastructure.
So the data-flow diagram comes before the schema. Every arrow crossing your boundary is a business associate agreement and a blast radius. The integration work on a healthcare product starts with deciding what to stop sending. Narrow the widest arrow first, and write down what each one is allowed to carry.
Audit logging you can hand to an investigator
Audit controls and information system activity review are two more Security Rule standards that surface again and again in enforcement findings. Both reduce to one product question: can you say who looked at this patient’s record, and when.
Application logs will not answer it. They exist for engineers, they are shaped for debugging, and they rotate on whatever schedule the hosting default sets. An audit trail is a feature of the product. It has its own table, and a read path a compliance officer can use. Its retention is set by policy, not by log rotation. It records the actor, the subject, the action and the reason. Nothing deletes from it.
Where the write happens decides coverage. If the audit entry is written by application code at each call site, the endpoint somebody added on a Friday will not have one. Put the write in the data-access layer that every read of a patient row passes through and coverage becomes structural. What counts as an event is the second decision, and reads weigh more than writes here: a regulator asking who viewed a chart is asking about a read, and read paths are the ones teams instrument last.
Then the arithmetic. If the trail starts the week an investigator asks, the honest answer about who opened that chart in March is that nobody knows. No budget applied afterwards recovers the record. You cannot backfill history.
How to build the patient record access workflow HIPAA expects
Nine of the 22 financial penalties issued in 2024 came from Right of Access complaints. No ransomware, no attacker. A patient asked for their own records and did not get them in time. Of the 30,256 new complaints OCR received that year, 541 cited Right of Access specifically.
That makes record delivery a regulated business process with a clock on it. In software, a clock means a state machine: request received, identity verified, scope determined, record assembled, delivered, with every transition timestamped. Escalation fires before the deadline. A shared inbox has neither a clock nor evidence, which is why the shared inbox produces the complaints.
Build the request as a row in a table with a due date and an owner. The overdue item then shows up on somebody’s screen. Scope and identity verification decide whether the workflow holds up in practice: a request for “my records” has to resolve to a defined set of systems, and handing the wrong person a chart is itself a disclosure. Model both in the workflow, with the verification method recorded on the row.
Can you send patient data to an AI model under HIPAA
The moment a feature sends a chart note to a model, patient data leaves your boundary, and the compliance questions that mattered most about your own database now apply to that one call. Four things need answers before it ships. Whether the provider has signed a business associate agreement. Whether it retains the prompt. Whether the output becomes part of the medical record. Whether a clinician can see what the answer was based on.
Architecturally, that argues for keeping the model out of application code. Put an internal service in front of it that strips or tokenizes identifiers, records the exact payload that went out, applies a confidence threshold, and holds the response as a draft until a human commits it. A review queue exists for the audit trail first and the clinician second. The model never sees an identifier; the service that calls it does, and that service is what you audit.
That is the practical gap between a vendor’s feature and AI built into the product you own. In a regulated setting the gap decides who holds the data and who answers for it, which is much of the substance of the custom versus off-the-shelf AI question. The proxy is what an auditor reads. Build it before the feature.
The healthcare builds we decline
We will not route patient data through a third-party model with no agreement covering it, however good the demo looks. We will not ship multi-factor authentication as a setting a hospital administrator can switch off, because an optional control is a control the vendor decided the customer was allowed to lose. We will not write the audit trail into the same stream as debug output. We will not accept a records-request workflow that lives in a mailbox. And we will not put the words HIPAA compliant near a system whose access rules are enforced in the frontend, because the first penetration test retracts that claim for you.
The commercial refusal matters more than all of those. We will not quote a healthcare build before a paid discovery has produced the data-flow diagram and the list of systems that touch patient data, because that list is the price. Two products with identical screens can land in different bands on the cost of a SaaS platform, because every boundary the data crosses adds isolation, residency and audit work the screens never show. Quoting before that list exists is how a fixed price becomes a change-order fight, and we would rather lose the work before it starts than run one of those with a hospital.








