8 min read
AI in Medical Practice: Using Patient Data Locally
Patient data falls under Article 9 GDPR and medical confidentiality. Which AI is realistic in a practice and where the line to a medical device lies.
Why is patient data a special case in legal terms?
As health data, patient data falls under Article 9 GDPR and thus belongs to the special categories of personal data whose processing is prohibited in principle unless an exception applies. In addition, medical confidentiality under Section 203 of the German Criminal Code (StGB) applies, and violating it is a criminal offense. This double layer exists in hardly any other industry.
Article 9 (1) GDPR places the processing of health data under a general prohibition. Only paragraph 2 opens exceptions, for practices above all point (h), which permits processing for the purposes of preventive medicine, medical diagnosis, the provision of care and treatment. However, this exception is subject to a condition: under paragraph 3, the data may only be processed by professionals who are subject to professional secrecy, or by other persons who are subject to an equivalent obligation of secrecy.
This condition is the real sticking point when using AI. A cloud provider that operates a practice AI is not subject to professional secrecy. It has to be actively bound. Since the 2017 reform, Section 203 (3) StGB has provided the category of other contributing persons for this purpose. This expressly includes service providers commissioned with the provision, installation and maintenance of IT systems. However, disclosure is only permitted insofar as it is necessary for making use of the service, and the physician must ensure that these persons are bound to secrecy. If you need the details of this construction, you will find them in the article on AI for professional secret holders under Section 203 StGB.
In practice, this means: every cloud AI that gets to see a doctor's letter requires a clean contractual chain of data processing agreement, declaration of obligation and, for providers outside the EU, a robust legal basis for the third-country transfer. If a subcontractor is placed in between, the chain grows further. If the practice processes locally, the act of disclosure does not occur in the first place, because no third party gains knowledge. The difference between local AI and cloud AI is not a gradual one here, but a categorical one in legal terms.
There is also a third level that many practices underestimate. Under Section 75b of the German Social Code, Book V (SGB V), the IT security guideline of the National Association of Statutory Health Insurance Physicians (Kassenärztliche Bundesvereinigung) applies, which according to the Federal Office for Information Security (BSI) is binding for around 99,000 medical and psychotherapy practices and has been applied in its current version since October 2025. It distinguishes three practice sizes, up to 5, up to 20 and from 21 employees, and imposes additional requirements on medium-sized and large practices regarding patch management, securing end devices and the use of cloud services. An AI system in the practice network is an IT system like any other and must fit into this concept.
Which use cases really benefit a practice today?
The benefit lies in documentation, communication and organization, not in diagnostics. According to Bitkom, which surveyed 616 physicians together with the Hartmannbund in May 2025, 15 percent of practices and medical care centers (MVZ) use AI, 12 percent to support diagnosis and 8 percent in administration. Administration is the area with the better ratio of effort to risk.
The doctor's letter is the most obvious case. Dictation instead of typing, after which the model structures the raw text into history, findings, assessment and procedure and takes care of the formalities. The physician reads and signs off. None of this is a medical decision; the model only phrases what has already been said. Exactly the same applies to medical history questionnaires that patients fill out before their appointment: a summary with a note on pre-existing conditions and long-term medication saves minutes in the consulting room, but does not replace a look at the file.
Phone and appointment requests are more interesting, because this is where the practice's biggest time drain sits. A model that transcribes incoming requests, sorts them into categories and separates prescription requests from acute complaints noticeably relieves the front desk. Legally, however, the case is not harmless, because as soon as someone mentions a symptom, a piece of health data is created. The same applies to billing and coding: suggestions for billing codes and diagnosis codes from the documentation text are tedious work that lends itself well to automation, but the underlying data is the most sensitive in the entire practice.
Interactive
May this go to the cloud?
Which use case do you want to handle with AI?
The last case is the reason why a clean data classification comes before the choice of tools. Duty rosters, material orders, hygiene plans, the practice website and job advertisements contain no patient data and may be edited in any cloud service. Everything beyond that belongs on hardware located in the practice. For typical practice sizes, a compact edge system is sufficient, because the models for transcription and text structuring are much smaller than what runs in data centers. The requirements for GDPR-compliant AI continue to apply unchanged; the record of processing activities, the deletion concept and purpose limitation do not disappear just because the computer is in the next room.
When does AI in a practice become a medical device?
As soon as software is intended to provide information used to make decisions for diagnostic or therapeutic purposes, Rule 11 of Annex VIII of the EU Medical Device Regulation (MDR) applies. Such software is at least Class IIa and requires a conformity assessment involving a notified body. Pure documentation, archiving and administration do not fall under it.
What matters is the intended purpose specified by the manufacturer, not the technical capability of the model. A language model that divides a dictated finding into paragraphs has no medical purpose. The same model with the instruction to suggest suspected diagnoses or assess medication risks does have one.
BackgroundMDR Rule 11 in detail
Rule 11 of Annex VIII of the Medical Device Regulation classifies software that provides information for diagnostic or therapeutic decisions as at least Class IIa. It is further graded by severity of harm: Class IIb if a wrong decision can cause a serious deterioration, Class III in case of danger to life or irreversible damage.
The guideline MDCG 2019-11 classifies this using a matrix of the criticality of the condition and the significance of the information provided. The Federal Institute for Drugs and Medical Devices (BfArM) decides on the legal status in individual cases upon application.
For a single practice, this means in all clarity: a self-installed local model is not a diagnostic system and may not be used as one. Anyone who asks an open-source model whether a lab value is of concern is effectively operating an unapproved medical device, without validation, without risk management, without liability protection. The 129th German Medical Assembly (Deutscher Ärztetag) in Leipzig in May 2025 drew exactly this line and resolved that the boundary between decision support and automated decision-making must not be crossed and that final responsibility for diagnostics, indication and therapy remains with the physician.
In regulatory terms, the EU AI Act is added, albeit with a postponement. As part of the Digital Omnibus, the high-risk obligations for AI embedded in products such as medical devices were postponed to August 2, 2028, and the obligations under Annex III to December 2, 2027. The Council gave its final approval on June 29, 2026. Not postponed were the transparency obligations under Article 50, which take effect on August 2, 2026. For a practice, this mainly means that AI-generated content and its use towards patients must be disclosed.
Conclusion
The accusation that the legal situation is merely a pretext for restraint has a kernel of truth. According to Bitkom, 72 percent of the physicians surveyed consider data protection rules an obstacle to innovation, and across all industries in Germany, the Federal Statistical Office names data protection concerns as a reason for 60 percent of non-users for the 2025 survey year. Much of this is perceived uncertainty, not an actual prohibition.
What matters is separating two questions that are constantly mixed up. The first concerns data protection law and can be solved with on-premise AI, because health data then does not leave the practice network. The second concerns medical device law and cannot be solved by local hardware, but only by the AI not making any diagnostic or therapeutic statement. Anyone who keeps both questions cleanly apart has an area in which work can be done today without an approval procedure: dictation, documentation, pre-sorting, billing preparation, organization.
The time pressure does not come from regulation, but from the transparency obligations from August 2026 and from the IT security guideline, which applies anyway. Anyone who determines now which data is processed where does the homework once and not three times.
This article is for general information purposes only and does not constitute legal advice. Expert advice should be obtained to assess the specific individual case, in particular regarding confidentiality and classification as a medical device.
Sources
- Art. 9 GDPR, processing of special categories of personal data
- dejure.org: Art. 9 GDPR full text
- Deutsches Ärzteblatt: Verschwiegenheitspflicht, Gesetzgeber regelt Einbindung externer Dienstleister
- BSI: Notes on the IT security guideline under Section 75b SGB V
- Bitkom: KI in fast jeder siebten Praxis und vielen Kliniken im Einsatz
- German Medical Association: Ärztetag setzt Leitplanken für Künstliche Intelligenz
- German Medical Association: Resolutions of the 129th German Medical Assembly
- BfArM: Legal status, classification of medical devices
- VDE: Classification of medical devices under the MDR, Rule 11 for software
- Johner Institut: MDR Rule 11 and MDCG 2019-11
- Federal Statistical Office: Use of artificial intelligence in companies