Case study · Clinical AI and data protection

Helpful, not reckless: privacy-first AI triage for a Kenyan telehealth service

A Kenyan telehealth service wanted an AI assistant to take symptoms over chat, in English and Swahili, and route patients to the right clinician faster. Health data is the most sensitive data it holds, the best models run offshore, and Kenya's regulator is moving from warnings to enforcement. The design had to keep patients safe, keep identifiable data at home and prove both.

Case studyHealthcare · KenyaSumanta Mukhopadhyay9 min read
#healthcare#ai#governance
CASE STUDY · CASE STUDY · CLINICAL AI AND DATA PROTECTION30 Oct 2026 · 12:55 GST
At a glance
SectorHealthcare · Kenya
My roleFractional CTO and AI architect
EngagementAssessment, architecture and delivery leadership
ScopeTriage assistant, de-identification gateway, MCP tool servers, clinician review, DPIA and evidence
What changed
  • Identifiable patient data kept in-country; the model sees de-identified text only
  • Red-flag symptoms escalated by rules before any model output
  • Every AI suggestion reviewed by a clinician before it affects care
  • A data protection impact assessment covering the AI use, kept current with each release
  • English and Swahili behaviour tested on every change
Chat channels (app, WhatsApp, SMS)De-identification gatewayHosted LLM with zero data retentionMCP servers for clinic systemsRules-based red-flag checksClinician review queueOpenTelemetry tracingEvaluation harness

Anonymised composite. Client names, identifying details and confidential figures are withheld; public facts are cited in the references.

The situation

A telehealth provider in Kenya offered consultations by app, WhatsApp and SMS, backed by a network of clinicians and partner pharmacies. Demand peaked in the evenings, when patients waited longest for a first response. The team wanted an AI assistant to take a structured symptom history in English or Swahili, summarise it and suggest who should see the patient, so clinicians could start from a clear picture.

Why now. Kenya's Data Protection Act treats health data as sensitive personal data and allows transfers abroad only with appropriate safeguards1. The Office of the Data Protection Commissioner (ODPC) consulted in 2026 on draft guidance on AI2, and commentary on the draft says uses such as health diagnostics and clinical decision support would need a data protection impact assessment3. There were also public calls for stronger protection of data sent to offshore AI providers4, and an October 2026 report described African regulators, Kenya's among them, using data protection law to police AI while dedicated AI bills stall5. A dedicated AI law may or may not arrive soon. The data protection duties already apply.

What had to be true

  • Safety first: urgent symptoms escalated by rules, never left to a model's judgement.
  • Clinician in the loop: the AI drafts, a clinician decides.
  • Identifiable data stays home: names, numbers and IDs never reach an offshore model.
  • Both languages work, including mixed English and Swahili, tested on every change.
  • A living DPIA, updated with each release and backed by evidence.

Architecture

Channels
Apprich chatWhatsAppmost patientsSMSbasic phones
Safety
Red-flag rulesrun before the modelEmergency routingcall-back and referral
In-country boundary
De-identification gatewaystrip and tokenise identifiersMCP serversclinic, pharmacy, scheduling
Model
Hosted LLMzero retention, de-identified textPrompt and policy packversioned
Care
Clinician review queuesummary, suggestion, full historyRecordsin-country EHR
Evidence
Tracesno raw contentEvaluationsEnglish, Swahili, mixedDPIAper release
Rules guard safety, the gateway guards identity, and clinicians guard decisions.

The data flow, end to end

  1. MessageA patient describes symptoms by app, WhatsApp or SMS
  2. ScreenRules check for red flags; urgent cases go straight to a clinician
  3. De-identifyNames, numbers and IDs are replaced with tokens in-country
  4. DraftThe model asks follow-up questions and drafts a summary and routing
  5. ReviewA clinician sees the summary, the suggestion and the full history
  6. RecordThe decision is stored in the in-country record with the model version
Nothing the model says affects care until a clinician has confirmed it.

The hard part: giving the model context without giving it identities

Good triage needs context: age band, past visits, current medicines, allergies. Shipping the whole record to the model would have been easy and wrong. The team instead exposed clinic systems through small MCP servers running in-country, each offering narrow, read-only tools such as "medicines for this patient token" or "visits in the last 90 days"6. The servers return only the fields the tool needs, keyed by token, so the model can reason about the patient without ever seeing who they are.

Diagram of the Model Context Protocol connecting AI applications such as chat interfaces, IDEs and other AI apps with data sources and tools such as databases, development tools and productivity tools through bidirectional data flow
MCP sits between the assistant and clinic systems, so each tool can decide exactly what leaves the boundary. Source: Model Context Protocol docs, MCP contributors · CC BY 4.0

De-identification in free text is harder than in records. Patients type names, phone numbers, locations and the names of relatives, often mixing English and Swahili. The gateway combined pattern rules with a small local model for entity detection, tested on real, consented examples in both languages, and failed closed: if it was unsure, the message went to a human rather than to the model. More on securing tool servers in the MCP security checklist.

The question is not "can we send this to the model?" but "what is the least the model needs to be useful?" Build tools that answer exactly that.

How it ran

Clinical lead
  1. Red-flag rules
  2. Review workflow
  3. Safety reviews
Engineering
  1. Gateway and MCP servers
  2. Evaluation harness
  3. Tracing
Data protection
  1. DPIA
  2. Transfer safeguards
  3. Patient notices
The clinical lead owned safety; engineering owned the boundary; data protection owned the paper trail.
Phase 1Safety and DPIA
  • Red-flag rules
  • Draft DPIA
  • Clinician workflow
Phase 2Boundary
  • De-identification gateway
  • MCP servers
  • Zero-retention model
Phase 3Shadow mode
  • AI drafts unseen
  • Compare with clinicians
  • Fix gaps
Phase 4Assist
  • Drafts shown to clinicians
  • Evening pilot
  • DPIA updated
Shadow mode first: the AI's drafts were compared with clinicians' own triage before anyone saw them.

Key decisions and trade-offs

DecisionAlternativeWhy
Rules before the model for red flagsLet the model spot emergenciesPredictable, testable and explainable
De-identify in-countrySend records under a contractIdentifiable health data never leaves
Narrow MCP toolsGive the model the whole recordLeast data for each question
Fail closed on uncertain redactionSend and hopeA human is cheaper than a breach
Shadow mode before assistPilot directly with patientsFind errors without risk to care

What I'd do again, and differently

Again: shadow mode. It showed where the model asked poor follow-up questions in Swahili before any patient saw them. Differently: build the bilingual evaluation set first, not alongside the gateway. It was the slowest part to get right and it drove most design choices. Related: private AI for clinical documentation, private LLMs, evaluation sets, healthcare data architecture and where I work.

If you are bringing AI into healthcare in Kenya or elsewhere in Africa, see my AI architecture work, or analyse your challenge and bring the result to a call.

References
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
    What is the Model Context Protocol (MCP)?Model Context Protocol · 2026
FAQ

Common questions

Does Kenya regulate AI in healthcare?

Kenya has no AI-specific law in force. The Data Protection Act 2019 applies, with health data treated as sensitive personal data. The ODPC has consulted on draft guidance on AI, and commentary on that draft says health diagnostics and clinical decision support would need a data protection impact assessment.

Can a Kenyan provider send patient data to an offshore AI model?

Cross-border transfers are allowed only with appropriate safeguards under the Data Protection Act, and there is growing public pressure for stronger protections when data goes to offshore AI providers. Minimising and de-identifying data before it leaves the country reduces both legal and practical risk.

Should an AI assistant make triage decisions on its own?

Not in this design. Rules catch red-flag symptoms first, the model drafts a summary and suggested routing, and a clinician confirms before it affects care.

Keep reading

Related

Open to advisory, fractional CTO & select builds

Let's talk about what you're building.

The fastest route is a free 30-minute call. Prefer to write? Send a message and I'll reply personally within two business days.

Start a conversation

How would you like to reach me?

Book a 30-min callFastest. Pick any open slot on my calendar.→ Write in GmailOpens a pre-filled draft in your browser.→ Use my email appOutlook, Apple Mail or your default client.→

I reply personally within two business days. Time zones from the Americas and Europe to the Middle East and Asia-Pacific.