Part 5: AI, ethics and leadership

16 Privacy, security and governance

Is de-identified data ever truly anonymous?

About 60 minutesPending final reviewLast checked 2026-11-30

In plain language

  • Privacy is the patient's claim to control their information, confidentiality is the professional's duty to protect it, and security is the set of controls that makes both possible. A breach can fail any of them.
  • Removing names does not make data anonymous. Ordinary details such as age, sex, nationality, district and a date are often unique in combination, so de-identification is a judgement about risk, not a checkbox.
  • Health care's biggest security risk is losing the use of its systems. Ransomware turns an IT incident into a patient safety incident, so downtime plans, backups and basic hygiene are clinical safeguards.

The core sections below build on these ideas. Sections marked "Going deeper" are optional and go further.

Why this matters for you

What it means for each role
Students
Every research dataset, app and AI model you will use depends on rules about who may see health data, and why. This module gives you those rules and their limits.
Physicians and residents
You can open almost any record in the hospital. Audit logs record every look, and curiosity is not a reason. Knowing the rules protects your patients and you.
Nurses and allied health
You see more of patients' lives than anyone. Downtime procedures, which you will run when the systems go dark, are part of this module too.
Researchers and analysts
Pseudonymised data is still personal data in most laws. Re-identification risk, data agreements and secure research environments decide what you can do with it.
IT and administration
Patching, access control, audit and backups are where privacy law becomes practice. Ransomware recovery is a clinical operation as well as a technical one.

Who may see Mira’s record?

On the morning she arrives, more than twenty people at MENA Academic Hospital will read some part of Mira’s record, and nearly all of them should. Thirty days later, an overnight job copies her record into the research warehouse, under a protocol approved by the hospital’s research ethics committee, with her name and Emirates ID replaced by a code, PSN-7Q2K9. Is she now anonymous? Could a researcher, a colleague or a criminal find her?

This module is about the rules that decide who may see health data and why, the techniques that make data safer to share, and the attacks that test both.

Privacy, confidentiality and security

Three words are often used as if they meant the same thing.

  • Privacy is the patient’s claim to decide who knows what about them.
  • Confidentiality is the duty of clinicians and organisations to protect what patients tell them. It is far older than computers.
  • Security is the set of technical and organisational controls that protect information and systems. It is usually described by three properties: confidentiality (only the right people see it), integrity (it is not changed wrongly) and availability (it is there when needed).

In health care, availability is a safety property. A record that nobody can open during a cardiac arrest is a security failure, even if nobody else has seen it.

Laws turn these ideas into rules about purpose (care, payment, research, public health), consent (when the patient must agree), minimum necessary use, retention and transfer. Most laws allow health data to be used on one of a few legal bases: providing care; the patient’s consent; a legal duty, such as reporting a notifiable disease; public health or another public interest; and research approved by an ethics committee, sometimes without individual consent when the data is de-identified.

In the UAE, the federal law on information technology in health fields (Federal Law No. 2 of 2019) requires health data to be kept confidential and to be stored and processed inside the country, with exemptions set in 2021 (Resolution No. 51), such as anonymised data for approved research. Each emirate’s regulator adds its own standards. Other countries balance the same questions differently, as the panel shows.

How this works in… Health data law

Compare how these places protect health data.

  • UAE: Dubai Middle East

    Federal Law No. 2 of 2019 governs health data across the UAE: it limits storing health data outside the country, with exemptions, and requires records to be kept for at least 25 years after the last treatment. The Dubai Healthcare City free zone has its own health data regulation.

    Checked 2026-11-30: Federal Law No. 2 of 2019 (UAE Ministry of Justice)

  • Saudi Arabia Middle East

    The Personal Data Protection Law took effect on 14 September 2023 and has been enforced since 14 September 2024, overseen by SDAIA. Health data is sensitive and needs stronger safeguards; transfers abroad follow regulations updated in 2024, which added standard contractual clauses.

    Checked 2026-11-30: Morgan Lewis, September 2024; Baker McKenzie: transfer regulations and SCCs

Compare 6 more
  • UAE: Abu Dhabi Middle East

    The same federal law applies, and the Department of Health adds strict data localisation requirements for licensed providers.

    Checked 2026-11-30: Federal Law No. 2 of 2019 (UAE Ministry of Justice)

  • India South Asia

    The Digital Personal Data Protection Act 2023 came into force with rules notified in November 2025, phased in over about 18 months. It relies mainly on consent and has no separate category for health data. Processing for research and statistics is exempt if it meets standards set in the 2025 Rules, which apply from 2027. Health data sharing under ABDM also follows ABDM's consent-manager framework.

    Checked 2026-11-30: Hogan Lovells, November 2025; DPDP Rules 2025, Rule 16 (research, archiving and statistics)

  • Kenya Africa

    The Data Protection Act 2019 treats health data as sensitive personal data, and the Digital Health Act 2023 adds rules for health information.

    Checked 2026-11-30: Digital Health Act, 2023 (Kenya Law)

  • Morocco North Africa

    Law 09-08 protects personal data, overseen by the CNDP. Health data is sensitive: processing it needs consent and CNDP authorisation, and transfers abroad need prior authorisation. In November 2025 the CNDP set a simplified authorisation route for patient follow-up; research and genetic data still need specific authorisation.

    Checked 2026-11-30: CNDP Deliberation D-941-2025; Chambers 2026, Morocco trends

  • England Comparison

    UK GDPR and the Data Protection Act 2018 treat health data as special category data, alongside the common law duty of confidentiality.

    Checked 2026-11-30: ICO: special category data

  • United States Comparison

    HIPAA covers health providers, insurers and their contractors, but not most consumer health apps. Some states add their own health privacy laws.

    Checked 2026-11-30: HHS: HIPAA for professionals

Think it through: If a researcher abroad asked your hospital for an extract of patient records, which rules would decide whether you could send it?

Identifiers, direct and indirect

Some fields identify a person on their own: name, Emirates ID, medical record number, phone number, email, a photograph of the face. These are direct identifiers, and removing them is the first step of any de-identification.

Other fields identify nobody on their own, but can in combination: age or date of birth, sex, nationality, postcode or district, dates of admission and discharge, a rare diagnosis, an occupation. These are quasi-identifiers. In 1997, Latanya Sweeney found the hospital records of the Governor of Massachusetts in a “de-identified” state insurance dataset, using the voter roll, which listed his postcode, sex and date of birth next to his name. Using 1990 census data, she later estimated that 87% of Americans were unique on those three details. A re-analysis with 2000 census data put it at 63%, still a majority. In 2019, researchers estimated that 99.98% of Americans could be correctly re-identified in any dataset with 15 demographic attributes.

Replacing names with a code is pseudonymisation. It reduces risk, but whoever holds the key, or anyone who can link the quasi-identifiers, can still find the person. That is why the EU’s GDPR, and many laws modelled on it, treat pseudonymised data as personal data, at least for anyone who holds the key or could reasonably link it. Truly anonymous data is data from which nobody can reasonably be identified by anyone, and it is much harder to reach than most people assume.

Going deeper Two US routes to de-identification

US law (HIPAA) offers two routes. Safe Harbor removes 18 kinds of identifier, including every element of a date except the year, any address unit smaller than a state (with a narrow exception for the first three digits of a postcode), and ages over 89. Expert determination lets a qualified statistician certify that the risk of re-identification is very small for a specific release and recipient. Safe Harbor is simple but blunt: it removes the dates that much clinical research needs, and still does not guarantee anonymity when the data contains rare details. Many other countries use risk-based approaches closer to expert determination.

Lab: prepare a research release

You will prepare a year of discharges for a research team, choosing how much detail to keep about each patient. Two tools are available: generalisation (replacing a value with a range, such as an age band or a month) and suppression (withholding records that would still stand out). Your target is k-anonymity with k = 5: every released record must look the same, on the details an outsider might know, as at least four others.

Your task

A research team wants a year of discharges from MENA Academic Hospital to ask whether readmission within 30 days differs between Emiratis and expatriates, by age group and by season, and if possible between men and women. The ethics committee approved the study but asked the team to justify the nationality comparison, since "expatriate" mixes very different populations. Here is a sample of 600 patients, one row each. Names, Emirates IDs and record numbers are already gone. The release still holds five details about each patient, plus the diagnosis and whether they were readmitted. Prepare a release that meets all three goals below.

First, predict

One of the 600 patients is Mira. A colleague knows her age (57), that she is a European woman living in Al Barsha, and that she was discharged on 3 March. In the release as it stands, how many records fit what the colleague knows?

The lab simplifies one thing. It treats the five details as the only ones an attacker could know, but in real life an attacker may know something else: a rare diagnosis, the exact length of stay, a procedure. Experts therefore model who might attack and what they could know, and combine technical measures with rules about who receives the data and what they may do with it. A threshold of k = 5 is common for releases to a named team bound by a data agreement; data published openly needs much stronger protection.

Often the safest answer is not to release a file at all. Two approaches are now common:

  • Secure research environments (also called trusted research environments or data safe havens): researchers work on the data inside a controlled system, and only checked results leave. Checking includes suppressing small counts, so that a table cannot reveal one patient.
  • Federated analysis: the same analysis runs at each hospital, and only aggregate results are shared, again with small counts suppressed. Common data models such as OMOP (Module 11) make this practical, although mapping each hospital’s data to the common model is most of the work.
Going deeper Two more ways to share safely
  • Synthetic data: artificial records generated to mimic the statistics of the real data. Useful for teaching and for building code; any finding must be confirmed on real data, and poorly made synthetic data can still leak real records.
  • Differential privacy: a mathematical guarantee that limits how much any one person’s record can change a published result, achieved by adding calibrated noise. The US Census used it for the 2020 census results.

Who opened the record?

Inside the hospital, the main risk is not a stranger but a colleague. Most hospitals use role-based access: a nurse on a ward sees what nurses need. But clinical work is unpredictable, so access is usually broad, and some systems add break-the-glass: a user can open a restricted record in an emergency after giving a reason, and the access is flagged for review.

Every look is written to an audit log: who opened which record, when and what they did. Audit logs are only useful if someone reads them. Good programmes review access to the records of public figures, of staff and their families, and of patients who ask. When they find someone browsing out of curiosity, they act: it is a disciplinary matter in most hospitals and a crime in some countries.

Quick check A resident looks up the lab results of a friend who was admitted last night, to see whether she is all right. The resident is not on her care team. What is the right view of this?

Choose an answer, then check it.

When the systems go dark

Hospitals are attractive targets for ransomware, because downtime is dangerous and expensive and the pressure to pay is high. Most attackers now steal data before they encrypt it, and threaten to publish it unless paid, so a hospital that restores from backups can still face a data breach. Three incidents show the range.

  • WannaCry, 2017. A worm (malicious software that spreads from computer to computer by itself) encrypted computers around the world. In England, at least 81 of 236 hospital trusts were affected, thousands of appointments and operations were cancelled, and some ambulances were diverted. The National Audit Office found that the attack exploited a Windows weakness for which a fix had been released two months earlier, and that basic IT security could have prevented much of the harm.
  • AIIMS New Delhi, 2022. A ransomware attack took down the servers of one of India’s largest public hospitals. For about two weeks, registration, admissions and lab reports ran on paper, with long queues for patients.
  • Change Healthcare, 2024. Attackers entered through a remote-access login that was not protected by multi-factor authentication. The attack on a company that processes a large share of US insurance claims disrupted payments and prescriptions at pharmacies and practices across the country for weeks, and the data of about 192.7 million people was taken.

Not every attack takes systems down. Morocco’s social security fund (CNSS), April 2025. Attackers published salary records and other files on about two million employees and some 500,000 companies. CNSS confirmed that cyberattacks had caused a leak, said many of the published documents were false, inaccurate or truncated, and strengthened its security. The data protection authority, the CNDP, warned that using the leaked data is an offence under Law 09-08 and invited victims to file complaints. CNSS manages Morocco’s compulsory health insurance (AMO) for most of the insured population, so the incident showed how much personal and financial data a central health insurer holds.

What protects patients is mostly unglamorous:

  • prompt patching;
  • multi-factor authentication on every remote login;
  • phishing awareness among staff;
  • network segmentation (dividing the network so that one infected machine cannot reach everything), with medical devices that cannot be patched kept on separate networks;
  • accounts closed promptly when staff leave;
  • backups kept offline or unchangeable, and tested by actually restoring them;
  • downtime procedures that staff have practised.

When an attack happens, a hospital runs an incident response plan: contain the attack, keep care safe, preserve evidence, and notify. Most data protection laws require the regulator to be told of a serious breach quickly (within 72 hours under the EU’s GDPR, and similar laws set similar deadlines), and patients to be told when they are at risk. In a downtime, paper order forms, printed medication lists and a way to look up recent results keep care going. After the systems return, everything done on paper must be entered and reconciled, which can take longer than the outage.

Quick check During a planned EHR downtime, a ward has paper charts, but no list of the medicines each patient was due. What is the most important thing that should have been prepared?

Choose an answer, then check it.

From the Failure Museum: WannaCry and the unpatched computers

In May 2017, the WannaCry ransomware spread across the world in a day. It did not target the NHS, but the NHS had many computers running unsupported or unpatched versions of Windows, and it had no rehearsed national plan for a cyber attack. Trusts that were not infected switched off systems as a precaution, and the effect spread from IT to operating theatres, clinics and emergency departments. The NAO’s investigation found that no patient data was reported stolen. The harm was to availability: care that could not be delivered on time.

Lesson: for a hospital, security is a patient safety function. The basics, kept up every day, prevent more harm than any advanced defence, and the plan for running without computers matters as much as the plan for getting them back.

Check your understanding

Answer every question, then check. Each answer comes with an explanation. Score 80% or more to mark the module complete. Your progress is saved only in this browser.

1. A Riyadh hospital loads records into a research warehouse with names replaced by codes. The hospital keeps the key that links codes to patients. Under data protection laws modelled on the EU's GDPR, is the warehouse still personal data?
2. A hospital releases a 'de-identified' file with each patient's age, sex, nationality and discharge date. What is the main re-identification risk?
3. A nurse in Abu Dhabi opens a famous footballer's record after he is admitted to another ward. She is not involved in his care. What is most likely to bring this to light?
4. Ransomware locks a hospital's EHR for nine days. Which preparation does most to protect patients during those nine days?
5. Five hospitals in Kenya want to study treatment outcomes together. Kenya's Data Protection Act treats health data as sensitive, so each hospital must share only what the study needs. Which approach fits best?
6. A Bengaluru biobank removes names and ID numbers from participants' genomes before sharing them with researchers abroad. Why is the risk of re-identification still high?

0 of 6 answered

Sources

  1. Sweeney L. Simple demographics often identify people uniquely. Carnegie Mellon University, Data Privacy Working Paper 3; 2000.
  2. Golle P. Revisiting the uniqueness of simple demographics in the US population. Proceedings of the 5th ACM Workshop on Privacy in the Electronic Society. 2006:77-80.
  3. Rocher L, Hendrickx JM, de Montjoye YA. Estimating the success of re-identifications in incomplete datasets using generative models. Nat Commun. 2019;10:3069.
  4. Gymrek M, McGuire AL, Golan D, Halperin E, Erlich Y. Identifying personal genomes by surname inference. Science. 2013;339(6117):321-324.
  5. US Department of Health and Human Services. Guidance regarding methods for de-identification of protected health information in accordance with the HIPAA Privacy Rule.
  6. UAE Federal Law No. 2 of 2019 on the use of information and communication technology in health fields.
  7. Al Tamimi & Company. Setting healthy boundaries: regulated exemptions to restrictions on the transfer of health data outside of the UAE.
  8. National Audit Office. Investigation: WannaCry cyber attack and the NHS. 2017.
  9. Becker's Hospital Review. Change Healthcare data breach toll reaches 192.7 million. 2025.
  10. Al Jazeera. Cyberattack on top Indian hospital highlights security risk. December 2022.
  11. Médias24. Attaque cybernétique contre la CNSS : la CNDP met en garde contre l'utilisation des données personnelles obtenues illégalement. April 2025.
  12. Morocco World News. CNSS says documents from cyberattack often false, inaccurate or truncated. April 2025.