A technical guide to building compliant, reliable healthcare software — covering HIPAA requirements, HL7/FHIR integrations, PHI handling, audit logging, and the specific decisions that make or break healthtech products.
Healthcare software is not just another vertical. The compliance requirements are real, the consequences of failure are serious, and the integration landscape is among the most complex in any industry. This guide is for engineering teams building healthtech products — what you must get right from day one, and what can be deferred.
Healthcare software breaks in ways other software doesn't. A billing bug is expensive. A healthcare billing bug violates federal law. A data breach exposes your users' most sensitive information. An integration failure with an EHR system can affect patient care decisions.
This isn't meant to scare you — it's meant to make sure you're building with the right understanding of the stakes.
HIPAA is a US federal regulation. It governs how Protected Health Information (PHI) is handled. If your software touches PHI, you need to understand:
PHI is any information that can identify a patient connected to their health data. This includes:
Practical rule: If you can answer "whose health information is this?" — it's PHI.
HIPAA's Technical Safeguards rule requires:
| Requirement | What it means in practice |
|---|---|
| Access controls | Role-based access to PHI — minimum necessary access |
| Audit controls | Log who accessed, created, modified, or deleted PHI and when |
| Integrity controls | Protect PHI from improper alteration or destruction |
| Transmission security | Encrypt PHI in transit (TLS 1.2+) |
| Authentication | Unique user identification, automatic logoff |
None of these are optional. None can be "we'll add this later."
Every vendor that touches your PHI must sign a BAA. This includes:
Do not use the free tier of any cloud service for PHI. Free tiers typically don't offer BAAs.
HIPAA requires audit trails. But the requirement is broader than most teams implement.
What must be logged:
What the logs must contain:
What logs must NOT be:
Implement audit logging from day one. Retrofitting it into an existing system is expensive and error-prone.
Electronic Health Record integrations are the core of most clinical healthtech products. The two standards you'll encounter:
HL7 v2 is a 1980s-era messaging standard still used by most hospitals. It looks like this:
MSH|^~\&|SENDING_APP|SENDING_FAC|RECEIVING_APP|RECEIVING_FAC|20260312||ADT^A01|MSG00001|P|2.3
EVN|A01|20260312
PID|1||12345^^^Hospital^MR||Smith^John^A||19800101|M
Reality of HL7 v2 integrations:
FHIR (Fast Healthcare Interoperability Resources) is REST-based, JSON/XML, and the direction the industry is moving. US federal regulations now require most EHRs to offer FHIR R4 APIs.
FHIR key resources to know:
Patient — demographic informationObservation — clinical data (vitals, lab results)Condition — diagnosesMedicationRequest — prescriptionsAppointment — schedulingDiagnosticReport — lab and imaging resultsWhat FHIR doesn't solve:
Budget realistically: A first FHIR integration with a specific EHR typically takes 2–6 weeks, including testing in a sandbox environment.
Healthcare organizations are sensitive about data co-mingling. Many enterprise health systems will require or strongly prefer single-tenant deployments (their own database, their own infrastructure). Plan your architecture to support both:
If you want to use patient data for analytics, ML training, or population health insights, you need to de-identify it properly. HIPAA's Safe Harbor method requires removing 18 specific identifiers. The Expert Determination method uses statistical analysis to verify re-identification risk is sufficiently low.
Do not use raw PHI for analytics. De-identify first, then analyze.
If your product includes video or messaging between clinicians and patients:
Zoom for Healthcare and similar HIPAA-compliant video platforms have BAAs available. Consumer-grade WebRTC implementations used without a BAA are not acceptable.
Healthcare software requires more rigorous testing than typical web applications because errors can have clinical consequences.
Non-negotiable from day one:
Can be iterative:
Building a healthcare software product and want to get the compliance and architecture right from the start? Contact us — we've built HIPAA-compliant systems across telehealth, clinical operations, and patient engagement. We can help you architect it correctly the first time.
If this guide resonated with your situation, let's talk. We offer a free 30-minute discovery call — no pitch, just honest advice on your specific project.
A technical guide for building financial software — PCI-DSS, RBI regulations, UPI and account aggregator integrations, KYC/AML requirements, fraud systems, and the architecture decisions that separate functional fintech from production-ready fintech.
13 min readguideA practical technical guide to GDPR compliance for SaaS products — what the regulation actually requires engineers to build, lawful basis for processing, data subject rights implementation, consent management, and the architecture decisions that make compliance sustainable.
13 min read