Talk to us about your HIPAA compliant development project.
Tell us the application type, the PHI you handle, and your current compliance posture. We'll design the technical safeguards into the architecture from the start.
Building a healthcare app and unsure which HIPAA technical safeguards you need to implement in the software?
Inherited a healthcare platform that wasn't built with HIPAA in mind and now needs a compliance retrofit?
Healthcare software that handles Protected Health Information needs HIPAA technical safeguards built in from the start -- not added after the product is built.
We design encryption, access control, audit logging, and PHI handling into the architecture during discovery. HIPAA compliance is a design constraint, not a post-build audit.
HIPAA technical safeguards by design -- encryption, access control, audit logging, PHI handling
BAA-covered cloud infrastructure with HIPAA Eligible Services on AWS and GCP
Secure data architecture for PHI at rest, in transit, and during processing
Compliance documentation support for your security risk assessment
RaftLabs builds HIPAA compliant software for healthcare providers, digital health startups, and companies handling Protected Health Information. We design HIPAA technical safeguards into the architecture from day one -- AES-256 encryption at rest and in transit, role-based access control, comprehensive audit logging (who accessed PHI, when, from where), secure PHI deletion workflows, BAA-covered cloud infrastructure (AWS HIPAA Eligible Services, Google Cloud Healthcare API), and minimum necessary data handling. HIPAA compliant software development is an architectural requirement in every healthcare project we build, not a checkbox added after development.
The most expensive way to build HIPAA compliant software is to build it first and add compliance later. Retrofitting encryption, audit logging, access control, and PHI data flows onto an existing system is significantly more costly than designing for them from the start.
We treat HIPAA technical safeguards as non-negotiable architectural constraints in every healthcare software project we take on.
The HIPAA Security Rule at 45 CFR 164.312(a)(2)(iv) and 164.312(e)(2)(ii) specifies encryption and decryption as addressable implementation specifications -- in practice, this means encryption is required unless you document a specific alternative control with equivalent protection, which in software development means encryption is always implemented. AES-256 encryption at rest covers all PHI stored in databases (RDS PostgreSQL with storage encryption enabled), object storage (S3 with SSE-KMS), file uploads (S3 presigned URLs with server-side encryption), and automated backups. Encryption keys are managed through AWS KMS with key rotation enabled and key access restricted by IAM policy to only the services that require it.
TLS 1.3 is enforced for all PHI in transit with TLS 1.2 as the minimum acceptable version -- older protocol versions are disabled at the load balancer and API gateway level. No plaintext PHI transmission is permitted over any channel: API responses, webhook payloads, message queue messages, and internal service calls all use TLS. Application-level encryption is applied to particularly sensitive data categories that warrant a second layer of protection beyond database encryption: 42 CFR Part 2 substance use disorder treatment records, psychiatric records, and genetic information each carry elevated legal protection and are encrypted at the field level so a database credential compromise does not expose these categories.
The HIPAA Privacy Rule at 45 CFR Part 164 defines the 18 PHI identifiers (names, geographic subdivisions smaller than state, dates other than year, phone numbers, fax numbers, email addresses, SSNs, MRNs, health plan beneficiary numbers, account numbers, certificate/license numbers, vehicle identifiers, device identifiers, web URLs, IP addresses, biometric identifiers, full-face photos, and any other unique identifying number) -- all 18 are treated as PHI in the data classification model and encrypted accordingly.
The HIPAA Security Rule at 45 CFR 164.312(a)(1) requires access controls with four implementation specifications: unique user identification (required), emergency access procedure (required), automatic logoff (addressable), and encryption/decryption (addressable). In practice, all four are implemented as baseline requirements. Role-based access control (RBAC) applies the minimum necessary standard -- a nurse accessing patient vitals should not see psychiatric notes, a billing user should not see clinical documentation. Access is granted to the minimum PHI categories required to perform the job function.
RBAC roles are defined during the discovery phase based on your actual user types and their PHI access requirements. Amazon Cognito handles user authentication with MFA enforcement for all roles accessing PHI. Cognito User Pools support TOTP (Time-based One-Time Password) authenticator apps and SMS OTP as second factors. Fine-grained IAM policies restrict which AWS resources each application role can access, enforcing least privilege at the infrastructure level, not just the application level.
Automatic session logoff is configured at 15 minutes of inactivity for clinical workstations and 30 minutes for administrative users -- the HIPAA addressable specification requires the timeout to be implemented "when appropriate," and these thresholds are the standard clinical implementation. Session tokens are invalidated server-side on logout; client-side token deletion is not sufficient because tokens can be extracted from browser storage. Emergency access procedures ("break the glass") allow designated users to access PHI outside normal role boundaries in a genuine clinical emergency, with the access event automatically flagged in the audit log for review. Access control lists are reviewed quarterly -- access provisioned at onboarding should not persist indefinitely if the user's role changes or they leave.
The HIPAA Security Rule at 45 CFR 164.312(b) requires audit controls: hardware, software, and procedural mechanisms to record and examine activity in systems that contain PHI. Every PHI access event is captured: user ID, timestamp (UTC), patient record accessed, specific data fields accessed, action taken (view, create, modify, delete, export, print), source IP address, and user agent. The audit log is the evidence that your system satisfies the audit controls requirement -- if you cannot demonstrate what each user accessed and when, you cannot demonstrate HIPAA compliance.
Application-level audit logs are written to an append-only log store. AWS CloudWatch Logs is the primary collection point, with CloudTrail providing the infrastructure-level audit trail for all AWS API calls. Log retention is configured for a minimum of 6 years to satisfy the HIPAA requirement that documentation of HIPAA compliance be retained for 6 years from creation or last effective date. Logs are stored in S3 with Object Lock (WORM) to prevent deletion or modification by application users, including infrastructure administrators.
Automated alerts via CloudWatch Alarms and GuardDuty detect anomalous access patterns: bulk PHI record downloads above a configurable threshold, after-hours access from a role that has never accessed the system outside business hours, access from a geographic location inconsistent with the user's normal access pattern, and failed authentication attempts against PHI-accessible accounts. GuardDuty's machine learning-based anomaly detection identifies threats that rule-based alerting misses. Security incident response documentation is built during the project -- the procedures your team follows when an alert fires, aligned with the HIPAA Breach Notification Rule 60-day notification requirement at 45 CFR 164.400.
The HIPAA Privacy Rule at 45 CFR 164.502(e) and 164.504(e) requires a Business Associate Agreement (BAA) with every vendor that creates, receives, maintains, or transmits PHI on your behalf. Without a BAA, using a vendor that touches PHI is a HIPAA violation regardless of the vendor's security posture. BAA coverage is therefore a prerequisite, not an optional enhancement, for every infrastructure component in a HIPAA-regulated system.
AWS HIPAA Eligible Services covered under the AWS BAA include: EC2, RDS (PostgreSQL, Aurora, MySQL), S3, Lambda, API Gateway, ECS, EKS, Cognito, CloudWatch, CloudTrail, SNS, SQS, Secrets Manager, KMS, and Elastic Load Balancing. These are the services used to build the application compute, data storage, and authentication layers. AWS services not on the HIPAA Eligible list (some analytics and ML services) may not be used with PHI without an alternative control.
Google Cloud Platform provides the Google Cloud Healthcare API (FHIR R4 store) and a range of HIPAA-covered GCP services under the Google Cloud BAA. GCP HIPAA-covered services include Compute Engine, Cloud SQL, Cloud Storage, Cloud Functions, and Cloud Logging. For products targeting Epic or Cerner integrations where the health system uses Google Cloud for FHIR data exchange, GCP Healthcare API is the natural integration substrate.
Third-party integrations are evaluated for BAA availability before they are included in the architecture. EHR API providers, telehealth video platforms (Daily.co, Twilio with BAA), communication providers (Twilio SendGrid with BAA for transactional email, Twilio SMS for appointment reminders), and analytics platforms are each assessed before inclusion. If a provider cannot sign a BAA, PHI does not flow through it -- the architecture routes around it using a PHI-free abstraction layer where needed.
The HIPAA minimum necessary standard at 45 CFR 164.502(b) requires covered entities and business associates to make reasonable efforts to limit PHI use, disclosure, and requests to the minimum necessary to accomplish the intended purpose. In software terms, this means the data model does not collect PHI the application does not need, API responses do not return PHI fields the calling function does not use, and role-based access returns only the PHI the user's role requires -- not the full patient record.
PHI de-identification following HIPAA Safe Harbor at 45 CFR 164.514(b) removes all 18 PHI identifiers, producing a de-identified dataset that is no longer PHI under HIPAA and can be used for analytics, reporting, and ML model training without BAA requirements on the downstream system. Expert Determination de-identification at 45 CFR 164.514(b)(1) -- a qualified statistician certifies the risk of re-identification is very small -- is used for datasets where Safe Harbor removal would render the data analytically useless (geographic data reduced below county level, date data reduced to year only).
Secure PHI deletion workflows cascade through all storage locations: primary database, read replicas, backups, archived logs, and any derived datasets or analytics tables. PHI is not considered deleted until it is confirmed deleted from all locations. Data retention schedules are configured per PHI category based on applicable state medical records laws (retention periods vary from 5 years to 10 years depending on state and patient age at treatment). Data residency configuration restricts PHI to specific AWS regions for organisations with contractual requirements to keep patient data within a specific country or state. PHI inventory mapping -- a living document of what PHI is stored, where, and for what purpose -- is maintained as part of the HIPAA Security Rule risk management programme, following NIST SP 800-66 implementation guidance.
HIPAA compliance requires both technical safeguards and the documentation to demonstrate they are in place. The HIPAA Security Rule at 45 CFR 164.316 requires covered entities to document their security policies and procedures and retain that documentation for 6 years. We provide the technical documentation your compliance team needs to complete that programme -- we do not write your policies (that is your legal and compliance team's domain) but we give them the technical evidence they need to write them accurately.
Documentation delivered as part of every HIPAA software project: technical architecture diagrams showing all system components and their BAA status, data flow diagrams per NIST SP 800-66 mapping every PHI flow through the system from collection through deletion, access control specifications listing every role and the PHI categories each can access, encryption implementation documentation covering which algorithm, key length, and key management approach is used for each PHI store, and audit logging specifications documenting the events captured and the retention configuration.
HITRUST CSF certification is the most widely recognised third-party validation for health tech companies selling to health systems, payers, and large enterprise healthcare organisations. The HITRUST r2 assessment covers 325+ controls across 19 control categories. We design technical controls to map to HITRUST CSF requirements from the start, reducing the gap between the built system and the assessor's requirements when the certification process begins. The HITRUST pathway is significantly less expensive when the system was built for it than when it is retrofitted.
Penetration testing per the OWASP Healthcare Security Testing Guide is conducted before production launch. The test scope covers FHIR API security (injection, broken object level authorisation, excessive data exposure), authentication bypass testing, session token entropy and fixation, PHI leakage in API error responses, and network-level testing of the VPC configuration. Findings are remediated and retested before go-live. The penetration test report supports your security risk assessment documentation.
Frequently asked questions
The HIPAA Security Rule Technical Safeguards at 45 CFR 164.312 cover five standard areas. Access controls (164.312(a)) require unique user identification (required), emergency access procedures (required), automatic logoff (addressable), and encryption/decryption (addressable) -- the addressable specifications must be implemented or the organisation must document a specific alternative, which in practice means implementing them. Audit controls (164.312(b)) require hardware, software, and procedural mechanisms to record and examine activity in information systems containing PHI -- this is a required implementation specification with no addressable alternative.
Integrity controls (164.312(c)) require mechanisms to authenticate that PHI has not been altered or destroyed in an unauthorised manner -- implemented through message authentication codes (HMAC) on data at rest and TLS message integrity in transit. Authentication (164.312(d)) requires procedures to verify that a person seeking access is the one claimed -- implemented through multi-factor authentication using Amazon Cognito with TOTP or SMS OTP. Transmission security (164.312(e)) requires technical security measures to guard against unauthorised access to PHI transmitted over electronic communications networks -- implemented through TLS 1.3 with TLS 1.2 minimum for all network transmission.
In practice, these five areas translate to the following in a modern web application: AES-256 encryption at rest, TLS 1.3 in transit, RBAC with minimum necessary access and unique user accounts, MFA for all users accessing PHI, comprehensive audit logging capturing every PHI access event (user, timestamp, data, action, IP), automatic session logoff after inactivity, and CloudTrail/CloudWatch for infrastructure-level monitoring. NIST SP 800-66 Revision 2 provides the detailed implementation guidance that maps each HIPAA requirement to specific technical controls.
There is no such thing as HIPAA certification. No government body, no accreditation organisation, and no third-party auditor issues a HIPAA certification. HHS OCR, which enforces HIPAA, does not certify organisations or software as HIPAA compliant. Any vendor claiming to offer "HIPAA certification" for your software is selling something that has no regulatory standing.
HIPAA compliance is a legal obligation assessed through your organisation's own security risk analysis (required by 45 CFR 164.308(a)(1)) and the technical, administrative, and physical safeguards you implement and document. Software vendors, including us, can build software that implements the technical safeguards the HIPAA Security Rule requires at 45 CFR 164.312. That means the software has the right architecture -- but your organisation's overall compliance posture also depends on your workforce training, policies and procedures, physical safeguards, and breach response plan, all of which are your compliance team's responsibility, not the software vendor's.
HITRUST CSF certification is the closest thing to a recognised compliance credential in healthcare IT. HITRUST r2 certification is issued by HITRUST itself (a private organisation) after a third-party assessor validates that your organisation meets 325+ controls across security, privacy, and regulatory requirements including HIPAA. Health system procurement teams widely accept HITRUST r2 as evidence of a mature security programme, which is why digital health companies pursuing enterprise sales pursue it. HITRUST certification is not HIPAA compliance -- it is an independent assessment that covers HIPAA requirements among many others.
That depends on whether RaftLabs creates, receives, maintains, or transmits PHI in the course of building your software -- which is the definition of a Business Associate under 45 CFR 164.502(e). If we access actual patient data during development, testing, data migration, or ongoing support, we are a Business Associate and a BAA is required. Operating without a BAA in that circumstance is a HIPAA violation by both parties.
In most development projects, we work with de-identified synthetic test data that mirrors the structure of your production data without containing any actual PHI. Because de-identified data is not PHI under HIPAA (Safe Harbor de-identification per 45 CFR 164.514(b)), a BAA may not be required for the development phase. For integration testing with live systems (Epic FHIR production environment, live patient scheduling APIs), we assess whether the test data involved is actual PHI or whether the integration can be tested against a non-production environment with synthetic data.
If your project requires us to access production PHI -- for data migration from a legacy system, integration testing with live patient data, or production support with access to PHI-containing systems -- we execute a BAA before any such access occurs. BAA requirements, data access scope, and the de-identification approach for test data are discussed during engagement setup, not discovered mid-project.
HIPAA technical safeguards add approximately 15-25% to the base development cost of a comparable non-healthcare application. The specific additions: AWS HIPAA Eligible Services carry a modest cost premium over equivalent non-HIPAA services. Development time increases for encryption implementation (key management configuration, field-level encryption for sensitive data categories), RBAC architecture design and implementation, comprehensive audit logging covering all PHI access events, MFA integration via Cognito, and session management with automatic logoff. Security testing -- penetration testing per OWASP Healthcare Security Testing Guide, vulnerability scanning, and PHI leakage testing on API responses -- adds time before production launch.
Compliance documentation support (data flow diagrams, access control specifications, architecture documentation for your security risk assessment) adds a defined documentation phase. If HITRUST CSF certification is in scope, the additional documentation and control mapping adds to the project cost but substantially reduces the cost of the subsequent gap assessment when the certification process begins.
The cost of not building HIPAA compliance in from the start is typically 2-3x the cost of building it correctly the first time. Retrofitting encryption onto a system that was not designed for it requires rekeying every PHI field, rewriting data access patterns, adding audit logging to every code path that touches PHI, and re-testing the entire application. The architectural changes required for a retrofit are more extensive than building correctly from the start. See our healthcare app development cost guide for full project cost ranges by application type and compliance scope.
What clients say
Three-year average engagement. Founders and operators describing the work in their own words. No marketing varnish.

All of the sprints were completed on schedule and on budget. We highly recommend RaftLabs!
01 / 02
Tell us the application type, the PHI you handle, and your current compliance posture. We'll design the technical safeguards into the architecture from the start.