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:
- The legal basis for processing is narrower, and "I just wanted to draft a message" is not one of them.
- Article 46 requires security measures able to protect the data from unauthorized access. A personal AI account at a vendor the clinic has no contract with is unauthorized access.
- If the tool stores the data on servers outside Brazil, articles 33 to 36 on international transfer apply.
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:
- The front desk drafts confirmation and guidance messages for patients, sometimes pasting parts of the record.
- Billing pastes a spreadsheet of insurance claims, with each patient's CPF (the Brazilian individual taxpayer ID) and procedure codes, to organize the invoices.
- 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:
| Classification | What it means | Example |
|---|---|---|
| Approved | Corporate account and contract; text with no patient data | Summarizing a paper, reviewing an internal notice |
| Tolerated | Use allowed, with a warning when sensitive data shows up | Drafting a generic guidance message |
| Not approved | Personal account, vendor without a contract | Any 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:
- A patient record in a personal account. No legal basis, no contract, no control over retention. That goes to "block".
- An exam attached as a file. A PDF report uploaded to an AI tool carries the whole document. An agent detects the file being opened by the AI process and alerts immediately. From outside the browser it does not block the upload, because that would require a kernel driver; blocking requires an extension inside the browser that holds the file before the site receives it. Without one, the alert has to reach someone who acts the same day.
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:
- One record per event, with date, tool, category and count, which meets article 37 (record of processing operations).
- A monthly PDF report with usage over time, tools, data types and a final section saying what the report does not contain.
- An alert with an owner, a state and notes for each pasted record, the incident response trail for article 48.
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
- Who trains models on what you paste: how to read an AI vendor's privacy policySeptember 24, 2026 · 4 min
- Deploy the agent with your RMM in an afternoon: a walkthrough for MSPsSeptember 22, 2026 · 5 min
- Coverage: why "zero events" does not mean zeroSeptember 15, 2026 · 5 min