Every week a healthcare startup asks us to add HIPAA compliance late in development. It usually ends the same way: expensive rework, a delayed launch and a nervous legal team. HIPAA is not a feature you bolt on. It is an architecture you build in from the start.
This guide covers what HIPAA means for AI systems in practice, what a Business Associate Agreement does and does not do, and how to design for compliance on Azure. It is engineering guidance, not legal advice, so involve your compliance counsel.
What HIPAA requires of AI systems
The Security Rule requires technical safeguards: access controls, audit controls, integrity controls and transmission security. For AI systems this translates into a few concrete rules:
- No PHI in model prompts unless the provider and your controls allow it
- Encrypted storage and encrypted transport everywhere
- Granular role-based access to data and to AI features
- Complete audit trails of who did what, and what the AI did
The BAA: necessary but not sufficient
A Business Associate Agreement with your cloud provider is necessary. It covers the vendor's obligations, but it does not make your application compliant. Your code, your access rules, your logging and your staff processes are still your responsibility. Teams that treat the signed BAA as the finish line are the ones that fail audits.
Azure's HIPAA-eligible services
Azure offers a broad set of HIPAA-eligible services. For AI workloads the common building blocks are Azure OpenAI, Azure AI Speech, Azure Blob Storage, Azure SQL Database and Azure Key Vault. Eligibility depends on how a service is used and under which agreement, so confirm the current list and your configuration against Microsoft's documentation before you rely on it.
De-identification as a strategy
Where you can, de-identify data before it reaches an AI model. Azure's Text Analytics for Health includes PHI detection and de-identification. Processing de-identified data removes or substantially reduces HIPAA obligations for that step, and it limits the damage if something goes wrong. Many workloads, such as summarising trends or classifying document types, do not need names or identifiers at all.
Audit logging for AI
Traditional audit logging records who accessed a record. AI audit logging needs more. Capture which model and version was called, what input was sent, what output came back and what downstream action followed. Without this you cannot answer a regulator, or your own clinician, when asked why the system did something.
A practical logging checklist
- User and role for every request
- Model name, version and prompt template version
- Input and output references, stored securely
- Downstream action taken and who approved it
- Retention periods that match your policy
Design decisions to make in week one
- Which data is PHI, and where does it flow?
- Can any AI step run on de-identified data?
- Which regions and tenants will hold the data?
- Who has access to production data, and how is it logged?
- What is the incident and breach response process?
Building healthcare AI? We have worked through HIPAA requirements on several products and can review your design.
Discuss your initiative




