Hospital AI DLP: what to check before patient records go into AI
· DataMint · 10 min read
Five in the afternoon, after outpatient clinic. There are three return referral letters to write and four summaries for patients discharged tomorrow. Copy the progress notes, paste them into a generative AI window, and it would be done in no time. The scene is imagined, but anyone who works in a hospital has probably pictured it at least once. The hospital AI privacy problem starts with exactly this one paste.
The conclusion first. Putting medical records into outside generative AI as they are brings in both the Medical Service Act and the Personal Information Protection Act, so it is hard to recommend as is. That does not mean giving up on AI. Put in place a mechanism that filters out information identifying the patient before it is sent, that is, a hospital AI DLP (data loss prevention for generative AI), divide what the machine masks from what a person judges, and there is a lot AI can be used for.
This post is about Korea. It goes through the provisions Korea's Medical Service Act sets for medical records in their own words, then the places where hospitals use AI, the identification risk that remains after names are removed, and the features to require of a medical AI security tool. Government guidance common to public agencies and hospitals, and five kinds of information to watch, are covered separately in Generative AI in public agencies and hospitals: 5 kinds of personal data to watch.
Three things the Medical Service Act sets first: no divulging, restricted access to records, protection of electronic medical records
Hospitals have to look at the Medical Service Act (in Korean) before the Personal Information Protection Act. Three provisions touch medical records directly.
- Article 19 (Prohibition of Divulging Information): except where statutes specifically provide otherwise, medical personnel and employees of medical institutions may not divulge or publish another person's information learned while doing medical treatment or nursing, issuing medical certificates, providing access to or copies of medical records, or preparing, keeping and managing electronic medical records.
- Article 21, paragraph 2 (Restricted Access to Records): no one other than the patient may be allowed to see records about the patient, be given copies, or otherwise be able to check their content. The exceptions, such as requests by family members or representatives and health insurance review, are listed one by one in paragraph 3.
- Article 23, paragraph 3 (Electronic Medical Records): no one may, without a legitimate reason, snoop on, leak, alter or damage the personal information stored in electronic medical records.
There are penalties too. Article 88 provides imprisonment of up to three years or a fine of up to 30 million won for violating Article 19 and Article 21, paragraph 2, and adds that prosecution for these two provisions can be brought only upon a complaint. Violations of Article 23, paragraph 3 are treated more heavily under Article 87-2.
The Personal Information Protection Act (PIPA, in Korean) comes on top of that. Information about health is sensitive information under Article 23, and Article 18 of the Enforcement Decree also makes genetic information obtained from genetic testing sensitive information. Paragraph 2 of the same Article 23 requires the measures needed to secure safety so that sensitive information is not leaked when it is processed. Medical records are information handled on a legal basis, but with that comes the responsibility to keep it from leaking while it is handled.
This post does not decide whether pasting into an AI input box counts as divulging or as giving access. The assessment can differ with how the service stores and uses input and what contract the hospital has. But the three provisions point the same way: do not let the content of patient records go anywhere other people outside the hospital can see. It is the same direction as the prior adequacy review (in Korean) that Korea's Personal Information Protection Commission (PIPC) issued in October 2024 for an app that drafts medical records from consultation conversations, where it found that consumer terms, under which input may be used for the AI company's purposes, do not meet the requirements.
Where hospitals use generative AI: paperwork, summaries, notices
AI is used in more places in a hospital than you might think. Not only in consultation rooms, but in the patient administration office, by insurance staff and at customer service desks. The problem is that what you want to put in and what actually goes in are different.
| Task | What you want to put into AI | What easily goes along |
|---|---|---|
| Discharge summaries, progress write-ups | Progress notes, test results | Name, registration number, admission date, diagnosis |
| Referral letters and return letters | Reason for referral, sentences about medical history | Name, date of birth, contact details |
| Insurance and submission paperwork inquiries | Scans of medical certificates and receipts | Resident registration number, address, diagnosis |
| Patient notices and text messages | Precautions before and after a procedure | Almost nothing for a general notice (the safe side) |
| Complaints and grievance handling | Complaint text, call notes | Patient and guardian names, contact details, the story |
General precautions before and after a procedure or a waiting notice by text message involve no specific patient, so they are good work for AI. The risk grows in summaries and paperwork. Copy the whole progress note screen and the patient name and registration number at the top go along. Medical certificates and receipts usually circulate as scans or screenshots, so they go up less noticeably than pasted text. How attachments go out is covered in detail in What to check before uploading files to AI.
Using AI on medical records: why the patient shows even after the name is removed
We often hear "can't we just delete the name and put it in?" Article 2 of the Personal Information Protection Act defines information as personal information even when it alone does not tell you who someone is, if it can easily be combined with other information to identify them. Medical records are documents where this combination is especially easy. Take a made-up fragment of a progress note.
# Progress note (made-up example)
Patient Hong Gil-dong (M/45)
Reg. no. 00123456
2026-11-03 Visited the emergency room
Admitted Ward 7, Room 712
Diagnosis (rare disease name)
Guardian Kim Young-hee 010-1234-5678
Address 123 Teheran-ro, Gangnam-gu, Seoul| How to handle it | What falls here |
|---|---|
| Find and mask | Name, resident registration number, phone number, address, date of birth |
| Test in advance | Registration numbers whose format differs by hospital, internal codes |
| Leave to a person's judgment | The combination of a rare diagnosis, admission date, ward and room |
Even with the name masked, overlapping dates, places and diagnoses narrow down who it is. That is why the three have to be handled separately.
- Registration number: inside the hospital it is a more precise identifier than the name. Its format differs by hospital, so general lists of personal data often miss it.
- Dates and places: anyone who worked that day knows who "visited the emergency room on November 3, Ward 7, Room 712" is.
- A rare diagnosis with age and region: the fewer patients a disease has, the fewer conditions it takes to leave one person.
- People other than the patient: guardian names and contact details, and the names of the medical staff in charge, are mixed into the sentences too.
Compare this with how the government handles medical data for research and you see the gap. When Korea's Ministry of Health and Welfare announced the revision of the Guidelines for Using Health and Medical Data (in Korean) in January 2024, it advised that free-text data such as medical records be converted into structured data and then pseudonymized by deleting or replacing identifying information, and that even for research purposes access rights be controlled and the data be used in a closed environment. The same sentences that go through this many steps before release for research can, on a busy night, be pasted as is into an AI window on a personal account. How asterisks, pseudonyms and placeholders differ is summarized in Is it okay to put personal data into ChatGPT if you mask it?
Four things to require of a hospital AI DLP: find, mask, block, record
Warning banners and training are needed, but on an afternoon with three return letters and four discharge summaries waiting, human attention wears out first. So a mechanism is needed where a machine filters once more at the point of input. An AI DLP suited to a hospital should do at least these four things. How AI DLP differs from traditional DLP is covered in What is AI DLP?
Find: even names in sentences with no field
Names in medical records are not only in the "Name:" field. They are mixed into sentences, as in "spoke on the phone with the guardian, Ms. Kim Young-hee." The text in scanned documents and attachments also has to be found.
Mask: keep the sentences, change only the people
Block everything and you cannot even summarize. Names and numbers have to be replaced with placeholders such as [Name_1], leaving the rest of the sentences, for the AI to do its work. The same person has to become the same placeholder so that "who did what" does not get scrambled in the summary.
Block: what must not go out at all
Some text is better not sent even when masked. Text containing words the hospital specifies, such as internal system names or the header of a particular document form, and files of specified types should not be uploadable at all.
Record: keep records without the original
Who sent how many items to which AI and when has to be kept so that inspections can be answered. But if the original is stored in the record, the record becomes one more copy of medical information. A hospital AI DLP's records should keep only counts and types.
How DataMint Cover masks medical records before they go to AI
Our DataMint Cover is an AI DLP that does these four things. A Chrome and Edge browser extension finds and masks 22 types of personal data at the moment of pasting, dragging and dropping, or sending on the web screens of 27 AI services, including ChatGPT, Claude and Gemini. Detection is done inside the browser on the employee's PC with rules and an AI model dedicated to personal data, and it works without an internet connection. The Cover gateway, placed on the internal network, masks AI apps outside the browser, such as the Claude desktop app, and API calls with the same policy.
| When | Feature | What changes |
|---|---|---|
| You paste progress notes and ask for a discharge summary | Finds 22 types of personal data and replaces them with placeholders such as [Name_1]. The same value gets the same placeholder | The summary works as before and names and numbers do not leave the hospital. Placeholders in the answer are shown as the original values only in that tab |
| You upload a scan of a medical certificate or consent form | Attachment check (Word, Excel, PowerPoint, HWPX and CSV by the extension and the gateway; PDF, older HWP and scanned PDFs by the gateway) | Personal data in the file is found and masked before upload. File names and types the hospital specifies cannot be uploaded |
| You put a screenshot into a desktop AI app | The gateway reads text in images (off by default) | When turned on, it blacks out the places holding personal data in the image before sending |
| A document must not be pasted with its form | Confidential keyword blocking | Text containing words the hospital specified is not sent. The matched words are not sent to the server, only the count is kept |
| An inspection or audit asks about usage | Dashboard, reports by period and CSV, and admin records that show tampering | Submit the status by department, site and type without the original text |


Deployment is chosen to fit the hospital environment. The self-hosted edition places the admin server on the hospital's internal network and works on closed networks with no internet. It can be installed on every staff PC at once through Chrome and Edge policy, with settings such as the ban on sending originals locked. The admin server keeps only when, on which site, which types and how many items were handled. The original input and the values found are not stored.
Two routes outside AI: test databases and medical information lookup screens
AI is not the only route through which patient data leaks. If production patient data sits as is in the development and test databases used to change hospital systems, DataMint Core creates test data without real patient data and also finds and replaces names and addresses inside memos. When someone with legitimate access looks up far more patients than usual on a business screen, DataMint Scope detects it and raises an alert. Why this route is hard to see is explained in the post on bulk queries through business screens.
Summary: five things to check before adopting a hospital AI DLP
- Have you linked Article 19, Article 21 paragraph 2 and Article 23 paragraph 3 of the Medical Service Act and Article 23 of the Personal Information Protection Act to the hospital's AI use guideline?
- Have you separated tasks where the patient goes along, such as summaries and paperwork, from safe tasks such as notices?
- Have you decided how to handle registration numbers, dates, wards and guardian names, not only names?
- Does the scope of checking include scans, screenshots and desktop AI apps?
- Are usage records kept without the original text?
If you are comparing solutions, read 12 things to check when choosing an AI DLP solution as well. You can look around the Cover admin dashboard with made-up data and no login on the demo screen.
Hospital AI privacy: frequently asked questions
Is putting medical records into ChatGPT a violation of the Medical Service Act?
This post does not make that judgment. The relevant provisions are Article 19 (prohibition of divulging information) and Article 21, paragraph 2 (restricted access to records) of the Medical Service Act, and the assessment can differ with the service's storage and use terms and the hospital's contract, so check with your legal department. What is certain is that the more information identifying the patient you mask before putting it in, the less there is to argue about.
Isn't it enough to delete the patient's name?
Often it is not. The Personal Information Protection Act treats information that can easily be combined with other information to identify a person as personal information too. When a registration number, visit date, ward and room, and a rare diagnosis are together, who it is can be narrowed down without a name.
Can AI DLP be installed on a hospital internal network with no internet?
With the self-hosted edition, Cover places the admin server on the hospital's internal network, and extension distribution and updates also run from the internal server. The AI that finds names and addresses is inside the extension, so it works without the internet.
- #hospital AI DLP
- #hospital AI privacy
- #medical AI security
- #medical records and AI
- #Korea Medical Service Act
- #sensitive information
- #generative AI security