HIPAA gets treated as a compliance layer that you add at the end of a project, usually right before launch when someone asks whether the product is "HIPAA-compliant." That framing is wrong and expensive. At the engineering level, HIPAA compliance is a set of architecture decisions that need to be in the system from the start because they affect your data model, your access control design, your logging infrastructure, your vendor choices, and your contract structure. Retrofitting them into a system that was not designed with them is significantly harder than building them in correctly from day one.
This post is not legal advice and it is not a comprehensive HIPAA framework guide. It is a description of what HIPAA requires at the engineering level, written for engineers and founders who want to understand what they are actually building and why.
What does HIPAA actually require from a software engineering perspective?
HIPAA's Security Rule is the part that applies most directly to software engineering. It requires three categories of safeguards for systems that handle Protected Health Information: administrative, physical, and technical. The technical safeguards are the engineering team's responsibility.
The technical safeguards require: access control (only authorized users and systems can access PHI, with access limited to what is necessary for the specific task), audit controls (logging of system activity that accesses or transmits PHI, so you have a record of who accessed what and when), integrity controls (mechanisms to ensure PHI has not been improperly altered or destroyed), and transmission security (encryption of PHI in transit).
Translated into engineering decisions: your authentication and authorization system needs to implement role-based access with minimum-necessary access constraints, not just authentication. Your logging system needs to capture PHI access events at the record level, not just HTTP requests. Your database encryption needs to cover PHI at rest and in transit. Your deployment infrastructure needs to protect against unauthorized access to PHI storage. None of these are exotic requirements. All of them require deliberate design, and all of them are harder to retrofit than to build correctly from the start.
What is a BAA and why does it affect your vendor and engineer choices?
A Business Associate Agreement is a contract required by HIPAA when a vendor, service provider, or contractor will have access to PHI as part of their work. If you use AWS to host your healthcare app, you need a BAA with AWS. If you use a third-party email service to send appointment reminders that include patient information, you need a BAA with that email provider. If you bring in an external engineer who will have access to your production database, that engineer or their employer needs to sign a BAA.
The BAA requirement affects your vendor choices because not every vendor offers BAAs, and those that do may have restrictions on which services or configurations are covered. AWS has a BAA, but it does not cover every AWS service. OpenAI offers a BAA for certain enterprise plans, but their standard API does not come with one, which means you cannot send PHI to the standard OpenAI API without violating HIPAA. This is a constraint that affects AI features specifically, and it comes up constantly in healthcare software development.
The practical implication for engineering is that before you integrate any third-party service into a system that handles PHI, you need to verify whether that service has a BAA, what the BAA covers, and whether your use case falls within the covered scope. Building a vendor evaluation checklist that includes BAA availability as a required field is not overhead, it is basic due diligence for a healthcare product.
How do you handle PHI in AI pipelines without violating HIPAA?
This is the question that comes up most in 2026 healthcare software development, because almost every new healthcare product has some AI component, and the dominant AI APIs are third-party services that do not automatically come with HIPAA coverage.
The first decision is whether the AI feature needs to process PHI at all. Many AI features can be designed to work on de-identified or aggregated data, which removes them from PHI handling requirements. If the feature genuinely needs PHI, the options are: use a third-party AI provider that offers a BAA and whose data processing terms are compatible with PHI handling; use an open-source model deployed in your own infrastructure where PHI does not leave your environment; or implement a data masking or pseudonymization layer that substitutes identifiers before sending data to the model, then maps them back after.
Each option has trade-offs. Providers with BAAs typically include enterprise versions of commercial models. Self-hosted models give you maximum control but require infrastructure management and may have different capability trade-offs than the frontier models. Data masking adds complexity but may be the only practical option for certain use cases. The key is that the choice needs to be made explicitly and documented, not discovered during a compliance review after launch. For more on regulated environment engineering decisions in healthcare, the healthcare engineering page covers the specific safeguards we build in by default.
What does access control look like in a HIPAA-compliant app?
Minimum-necessary access is the HIPAA principle that covers access control. It means users and systems should only have access to the PHI they need for the specific function they are performing, nothing more. In engineering terms, this means role-based access control is not enough on its own. The roles need to be designed around actual workflow functions, not just user categories, and the system needs to enforce access at the data level, not just the UI level.
A common failure mode is an access control system that restricts UI routes correctly but does not restrict API endpoints consistently. A user who should only see their own patients' records can still query the API with a different patient ID. This is an access control bug at the API layer, and it is a HIPAA issue regardless of whether a user ever exploits it deliberately. The access control needs to be enforced at the data layer, so that the system itself ensures minimum-necessary access, not just that the UI does not show unauthorized data.
Audit logs are the other half of access control in HIPAA terms. The requirement is not just to restrict access, but to have a record of access. Audit logs for PHI access need to capture: who accessed the record (user ID, not just session), what record was accessed (patient ID, record type), when it was accessed (timestamp), and from where (IP or service). Request-level HTTP logs that capture URLs and response codes are not sufficient if they do not capture which specific patient records were accessed. The audit log needs to be at the application level, implemented deliberately, and stored separately from application logs so it cannot be cleared by application bugs or deployment issues.
What are the most common HIPAA engineering mistakes startups make?
Five patterns come up repeatedly when we review healthcare products built without enough regulated-environment experience on the team:
PHI in application logs. Engineers add debug logging to trace issues and inadvertently log PHI: patient names, record IDs, appointment details. Application logs are usually not stored with the same access controls or retention policies as PHI storage, and they are often shipped to third-party log aggregation services that do not have BAAs. The fix is a logging policy that explicitly prohibits PHI in application logs and a code review process that enforces it.
Overly broad access controls. Early-stage products often implement simple admin/user role distinctions rather than workflow-based roles. As the product grows, this means users can see patient data beyond their scope of care. Rebuilding access control in a production system with real patient data is risky and expensive. Building it correctly from the start is not.
Third-party services without BAAs. Email providers, analytics platforms, monitoring tools, and AI APIs that receive PHI without a BAA in place. This is usually not intentional; it is a failure to audit the full data flow through the system and check each integration point against HIPAA requirements.
PHI in URLs or query parameters. Patient IDs or other PHI in URL paths or query strings end up in browser history, server access logs, referrer headers, and analytics tools. PHI should not be in URLs. Use POST bodies or lookup patterns that do not expose PHI in the URL.
Missing breach notification planning. HIPAA requires notification to affected individuals and HHS within specific timeframes following a breach. Products that have not thought through their incident response process for a PHI breach are not prepared to meet this requirement. The notification process needs to be planned, documented, and tested before the product is in production.
For teams building healthcare products and looking for engineers who understand these requirements from experience, the dedicated developer page covers what we look for and how we screen for regulated-environment experience. The post on how to find a healthcare software development company covers how to evaluate whether a vendor's HIPAA experience is real or performative.
