Skip to content
Detecti.ai

← All articles

· 5 min · by Gardien Security

Health data and generative AI in clinics and labs: what to allow, what to forbid and how to prove it to the DPO

The front desk of a clinic gets an ordinary task: tell a patient the exam result is in and explain what to do before the follow-up visit. The receptionist copies the relevant part of the record, pastes it into ChatGPT and asks for "a kind message to the patient". Thirty seconds later the message is ready, and the patient's name, taxpayer ID and diagnosis have also left the clinic.

Nobody planned this. There was no bad intent. That is what makes the problem hard: there is no malware and no intrusion, just a person doing her job well with the tool that was within reach.

Why health data is different

The LGPD, the Brazilian data protection law (Law 13,709/2018), separates ordinary personal data from sensitive personal data. Article 5, II, lists what counts as sensitive, and health data is there. For a clinic or a lab, almost everything that passes through the front desk, billing and the consulting room is sensitive by definition.

That changes three things:

Then there is article 48: if an incident may cause relevant risk or harm to the data subject, the clinic must notify the ANPD, the Brazilian data protection authority, and the patient. ANPD Resolution 15/2024 set the deadline at three business days. A patient record pasted into a personal account can fall under that rule, and the clinic will only know if it has a way to find out.

An illustrative example

Take Clínica Aurora, a fictitious mid-sized clinic with twelve computers, a front desk, a billing team and three consulting rooms. In a typical month, three uses happen there:

  1. The front desk drafts confirmation and guidance messages for patients, sometimes pasting parts of the record.
  2. Billing pastes a spreadsheet of insurance claims, with each patient's CPF (the Brazilian individual taxpayer ID) and procedure codes, to organize the invoices.
  3. A doctor uses AI to summarize a scientific paper, with no patient data at all.

To the clinic's router, all three are traffic to the same domain. The third is harmless and useful. The first two are processing of sensitive data outside any legal basis.

What a clinic can allow

Banning AI without visibility pushes the use to the personal phone, where the clinic sees nothing. The answer is to classify.

A clinic usually lands on three levels:

ClassificationWhat it meansExample
ApprovedCorporate account and contract; text with no patient dataSummarizing a paper, reviewing an internal notice
ToleratedUse allowed, with a warning when sensitive data shows upDrafting a generic guidance message
Not approvedPersonal account, vendor without a contractAny use involving a patient record

The rule that makes the difference is the data category, not the tool. "Health data" and "CPF" inside the window of an AI tool are the trigger. An agent on the endpoint can apply three modes to the paste: observe (record only), warn (the person sees what was found and decides, with the decision recorded) and block (the paste does not go through). For a clinic, "warn" on the health data category is usually the right starting point: it educates without stopping the work, and it creates a record.

What it must never allow

Two things have no gray area:

The evidence the DPO needs

The clinic's DPO asks two questions: "how do you know?" and "what did the monitoring tool see of the patient record?".

The right answer to the second is: nothing. Classification happens on the machine itself. What goes up to the server is tool, machine, person, event type, categories, counts and size. What does not go up is the pasted text, the prompt, the file's content and folder, the screen image. The attached file's name goes up by default, and a clinic should consider turning it off, because a name like "lab-report-maria.pdf" is already patient data. The only way content reaches the monitoring server is evidence retention, which ships turned off and, if the clinic turns it on, is encrypted with a key only the clinic holds.

What remains is what the DPO can use:

How Detecti.ai does this

Detecti.ai is a Windows agent, installed as a service through the IT provider's RMM, that classifies pastes and attachments on the machine itself and sends up only categories and counts. "Health data" is a built-in category, and warn or block applies only inside the AI tool's window. What it never sees is written down in /docs/privacy, written for the DPO.

Read next