English edition

Editorial.

Editorial.

Editorial.

Technology and business for people who decide.

Technology and business for people who decide.

Health

Electronic medical records and the LGPD: what clinics and healthtechs need to watch

Electronic medical records and the LGPD: what clinics and healthtechs need to watch

Electronic medical records and the LGPD: what clinics and healthtechs need to watch

Health data are sensitive data: a minimum 20-year retention period, legal bases, security, a data-protection officer, and a deadline to report incidents.

Health data are sensitive data: a minimum 20-year retention period, legal bases, security, a data-protection officer, and a deadline to report incidents.

By

Editorial staff

·

December 2, 2026

The medical record gathers what is most delicate about a person: diagnoses, tests, treatments, family history. When it moves from paper to a system, two laws meet: Law No. 13.787/2018, which deals with the digitization and computerized systems of medical records, and the General Data Protection Law (LGPD, Law No. 13.709/2018). For clinics, offices, labs, and healthtechs, understanding these two laws together is the starting point for choosing and operating a system securely. This article is informational and does not replace legal advice.

Health data are sensitive data

The LGPD defines sensitive personal data as, among other things, data referring to health, sex life, genetic data, or biometric data, when tied to a natural person (article 5, II). For these data, processing may occur only in the situations in article 11:

  • with the consent of the data subject or their legal representative, given specifically and highlighted, for specific purposes; or

  • without consent, when it is indispensable for situations such as compliance with a legal or regulatory obligation, the regular exercise of rights, protection of life or physical integrity, and the safeguarding of health, exclusively in a procedure carried out by health professionals, health services, or a sanitary authority.

Which hypothesis applies to each processing activity depends on the concrete case, and the decision should be documented. The LGPD also requires the processing agent to keep a record of personal-data processing operations (article 37).

What Law 13.787/2018 defines for the digital medical record

The law establishes that the digitization and use of computerized systems for the custody, storage, and handling of medical records are governed by it and by the LGPD. The central points are:

  • Digitization with guarantees: the process must ensure the integrity, authenticity, and confidentiality of the digital document, reproduce all of the information from the originals, and use an ICP-Brasil digital certificate or another legally accepted standard.

  • Destruction of the paper originals: it may happen only after digitization, observing the law’s requirements, and after a mandatory review by a standing committee for the review of medical records and evaluation of documents, created specifically for that purpose.

  • Secure storage: the storage media must protect the documents against unauthorized access, use, alteration, reproduction, and destruction. Digitized documents must be controlled by a specialized electronic document-management system.

  • Evidentiary value: a document digitized in accordance with the law and its regulations has the same evidentiary value as the original.

  • Minimum 20-year retention: after the minimum period of 20 years from the last entry, paper and digitized medical records may be destroyed. The rule applies to all medical records, including those that are born electronic. Different periods may be set in regulation, and, as an alternative to destruction, the record may be returned to the patient.

  • Careful destruction: the process must protect the patient’s privacy and the secrecy of the information, and the final disposition must be recorded according to regulation.

Security, incidents, and responsibility

The LGPD requires processing agents to adopt security measures, technical and administrative, able to protect personal data from unauthorized access and from accidental or unlawful situations of destruction, loss, alteration, communication, or improper processing (article 46).

When a security incident occurs that may cause relevant risk or harm to data subjects, the controller must notify the National Data Protection Authority (ANPD) and the data subject (article 48). The ANPD Security-Incident Communication Regulation (Resolution CD/ANPD No. 15/2024) details how:

  • the deadline to notify the ANPD is three business days, counted from the moment the controller becomes aware that the incident affected personal data, except where a deadline is provided in specific legislation;

  • the involvement of sensitive personal data is one of the criteria that characterize relevant risk or harm, when the incident may significantly affect the fundamental interests and rights of the data subjects;

  • the notice is given through an electronic form made available by the ANPD.

In the routine of a clinic or a healthtech, that means having a written incident-response plan, with defined responsibilities, before you need it.

Sharing of health data

The LGPD is especially restrictive about the sharing of health data. Article 11, paragraph 4, forbids the communication or shared use of health data among controllers with the aim of obtaining an economic advantage, except in the situations related to the provision of health services, pharmaceutical assistance, and health care (including auxiliary diagnostic and therapy services), in the interest of the data subjects, and to allow data portability when requested by the data subject or the financial and administrative transactions resulting from those services.

Paragraph 5 adds a rule for the supplementary-health sector: private health-plan operators are forbidden to process health data for risk selection in the contracting of any modality, as well as in the contracting and exclusion of beneficiaries.

Controller, processor, and data-protection officer

The LGPD distinguishes roles. The controller (controlador) is the one who makes the decisions about the processing; the processor (operador) processes the data on behalf of the controller; the data-protection officer (encarregado) is the person designated to act as a communication channel among the controller, the data subjects, and the ANPD. The controller must designate an officer (article 41). According to the ANPD regulation on the officer (Resolution CD/ANPD No. 18/2024), the designation must be made by a formal act, and the contact information must be published in a way that allows data subjects to exercise their rights and the ANPD to send communications.

In a common scenario, the clinic defines the purposes of the use of the data and the medical-record system vendor processes them on its behalf. But the classification of each company depends on the contract and the concrete case, and should be analyzed with legal guidance.

The patient’s rights as a data subject

Article 18 of the LGPD guarantees the data subject, at any time and upon request to the controller, rights such as confirmation that processing exists, access to the data, correction of incomplete or outdated data, portability, and information about with whom the data have been shared. The law also provides that the data be deleted after the end of the processing, but authorizes retention, among other purposes, for the fulfillment of a legal or regulatory obligation by the controller (article 16). That helps explain why destruction of a medical record usually follows the retention rules of Law 13.787, and not only the patient’s request. If there is doubt about a specific request, it is worth seeking legal guidance.

What to look for in an electronic medical-record system

  • Signature and authenticity: does the system use ICP-Brasil certification or another legally accepted standard, as Law 13.787 provides for digitization?

  • Access control and logs: is it possible to define who accesses what and to keep a record of processing operations (article 37 of the LGPD)?

  • Protection against alteration and loss: how does the system protect the data against unauthorized access, alteration, reproduction, and destruction?

  • Retention and destruction: how are the minimum 20 years from the last entry complied with, and how is destruction carried out and recorded?

  • Exit of the data: what happens to the medical records if the contract with the vendor ends? Is it possible to export them and deliver them to the patient when requested?

  • Incidents: is there a response plan and a flow to meet the three-business-day deadline to notify the ANPD, when it applies?

  • The contract with the vendor: are the roles of controller and processor, the security measures, and the responsibilities clear?

  • Data-protection officer: is there a designated person and a contact channel published for patients?

Frequently asked questions

How long must a medical record be kept?

Law 13.787/2018 provides for a minimum period of 20 years from the last entry, before the record may be destroyed. Different periods may be set in regulation, according to the potential for use in studies and research and for legal and evidentiary purposes.

Does the LGPD forbid processing health data without consent?

No. Article 11 allows processing without consent in some situations, among them the safeguarding of health, exclusively in a procedure carried out by health professionals, health services, or a sanitary authority. Outside those situations, specific, highlighted consent is required.

Is the system vendor also responsible for protecting the data?

The LGPD provides for obligations for both the controller and the processor, among them the adoption of security measures (article 46). The allocation of responsibilities in each case depends on the contract and on legal analysis.

Notice

This article is for information only and does not replace legal guidance, reading the rules, or guidance from the ANPD and the professional boards.

Sources

  • Presidência da República, Lei nº 13.787, de 27 de dezembro de 2018: https://www.planalto.gov.br/ccivil_03/_ato2015-2018/2018/lei/L13787.htm

  • Presidência da República, Lei nº 13.709, de 14 de agosto de 2018 (LGPD), texto compilado: https://www.planalto.gov.br/ccivil_03/_ato2015-2018/2018/lei/l13709compilado.htm

  • ANPD, Resolução CD/ANPD nº 15, de 24 de abril de 2024 (Regulamento de Comunicação de Incidente de Segurança), Diário Oficial da União: https://www.in.gov.br/en/web/dou/-/resolucao-cd/anpd-n-15-de-24-de-abril-de-2024-556243024

  • ANPD, “Comunicação de Incidente de Segurança” (perguntas e respostas): https://www.gov.br/anpd/pt-br/canais_atendimento/agente-de-tratamento/comunicado-de-incidente-de-seguranca-cis

  • ANPD, Resolução CD/ANPD nº 18, de 16 de julho de 2024 (Regulamento sobre a atuação do encarregado): https://bibliotecadigital.mj.gov.br/bitstream/1/13151/2/RES_ANPD_2024_18.pdf