Architecture Overview
The platform follows a zero-trust, microservices architecture deployed on HIPAA-eligible AWS infrastructure (us-east-1 / us-west-2 multi-region). The presentation layer is a React 18 SPA served via CloudFront with WAF rules enforced. The API gateway (Kong) handles OAuth 2.0 / PKCE authentication before routing to domain services: Patient Service, Scheduling Service, Notification Service, and Audit Service — each containerized in ECS Fargate with individual IAM roles. All inter-service communication occurs over mTLS within a private VPC. PHI data is stored exclusively in RDS PostgreSQL (encrypted, Multi-AZ) and never written to application logs. An event bus (Amazon EventBridge) drives asynchronous workflows such as reminder dispatch and EHR sync, with dead-letter queues and exponential backoff ensuring delivery reliability.
Core Database Schema
| Table | Primary Key | Key Columns | Encryption | Notes |
|---|---|---|---|---|
patients |
patient_uuid |
mrn, dob, insurance_id, primary_provider_id | PHI — AES-256 | FHIR Patient resource mapped |
appointments |
appt_uuid |
patient_id, provider_id, slot_start, slot_end, status, type_code | Partial PHI | Indexed on slot_start, provider_id |
providers |
provider_uuid |
npi, specialty, availability_json, location_id | Standard TLS | NPI verified via NPPES API |
audit_log |
log_uuid |
actor_id, action, resource_type, resource_id, ip_hash, timestamp | Immutable / WORM | 6-year retention, S3 Glacier |
notifications |
notif_uuid |
appt_id, channel, status, scheduled_at, delivered_at | Standard TLS | SMS via Twilio, email via SES |
Scheduling Workflow
Deployment Notes
- Infrastructure: AWS GovCloud-adjacent (us-east-1), Terraform IaC, all resources tagged for HIPAA cost allocation.
- CI/CD: GitHub Actions pipeline with SAST (Semgrep), container scanning (Trivy), and mandatory security gate before any PHI-environment deploy.
- Secrets: AWS Secrets Manager with automatic 90-day rotation; no secrets in environment variables or source control.
- Monitoring: CloudWatch + Datadog APM; PagerDuty for P1/P2 incidents; RTO 4hr / RPO 1hr per BAA SLA.
- BAA: Signed Business Associate Agreements required with AWS, Twilio, and any third-party sub-processor before go-live.