ExamplesHealthcare / EHR Platform

Healthcare / EHR Platform

Protecting PHI. An electronic health record and patient portal hold special-category data — a single IDOR on a FHIR endpoint or an unencrypted imaging store is all it takes to expose a patient's most sensitive records.

EHR Architecture

EHR and patient portal with CDN/WAF, FHIR API gateway, SMART on FHIR identity, EHR services, HL7/FHIR integration engine, encrypted PHI database, imaging/document store, immutable audit trail, and a separate control plane.

ExternaluntrustedPatients (Portal)Clinicians (Remote)AttackerEdgesemi trustedCDN / WAFFHIR API GatewayApptrustedIdentity / SSO (SMART)EHR App ServicesHL7 / FHIR EngineDatahighly trustedPHI Database (Enc.)Imaging / DocumentsAudit Trail StoreControlhighly trustedAdmin ConsoleConsent & Identity Mgmt

Crown Jewel: Protected Health Information (PHI)

The PHI database, imaging store, and audit trail hold every patient's most sensitive data — diagnoses, medications, mental-health and reproductive history. A single IDOR on a FHIR endpoint, an open imaging server, or an unencrypted backup exposes special-category data regulated by HIPAA and GDPR/KVKK. PHI must be encrypted, access bound to a care relationship, and every read written to an immutable audit trail.

Edge Layer

CDN/WAF and the FHIR API gateway terminate TLS, rate-limit, and mitigate bots and DDoS on the patient portal.

App Layer

SMART on FHIR identity, EHR services, and the HL7/FHIR engine. All clinical authorization checks live here.

Data Layer

Encrypted PHI database, imaging/document store, and the immutable audit trail. The crown jewels.

Control Plane

Admin console and consent/identity management. Access must be least-privilege and fully audited.