Technical Architecture

REV.health is built on 9 interlocking subsystems spanning cloud infrastructure, data, AI/ML, mobile, identity, resilience, and audit.

9 Subsystems Overview

1. Cloud Infrastructure

Azure (primary): Cosmos DB (OLTP), Azure OpenAI, Microsoft Fabric (analytics/ETL).

AWS (secondary): HealthLake (FHIR store), MSK/Kafka (event streaming), S3 (document store with Object Lock), Bedrock (fallback LLM inference).

2. Multi-Tenancy

TierIsolationData StrategyTarget Org Size
T1 — StandardPartition keyShared Cosmos database, OrganizationID partitionSmall & mid practices
T2 — Dedicated DBDatabase-levelDedicated Cosmos database per org, shared accountLarge groups & MSOs
T3 — Dedicated AccountAccount + VNetDedicated Cosmos account, isolated VNet, customer-managed keysHealth systems & enterprise

3. Data Architecture

4. API Design

5. AI/ML Pipeline

All clinical AI flows through a governed 5-stage pipeline:

  1. Redaction Gateway — strip/tokenize PHI before LLM inference
  2. LLM Gateway — route to Azure OpenAI or Bedrock based on load/cost/capability
  3. Domain Models — fine-tuned models for coding, NLP, scribe, CDS
  4. Human-in-the-Loop — clinician review queues for AI suggestions above confidence threshold
  5. Governance Committee — quarterly model audit, bias review, performance metrics

6. Mobile

7. IAM (Identity & Access Management)

8. Resilience & DR

Service TierRTORPOExamples
Tier 1 — Critical4 hours5 minutesClinical documentation, eRx, scheduling, patient portal
Tier 2 — Important24 hours1 hourAnalytics, reporting, bulk data export, batch jobs

9. Audit & Logging

Architecture Diagram

graph TD
  subgraph Client["Client Layer"]
    CL1["Angular 21 PWA
(Clinician)"] CL2["React Native / Flutter
(Patient)"] CL3["Third-party Apps
(SMART on FHIR)"] end subgraph Edge["Edge Layer"] CDN["Component CDN"] WAF["WAF / DDoS"] APIGW["API Gateway"] end subgraph App["Application Layer"] FHIR["FHIR R4 Facade"] AUTH["IAM / SSO"] AI["AI/ML Pipeline"] CDS["CDS Hooks Engine"] GRPC["gRPC Services"] end subgraph Data["Data Layer"] COSMOS["Cosmos DB
(OLTP)"] KAFKA["Kafka / MSK
(Event Store)"] S3["S3 Object Lock
(Documents)"] CH["ClickHouse
(Analytics)"] FABRIC["Microsoft Fabric
(ETL)"] end CL1 --> CDN CL2 --> APIGW CL3 --> APIGW CDN --> WAF --> APIGW APIGW --> FHIR APIGW --> AUTH APIGW --> AI APIGW --> CDS FHIR --> GRPC CDS --> GRPC AI --> GRPC GRPC --> COSMOS GRPC --> KAFKA GRPC --> S3 KAFKA --> CH KAFKA --> FABRIC