When a clinic, school or SACCO tells me it is "going digital", one of the first things I ask is whether anyone has done a data protection impact assessment. Usually nobody has, and often nobody knows what one looks like. So in this article I walk through a full DPIA for one made-up clinic, step by step, and end with the finished risk table.
What a DPIA is, and when the law expects one
A data protection impact assessment (DPIA) is a written check you do before you start handling personal data in a way that could seriously harm people if it goes wrong. You describe what you plan to do, ask whether it is really necessary, list what could go wrong, and decide how you will prevent it.
Section 31 of the Data Protection Act, 2019 requires a DPIA where processing is "likely to result in high risk to the rights and freedoms" of the people whose data it is. The section says a DPIA must include:
- a systematic description of the processing and its purpose
- an assessment of whether the processing is necessary and proportionate
- an assessment of the risks to the people concerned
- the measures you will take to deal with those risks
If the DPIA shows the processing would still be high risk, you must consult the Data Commissioner before you start. The Act also says DPIA reports are submitted sixty days before the processing begins. The ODPC published a Guidance Note on Data Protection Impact Assessment in November 2023, which is worth reading alongside this article.
In practice, think about a DPIA whenever you handle health records, biometrics such as fingerprints, children's data, CCTV across a large area, or any new system that brings together a lot of personal data.
The example: a clinic in Thika moves to a phone booking system
Imagine a small private clinic in Thika. It has about 4,000 patient files on paper. The owner wants to move to a phone-based system where patients book by SMS or a web link, receptionists see the day's list on a tablet, and clinicians record notes on a laptop. A local software company will host the system.
Patient health information is sensitive personal data under the Act, and the clinic is about to put all of it into a new system run by an outside company. That is a clear case for a DPIA.
Step 1: Describe the processing
Write it down plainly. For our clinic:
- Whose data: patients, including children brought by parents, and next of kin.
- What data: name, phone number, ID number, date of birth, symptoms, diagnoses, prescriptions, payment and insurance details.
- Why: booking appointments, treating patients, billing and insurance claims.
- Who sees it: two receptionists, three clinicians, the owner, and the software company's support staff.
- Where it is stored: the software company's servers, plus the tablet and laptops at the clinic.
- How long: to be decided (we come back to this in step 5).
A simple diagram helps: patient → SMS booking → system → receptionist tablet → clinician laptop → insurance company.
Step 2: Check it is necessary and proportionate
Go through each piece of data and ask: do we really need this, at this point?
- At booking, the clinic only needs a name, phone number and preferred time. Asking for the ID number and the reason for the visit in an SMS is unnecessary and risky. Decision: collect ID numbers at the front desk on arrival, and don't ask for symptoms at booking.
- Receptionists need the day's list. They don't need diagnoses. Decision: receptionists see names and times only.
- The software company needs access to fix faults, not to browse records. Decision: support access only with the owner's approval, and every access logged.
This step alone removed two of the biggest risks before we even reached the risk table.
Step 3: List what could go wrong
Think about real harm to real patients, not just "a hack". For the clinic:
- A staff tablet or laptop is lost or stolen.
- A staff member looks up a neighbour's or relative's diagnosis out of curiosity.
- An SMS reminder reveals the type of appointment, for example "your HIV clinic review", to whoever holds the phone.
- The software company suffers a breach.
- Old records are kept forever and nobody knows who still has access.
- A patient asks to see their records and the clinic cannot respond properly.
Step 4: Score each risk
Score each risk for how likely it is and how serious the harm would be, as low, medium or high. Keep it simple; the point is to decide where to focus.
Step 5: Decide what you will do about each risk
For every medium or high risk, write a specific measure, who is responsible and the risk that remains afterwards.
The finished risk table
| Risk | Likelihood | Harm | Before | Measure | Owner | After |
|---|---|---|---|---|---|---|
| Lost or stolen tablet or laptop | Medium | High | High | Screen lock and encryption on all devices; no records saved on the device; remote wipe | Owner | Low |
| Staff browsing records they don't need | Medium | High | High | Access based on job role; receptionists see appointments only; access logs reviewed monthly; confidentiality clause in contracts | Owner | Low |
| SMS reveals a diagnosis | High | High | High | Neutral wording: "You have an appointment at the clinic on Tuesday at 10am" | Receptionist lead | Low |
| Breach at the software company | Low | High | Medium | Written data processing contract; data hosted as the law requires; breach notification within agreed hours; support access approved and logged | Owner | Low |
| Records kept forever | High | Medium | Medium | Written retention period for each record type; yearly review and secure deletion | Owner | Low |
| Unable to handle patient access requests | Medium | Medium | Medium | One named person handles requests; simple request form; response log | Clinic administrator | Low |
No risk stays high after the measures, so in this example the clinic would not need to consult the Data Commissioner before going ahead. If one had stayed high, for example if the clinic insisted on sending diagnoses by SMS, it would have to consult the Commissioner first, and should really rethink the plan.
Step 6: Sign off and review
The clinic owner signs and dates the DPIA. It gets reviewed when something changes: a new software provider, a new service such as telemedicine, or a breach. Otherwise, once a year.
Keep the DPIA with your other data protection records. If the ODPC ever asks how you decided your system was safe, this is the document that answers.
Mistakes I see most often
- Doing the DPIA after the system is live. By then the expensive decisions are made. The law asks for it before processing.
- Copying a template without thinking. A DPIA that could describe any organisation protects no one.
- Listing risks with no owner. "Improve security" is not a measure. "Owner turns on device encryption by 15 January" is.
- Forgetting the outside company. Most of your data may sit with a supplier. Your contract with them belongs in the DPIA.
Need help with a DPIA?
akcreditted Data Consultants helps clinics, schools, SACCOs and NGOs carry out DPIAs and put the measures in place through our Data Protection & Compliance service. For professional advice on your own situation, contact us on WhatsApp.
Related reading: How to prepare for ODPC registration in Kenya, Do you need a data protection officer? and What to do in the first 72 hours after a data breach.
Sources: Data Protection Act, 2019, section 31; ODPC Guidance Note on Data Protection Impact Assessment; Data Protection (General) Regulations, 2021.
The clinic in this article is an illustrative example, not a client project. The cover is an AI-generated illustration depicting a Kenyan setting, not a photograph of an actual person, location or client project. This article is general guidance, not legal advice.
