Washington State University · Global Health – KenyaRADAR Documentation
INV-110654 · Draft v0.1 · 29 October 2026
Doc 04·Product & Architecture

System Architecture & Technology Stack

The five layers of RADAR, the components inside them, how data moves between them, and the recommended open-source technology stack.

For: EngineeringLeadership & funderStatus: Draft v0.1Updated: 29 October 2026

In short

  • RADAR has five layers on top of existing systems: integration, bridge (MER), intelligence, decision support, and users & channels.
  • Identity, audit and observability cut across every layer.
  • The recommended stack is open source and government-ownable: OpenHIM, HAPI FHIR, PostgreSQL, NATS, Python/R analytics, an on-premise LLM served by vLLM, and Keycloak.
  • RADAR is not a big-data problem — volumes are modest. The hard parts are reliability, integration, audit and safe AI.

Why it matters

The architecture fixes where each responsibility lives, so the connector, analytics, AI and UI teams can work in parallel without stepping on each other. It also has to be something KNPHI can run after October 2029: every choice here favours tools that are well documented, widely used in African health information systems, and free of licence lock-in.

How this document connects

Labels used in this document: Proposal stated in the funded proposal, stage-gate paper or deck · Research external evidence (see Sources) · Recommended proposed design choice, to be confirmed · Open decision still needed

1Quality goals that drive the design

GoalWhat it means for RADARDesign response
Available during outbreaksLoad and attention spike exactly when the system matters mostStateless services, queues between stages, degraded modes, tested restores
Data residencyIdentifiable data stays on Government-authorised infrastructure ProposalProduction on KNPHI/DHA infrastructure; on-prem LLM; dev on non-identifiable data only
AuditableEvery recommendation, confirmation and override is time-stamped and attributableAppend-only audit log; Provenance on every MER change
IncrementalStart with four sources; add streams without rebuildingOne connector pattern; MER as stable contract; event bus decouples producers and consumers
Operable by KNPHISmall ops team after handoverFew moving parts, containers, infrastructure-as-code, runbooks, managed upgrades
Low-connectivity tolerantCounty EOCs may lose power or internetLight web UI, offline-capable forms, SMS alerts, back-entry with true timestamps

2The five layers

Users & channels EOC dashboard DMT-PHE workspace SMS / email alerts Partner APIs recommendations Decision support Rules engine (trigger cards) AI agent (RAG + LLM) Human review Audit log risk signals Intelligence Record linkage Anomaly detection Fusion Forecasts Risk score linked events Bridge · MER MER service FHIR R4 server Event bus standard fields Integration Connectors OpenHIM / LATTICE Terminology Quality checks pull / push Source systems KHIS2 m-Dharura KABS LIMS KMD · NDMA EIOS IDENTITY & ACCESS AUDIT & GOVERNANCE OBSERVABILITY data up feedback down
RADAR's five layers on top of existing systems. Data moves up the stack; decisions, overrides and outcomes flow back down as feedback. Identity, audit and observability cut across every layer rather than being bolted onto one of them.
LayerResponsibilityDetail in
IntegrationConnect to sources, land raw data unchanged, validate, map to standard codesdoc 05
Bridge (MER)Hold event identities, timestamps and links; publish changesdoc 03
IntelligenceLinkage, baselines, anomaly detection, fusion, forecasts, risk scores, signal cardsdoc 06
Decision supportTrigger-card rules, AI agent, human confirmation, auditdoc 07
Users & channelsEOC dashboard, DMT-PHE workspace, alerts, partner APIs (GHEC-AI)doc 08

3Components and the path of one record

INGEST CORE DECIDE SUPPORT Source systems KHIS2 · KABS · m-Dharura … Gateway OpenHIM / LATTICE Connectors scheduled jobs · Dagster Raw landing immutable object store Validate · map schema · FHIR · codes Linker match to events (Splink) MER service HAPI FHIR R4 · PostgreSQL Event bus NATS JetStream Analytics detection · fusion · forecasts Signal store risk scores + evidence Rules engine trigger-card thresholds Agent service RAG · tools via MCP RADAR web app dashboard · DMT-PHE Audit log append-only, signed Outbound GHEC-AI · SMS · email Knowledge base guidelines · pgvector LLM server vLLM · on-prem GPU Identity provider (Keycloak) SSO · MFA · role-based access for every component above signal card retrieve status updates
Runtime components and the path one record takes. A record enters through the gateway, is landed unchanged, validated, mapped and coded, linked to an event, and published. Analytics consume events from the bus; the decision service combines deterministic rules with the AI agent, and every human decision lands in the append-only audit log.
  1. Ingest. A connector pulls the week's KABS reports through the gateway and lands the raw file unchanged.
  2. Validate, map, code. Records are checked against the source schema, mapped to MER/FHIR fields, and coded (syndrome, species, admin unit). Failures go to quarantine.
  3. Link. The linker matches a cluster of livestock abortions to an existing suspected-RVF MER in the same sub-county, or opens a new one.
  4. Publish. The MER service writes the change (with Provenance) and publishes an event on the bus.
  5. Analyse. Analytics workers recompute baselines and fusion scores; a signal card is written with its evidence.
  6. Decide. The rules engine evaluates the RVF trigger card; the agent drafts a cited recommendation; an officer confirms Level 2 in the DMT-PHE workspace.
  7. Act and record. The decision lands in the audit log; the outbound gateway notifies the level owner and sends the GHEC-AI hand-off.

Each choice is a recommendation for the Technical Working Group to confirm in the Technical Product Profile (TPP). All are open source. Recommended

ComponentRecommendationWhyAlternatives
Gateway / interoperability layerOpenHIM (or LATTICE where operational)Reference interoperability layer of OpenHIE; routing, client auth, ATNA audit, mediators; MPL 2.0Kong / NGINX + custom audit
Connector orchestrationDagsterAsset-based pipelines with lineage, retries and schedules; Python-nativeApache Airflow, Prefect
Raw landingS3-compatible object storageImmutable raw files allow re-processing when mappings improveCeph RGW, SeaweedFS, MinIO
MER & FHIR serverHAPI FHIR JPA on PostgreSQLMost widely used open FHIR R4 server; profile validation, subscriptions, terminologyMicrosoft FHIR server, Medplum
DatabasePostgreSQL 16+ with PostGIS and pgvectorOne reliable engine for relational, spatial and vector search; strong tooling for backupTimescaleDB extension for time series
Event busNATS JetStreamSingle small binary with persistence; enough for RADAR's volumes; easy to operateApache Kafka / Redpanda if DHA standardises on them
Record linkageSplinkOpen, explainable Fellegi–Sunter linkage at scaleCustom rules only
AnalyticsPython (statsmodels, scikit-learn) + R surveillance packageFarrington Flexible, EARS, CUSUM are mature in R; Python for pipelines and fusion—
Rules engineVersioned decision tables (YAML/JSON) evaluated in code, under testTrigger cards stay readable by epidemiologists and deterministicDMN engine (e.g. Camunda) if KNPHI prefers BPMN tools
AI agentPython service (FastAPI) with thin orchestration; tools via MCPSmall, auditable code path; MCP standardises tool accessLangGraph or similar if complexity grows
LLM servingvLLM on on-prem GPU; open-weight model chosen by evaluationData never leaves Government infrastructure; OpenAI-compatible APIGovernment-authorised hosted endpoint
Web applicationReact + TypeScript; MapLibre maps with offline tilesProduction-grade UI; the Streamlit prototype remains a reference only—
Analyst dashboardsApache SupersetSelf-service charts for KNPHI analysts on read-only replicasMetabase, Grafana
Identity & accessKeycloak (OIDC)SSO, MFA, role-based access; can federate with Government identity later—
AlertsSMS gateway + emailReaches officers without the app openWhatsApp Business API (policy check)
ObservabilityPrometheus, Grafana, Loki, OpenTelemetryMetrics, logs and traces in one place; alerting on pipeline failures—
Runtime & deliveryContainers on k3s/RKE2; CI with image scanning and signingSame deployment model from dev to production; small footprintDocker Compose for the MVP only

5Environments

Development approved cloud or WSU-hosted · synthetic & de-identified data · open to all developers Staging / UAT KNPHI/DHA-approved infra · de-identified replay of real feeds · load & security tests Production KNPHI/DHA infra · live identifiable data · least-privilege admin access promote signed build after go/no-go Recovery site encrypted backups · Government-authorised encrypted backup Identifiable data never flows left of production
Three environments, one rule. Code and models are promoted left to right through signed CI/CD builds; identifiable data never moves left. Development can use cloud hosting because it only ever sees synthetic or approved non-identifiable data.

Development environments may use approved non-identifiable data; production runs within KNPHI/DHA-approved on-premise or other Government-authorised infrastructure. Proposal The budget includes hosting subscriptions in Periods 1 and 3 (US$4,000 each), the latter to keep the platform running through evaluation and handover. Any cloud hosting that carries live data must itself be Government-authorised. Proposal

6Sizing and hardware

RADAR's data volumes are small by modern standards. Published figures give a sense of scale: KABS received about 11,400 livestock reports in its first two years; one county's community EBS produced about 8,700 signals in a year. Research Even nationally, structured records will be in the low millions over the grant — comfortably handled by a single well-configured PostgreSQL server. The compute-heavy component is LLM inference.

The proposal describes the budgeted server as hosting the RADAR development platform, integrated surveillance databases, analytics engines, AI services and decision-support tools. Proposal Whether it becomes the production host at KNPHI, a development/staging host, or both is a decision for the TPP. Open

Dell PowerEdge R770 (budgeted, US$36,095)Specification Research
Form factor & CPU2U, two Intel Xeon 6 processors (up to 86 P-cores or 144 E-cores each)
Memory32 DDR5 DIMM slots, up to 8 TB
StorageUp to 40 E3.S NVMe or 24 × 2.5" SATA; BOSS-N1 mirrored boot
GPUUp to 2 double-width 450 W GPUs, or 6 single-width 75 W GPUs
SecurityTPM 2.0, silicon root of trust, secure boot, self-encrypting drives, system lockdown
Two hardware risks to settle early
  • GPU. Running an LLM on-premise needs at least one data-centre GPU (for example a 48 GB-class card for a mid-size open-weight model). Confirm whether the quoted server configuration includes one; if not, budget it or agree a Government-authorised hosted model endpoint. Open
  • Single point of failure. One server hosts everything. Plan a second node or a Government-cloud standby for recovery (see doc 11).

Indicative configuration Recommended: 2 × mid-range Xeon 6 P-core CPUs, 512 GB RAM, 8 × NVMe in RAID 10, mirrored boot, 1–2 × 48 GB-class GPUs, dual power supplies, iDRAC Enterprise. Finalise after a load test of the MVP.

7Designing for low connectivity

  • A light web UI that loads quickly on weak links; static assets cached by the browser.
  • Offline-capable forms for county officers, syncing when the link returns, with the officer's original action time preserved.
  • SMS alerts for escalations so no one depends on having the app open.
  • Starlink connectivity at KNPHI and implementation sites is budgeted across all three periods. Proposal
  • A documented paper fallback (the existing DMT-PHE tools) with back-entry when systems return (doc 08).

8Architecture decision log

Decisions are recorded as short Architecture Decision Records (ADRs) in the code repository. Initial set to confirm at the first Technical Working Group: Recommended

ADRDecisionStatus
001MER implemented as FHIR R4 profiles on HAPI FHIR, built on Kenya CoreProposed
002Escalation level is always computed by the deterministic rules engine; the LLM never sets itProposed
003LLM runs on Government infrastructure; no identifiable data to public AI servicesProposed (aligns with proposal)
004NATS JetStream as event busProposed
005OpenHIM as gateway unless LATTICE covers the sourceProposed
006Raw data landed unchanged and retained for re-processingProposed
007Production UI rebuilt in React; Streamlit prototype kept for research onlyProposed

9Open questions

  1. Where exactly will production run? KNPHI data centre, DHA-designated facility or Government cloud — and who operates it day to day. Owner: KNPHI + DHA · before TPP sign-off
  2. Does the server quote include GPUs? Owner: WSU finance + engineering · month 1
  3. Does DHA mandate specific platforms (e.g. a national HIE gateway, Kafka) that should replace the recommendations above? Owner: DHA liaison · month 2
  4. What does the enterprise software partner own — UI, hardening, or both? Owner: WSU · partner selection

Sources

  • INV-110654 proposal — RADAR Conceptual Design; Budget (server, hosting, internet); Data Access (production hosting, security controls).
  • Stage-gate paper — Gate 1 milestone 2 (Technical Product Profile and architecture sign-off); Gate 2 milestone 2 (product hardening).
  • Dell Technologies — PowerEdge R770 specification sheet.
  • OpenHIM — About the OpenHIM (OpenHIE interoperability layer).
  • KABS and EBS volumes — see sources in doc 02.