Regulations

GDPR and health data in a small clinic in Spain: what you need to know

What health data is, when you need consent and when you don’t, how long to keep clinical records, what to sign with your suppliers and what to do if something goes wrong.

The Vocenda team · Published on · 7 min read

In short

Health data is a special category under the GDPR (Article 9): in principle, processing it is prohibited, except in specific cases. A healthcare clinic can process it to treat its patients without asking for GDPR consent, because Article 9.2.h and Spain’s Ley 41/2002 (the patient autonomy act) cover it; that law also requires keeping clinical records for at least five years from the discharge of each episode of care. A non-healthcare centre, such as a beauty centre, normally needs the client’s explicit consent to keep health data.

What health data is and why it gets extra protection

Health data is any data that reveals something about a person’s physical or mental health, including the healthcare they receive. That is how Article 4.15 of the General Data Protection Regulation (GDPR) defines it. In a small practice, health data includes, for example:

  • The reason for the visit, the diagnosis and progress notes.
  • Weight, measurements, allergies, intolerances, medication or pregnancy.
  • Reports, tests, clinical photos or treatment plans.
  • Even the simple fact of being a patient of a psychologist or a physiotherapy clinic can reveal health information.

Article 9.1 of the GDPR prohibits processing this data unless one of the exceptions in Article 9.2 applies. That is why they are called “special categories”: they need a specific legal basis and more security measures than a phone number or an email address.

Fines for breaching the processing principles, the conditions for consent or Article 9 can reach €20 million or 4 % of annual turnover (Article 83.5 of the GDPR). These are maximums: the amount depends on each case. What matters is that the AEPD (Spanish Data Protection Agency) pays special attention to this data.

If you are a healthcare centre or practitioner, you don’t need to ask for GDPR consent to process the health data needed to treat the patient. If your centre is not a healthcare one, you normally do.

Healthcare centre or practitioner Non-healthcare centre
Examples Physiotherapy, nutrition, podiatry, clinical psychology, speech therapy, aesthetic medicine Non-medical beauty, hairdressing, wellness massage, tattooing
Basis for health data from care Article 9.2.h of the GDPR (healthcare), with the professional secrecy of 9.3 and Ley 41/2002 Normally, explicit consent (Article 9.2.a of the GDPR)
Is a clinical record mandatory? Yes (Ley 41/2002) Not under Ley 41/2002
Can the client withdraw consent and force deletion? Not for the clinical record, which must be kept Yes: if they withdraw it, you stop processing that data

Why this is so:

  • Article 9.2.h of the GDPR allows health data to be processed when it is necessary for diagnosis or healthcare, and 9.3 requires it to be done by a professional bound by professional secrecy or someone under their responsibility.
  • Article 9.2 of the LOPDGDD (Organic Law 3/2018, Spain’s data protection act) adds that in Spain this processing must be covered by a rule with the status of law. For healthcare, that rule is, among others, Ley 41/2002 on patient autonomy.

In a healthcare clinic, asking for “GDPR consent” for the clinical record is misleading: the patient may think that, if they withdraw it, you can delete it, and that isn’t the case. The right thing is to inform the patient (Article 13 of the GDPR) of who processes their data, why, on what basis and for how long.

You do need consent, even in a healthcare clinic, for uses that are not care: advertising, photos on social media or cases for training with identifiable data. And don’t confuse all this with informed consent for a treatment, which is something else: we explain it in informed consent and digital signatures.

If your centre is on the borderline (for example, a beauty centre with a medical side), ask your data protection adviser: the basis depends on who provides each service.

Clinical records: how long they must be kept

Ley 41/2002 requires clinical documentation to be kept for at least five years from the date of discharge of each episode of care (Article 17.1). It is a minimum: the law speaks of “the time appropriate to each case”. Also check your autonomous community’s healthcare rules with your adviser.

What the law says for a small centre:

  • Healthcare centres must keep clinical documentation “in conditions that guarantee its correct maintenance and security”, even if not in the original format (Article 17.1).
  • Practitioners who work on their own are responsible for managing and keeping the documentation they produce (Article 17.5).
  • Clinical documentation is also kept for legal purposes (Article 17.2).

During that period, if a patient asks you to delete their data, the right to erasure does not apply to what you must keep by legal obligation (Article 17.3.b of the GDPR). Instead, the data is blocked: it is set aside and only used to deal with claims or requests from courts and authorities (Article 32 of the LOPDGDD).

And a non-healthcare centre? It is not required to keep clinical records under Ley 41/2002. The health data it collects (an allergy to a hair dye, a pregnancy) is only kept for as long as it is needed for the purpose it was collected for (Article 5.1.e of the GDPR). Set a period with your adviser and stick to it.

The basic obligations of a small clinic

With health data, even the smallest practice has obligations an ordinary shop doesn’t. The main ones:

  1. Record of processing activities. Article 30.5 of the GDPR exempts businesses with fewer than 250 people, but not when they process special categories of data. A clinic has to keep one.
  2. Information for the patient (Article 13 of the GDPR): who you are, what you use their data for, the legal basis, how long you keep it and how to exercise their rights.
  3. Data protection officer. The LOPDGDD (Article 34.1.l) requires one for healthcare centres obliged to keep clinical records, but exempts healthcare professionals who work on their own. If there are several of you, ask your adviser whether it applies.
  4. Security measures appropriate to the risk: access by user, permissions by role, backups, encryption.
  5. A contract with each data processor (we look at this next).
  6. Dealing with the rights of access, rectification, erasure, objection, restriction and portability within the legal deadline.

Suppliers who see your data: the data processor

Any supplier that processes your patients’ data on your behalf is a data processor, and you need a contract with them. Examples: your cloud management software, your accountant’s office if it sees patient data, the backup service or the email provider.

Article 28.3 of the GDPR requires that contract to set out the subject, duration, nature and purpose of the processing, the type of data and each party’s obligations. Among other things, the processor must:

  • Process the data only on your documented instructions.
  • Guarantee the confidentiality of whoever processes it.
  • Apply appropriate security measures.
  • Tell you about breaches without undue delay.
  • Return or delete the data when the service ends, as you choose.

Also ask where the servers are. If the data leaves the European Economic Area, additional safeguards are needed.

Data breaches: what to do in the first 72 hours

If patient data is lost, stolen or accessed without permission, you have to notify the AEPD within 72 hours at most, unless it is unlikely to pose a risk to people (Article 33 of the GDPR). With health data, the risk is almost never unlikely.

Real examples in a small practice:

  • An unencrypted laptop or mobile with patient records is lost.
  • You send a report to the wrong patient by mistake.
  • A former employee keeps logging in with her user account.

What to do, in order:

  1. Contain the breach: change passwords, block access, recall the message if possible.
  2. Document what happened, which data and how many people are affected. Article 33.5 requires every breach to be documented, including those you don’t notify.
  3. Notify the AEPD through its online portal within 72 hours. If you are missing information, notify anyway and add to it later.
  4. Tell the affected patients if there is a high risk to them, in clear language (Article 34 of the GDPR).

The AEPD has a specific guide to managing and notifying breaches. If it happens to you, call your adviser too.

How Vocenda helps you with health data

Vocenda keeps the data in a data centre in Madrid, with the clinical record encrypted and a separate database for each business. It doesn’t replace your data protection adviser, but it gives you specific tools:

  • Encrypted clinical record: only the practitioners who treat that patient see it; neither reception nor administrators do. It can’t be edited or deleted (it is corrected with new notes) and every access is logged.
  • Health data never leaves through external calendars, the API, webhooks, SMS or emails. Invoices use neutral descriptions such as “Professional healthcare services”.
  • Consents with boxes that are never pre-ticked, signature on a tablet or by email, a sealed PDF and a record of withdrawal.
  • Privacy notice for your clients, shown when they book online.
  • Legal representative for minors.
  • Export of a client’s data to deal with their right of access, and a full export of all your data, always included.
  • Data processing agreement between your business and Vocenda.
  • Records are archived without deletion, so you can meet the retention periods.

All of this comes in the Base plan (€25/month plus VAT), with no lock-in contract. If you are choosing software, read how to choose management software for your clinic. And for your sector: software for psychologists, software for dietitians and nutritionists or software for beauty centres.

This article summarises the rules with official sources, but it is not legal advice. For your case, ask your data protection adviser.

Frequently asked questions

Do I need the patient’s consent to keep their clinical record?

If you are a healthcare centre or practitioner, no: the processing is covered by Article 9.2.h of the GDPR and Ley 41/2002, which requires you to keep clinical records. What you must do is inform the patient (Article 13 of the GDPR). Informed consent for a treatment is something else and is still needed when the law requires it.

How many years must clinical records be kept in Spain?

At least five years from the date of discharge of each episode of care, according to Article 17.1 of Ley 41/2002. It is a minimum: the law asks for them to be kept for the time appropriate to each case. Check your autonomous community’s rules with your adviser.

Can a beauty centre keep its clients’ health data?

Yes, if it needs it (for example, allergies or pregnancy), but as it is not a healthcare centre it normally needs the client’s explicit consent (Article 9.2.a of the GDPR) and can only keep the data while it is needed. Check your case with an adviser.

What happens if a patient asks me to delete their data?

What you must keep by law, such as the clinical record within its period, is not deleted (Article 17.3.b of the GDPR): it is blocked and only used to deal with claims or requests (Article 32 of the LOPDGDD). The rest you can delete.

How soon must I tell the AEPD about a data breach?

Within 72 hours at most of becoming aware of it, unless it is unlikely to pose a risk (Article 33 of the GDPR). If the risk is high, you also have to tell the affected patients.

Where does Vocenda keep my patients’ data?

In a data centre in Madrid, within the European Union, with a separate database for each business. The clinical record is encrypted and only the practitioners who treat each patient see it.

You may also be interested in

We’ll show you how your patients’ data is protected.

Write to us in the chat or at hola@vocenda.com with the name of your business and a phone number, and we'll prepare a demo with your case. No lock-in contract: if it doesn't suit you, you leave with your data.