All R&D projects

MyData Safe Medication CDSSMOHW R&D · 2023-2025

A CDSS that screens polypharmacy risk from the records a patient downloads and writes a medication guide for that patient

This project ran from February 2023 to December 2025 under the Ministry of Health and Welfare R&D program for MyData technologies. Its strengths are patient-specific polypharmacy analysis and a medication guide tailored to the drugs a patient actually takes. The patient downloads their own diagnosis, prescription, laboratory and health-checkup records from the ‘My Health Record’ app on the Health Information Highway and uploads them to the SMART DUR CDSS at myadr.care. A rule engine computes drug interactions, potentially inappropriate medications for older adults, anticholinergic burden and STOPP criteria risks, and a multi-agent LLM writes the results into a guide the patient can read. A clinician reviews it, the report and safety card go to the patient app ‘Yagirang’, and the patient writes back what happened while taking the drugs. In year 3 we ran the field validation at Chungbuk National University Hospital, Kangbuk Samsung Hospital and NHIS Ilsan Hospital.

Period2023.2 - 2025.12
FunderMinistry of Health and Welfare · Research and Field Validation Program for Healthcare MyData Technologies
FundingKRW 1.5 billion
RolePrincipal Investigator (lead institution: Chungbuk National University Hospital)
Official project titleDevelopment and field validation of a MyData-based CDSS for safe medication use - focused on polypharmacy and drug allergy prevention
Participating institutionsKangbuk Samsung Hospital, NHIS Ilsan Hospital, Pusan National University Hospital, Hongik University, Huray Positive, ITEyes
Data linkageMyHealthWay (Health Information Highway) 'My Health Record' FHIR files
Year 3 validation sitesChungbuk National University Hospital, Kangbuk Samsung Hospital, NHIS Ilsan Hospital
Patient appYagirang (Android, distributed by Huray Positive)
Two CDSS tracksDrug allergy and adverse reaction prevention CDSS, polypharmacy reconciliation CDSS

30-second demo

30-second demo

The patient journey from consent to report

STEP 1Download my records from My Health RecordThe patient downloads their own medical records from the ‘My Health Record’ app on the Ministry of Health and Welfare Health Information Highway. Diagnoses, medication history, test history from tertiary hospitals and health-checkup history all arrive in a single JSON file.
STEP 2Upload to the SMART DUR CDSS at myadr.careThe file the patient brings goes into the SMART DUR CDSS at myadr.care. We start from the patient's own file and never touch the hospital EMR.
STEP 3Clinician reviewOn screen the clinician checks the baseline questionnaire, reviews and adds diagnoses, goes through the drugs the patient takes now and the adverse reaction history, and fills in whatever is missing.
STEP 4Four CDSS analysesDrug interaction analysis, current use of potentially inappropriate medications for older adults, anticholinergic burden with alternative drugs to consider, and screening for polypharmacy risk against the STOPP criteria. A rule engine does the computing.
STEP 5Generate the polypharmacy reconciliation guideWhat each current drug does, drugs that need special care, drugs to keep taking, combinations to watch when taken together, symptoms to look out for, and an overall summary with recommendations. A multi-agent LLM writes the draft and a clinician reviews it.
STEP 6An allergy report too, when there is a reaction historyPatients with a drug allergy or an adverse reaction history also get a Smart Allergy Report that sorts drug classes into contraindicated, caution and safe to take. A Q&A section gives them the words to use at the pharmacy and at other hospitals.
STEP 7Delivered through Yagirang, experience sent backThe approved report and safety card go to the patient app ‘Yagirang’. After taking the drugs, the patient writes down what happened and sends it back to the study team.

Outcomes at a glance

146rules
Screening rule entries built on STOPP/START v3
3types
Patient reports (polypharmacy reconciliation, smart allergy, personalized counseling)
40patients
SDAP single-site pilot (a separate study)
3sites
Validation sites

What we built

SMART DUR CDSS web app, myadr.care

SMART DUR CDSS web app, myadr.care

Uploading the My Health Record FHIR file the patient brings fills in the patient profile, and the clinician works through five tabs: baseline polypharmacy questionnaire, prescribed drugs, comorbidities, adverse drug reactions, and review and send. The prescribed drugs tab organizes the past year of medication by ATC code and shows days of supply next to medication adherence (PDC).

Drug interaction analysis

Drug interaction analysis

For every combination of the drugs the patient takes now, the system finds interactions from DrugBank evidence and explains them. The ingredient analysis tab shows each product's approved labeling (dosage, contraindications, adverse reactions) in Korean and in English.

Potentially inappropriate medications and anticholinergic burden

Potentially inappropriate medications and anticholinergic burden

A table lists fall-risk drug classes with their risk level and the drugs whose adherence needs checking. For drugs with a high anticholinergic burden score, the system suggests alternative ingredients by ATC code.

STOPP criteria screening

STOPP criteria screening

Working from version 3 of the STOPP/START criteria, we registered 146 rules as diagnosis (ICD-10) and drug (ATC) conditions, so that a patient who meets a condition gets the explanation in patient-facing wording. Clinicians can edit the rules and add their own from the settings screen.

Multi-agent LLM guide generation

Multi-agent LLM guide generation

A multi-agent LLM turns the analysis into a polypharmacy reconciliation guide the patient can read. You can pick models and compare them on the same input (LLM evaluation), and nothing reaches the patient until a clinician has reviewed and approved it.

Three patient reports

Three patient reports

The polypharmacy reconciliation guide (what the current drugs do, drugs needing special care, drugs to keep taking, combinations to watch when taken together, symptoms to look out for, overall recommendations), the Smart Allergy Report (contraindicated, caution and safe to take by drug class, with a Q&A), and personalized medication counseling notes.

Yagirang app

Yagirang app

The smartphone app patients use. They receive the reports and the safety card, get reminders and keep a medication log, and write down what they went through after taking a drug (e-PRO) to send back to the study team.

Smart Drug-Allergy Prevention Guide multi-agent LLM

A multi-agent system that takes a patient's own adverse drug reaction history and builds a personalized drug allergy prevention guide automatically. It runs on the OpenAI Agents SDK and is written in Python and Streamlit. Four specialist agents run in a mix of sequence and parallel, with a target of under 3 minutes end to end. Input is a FHIR AllergyIntolerance JSON file or free text, and drug classification refers to a WHO ATC code mapping file.

PropensityAgent - classifies drugs into three tiers (contraindicated, caution, safe) and maps ATC codes. Target: under 30 seconds.InformationAgent - writes plain-language education notes for each drug class, adjusted for age, sex and comorbidities. Target: under 60 seconds.QnAAgent - builds a Q&A set from real-life scenarios, at least three per class. Target: under 60 seconds.MetaAgent - merges and edits the earlier results into one report. Target: under 30 seconds.Orchestrator - runs InformationAgent and QnAAgent in parallel and manages the whole flow.

Clinical skills: cephalosporins, fluoroquinolones, penicillins, macrolides, NSAIDs, antipyretic analgesics (acetaminophen and others), antihistamines (first generation and non-first-generation kept apart), iodinated contrast media · Principles: no guessing - the system uses contraindicated, caution and safe-to-take information only when it is stated explicitly, never the general knowledge of the LLM., When that information is absent, only the culprit drug is marked contraindicated and nothing else is judged., ATC code required - every drug is written as 'Korean name (English name, ATC code)', and when the code is unknown only the drug name is written., Class-level explanation - the text explains drug classes, not individual drugs., No merging of categories - different drug classes are never combined into one., No duplication - when the same class appears under both contraindicated and caution, it is handled in a single combined section., THINK - PLAN - ACT - REFLECT - every agent follows this sequence explicitly., Admit the limits - when ATC mapping fails, the item is marked 'cannot verify' instead of being skipped.

On the CDSS side, we built automated evaluation across LLM models in year 2 and compared models on five metrics: Relevance Precision, Relevance Recall, Accuracy, Completeness and Helpfulness. Alongside that we ran the agents' own self-scoring (Validity, Relevance and Quality, Overall Assessment) and a human in the loop step in which clinicians compared the system output and left feedback. The SDAP repository has unit tests and integration tests for each agent, and it states its performance targets: processing time, an ATC mapping success rate of 90 percent or higher, and 100 percent report completeness. The performance table in the SDAP repository lists target values only; the measured figures are blank. The number of reports actually produced for patients is tracked on the CDSS field-validation side rather than in this repository, and the study enrollment screen in the year 3 review materials is anonymized, so the counts cannot be read.

Timeline

2023.2Project launch. Year 1 targets: a drug allergy prevention algorithm, a polypharmacy reconciliation algorithm, and the CDSS model design.
2023Designed the CDSS and the platform UI/UX, visualized MyData medication, clinical and adverse reaction information, and ran security consulting for the analysis data.
2024Year 2. Single-center clinical rollout and refinement, development of the CDSS, the app and the integrated platform, FHIR linkage between hospitals and the CDSS platform, governance for multicenter rollout, and automated evaluation across LLM models.
2025Year 3. MyHealthWay standard API integration, clinical rollout and effectiveness evaluation at 3 hospitals, a remote personalized medication counseling service, CDSS usability testing, and changes made from field feedback.
2025.10Prepared the public 1.0.0 repository of the multi-agent allergy guide generation system (SDAP).
2025.11Released version 1.0.7 of the Yagirang app.
2025.12Held the year 3 review meeting and closed out the field validation. We also ran a local LLM test with a small model hosted on our own server, plus in-depth interviews with a subset of patients.
After 2025.12We are settling the plan and the scope of each role for keeping the service running 6 months to a year after the study ends.

Results and dissemination

  • We validated the whole path at 3 hospitals: the patient downloads their own record from the Health Information Highway, brings it to the hospital, and the file goes straight into the CDSS analysis.
  • We built a polypharmacy reconciliation CDSS that layers an LLM over a rule-based engine and always routes the result through clinician review. The output is structured JSON, so the reasoning can be traced and checked.
  • We delivered three kinds of patient report to real patients. All three use the same grammar: three tiers of contraindicated, caution and safe to take, with explanations at the drug class level.
  • We built automated evaluation across LLM models and put commercial models and small open models side by side on five metrics. That led on to an experiment producing the same report with a small local model.
  • The patient satisfaction survey was still in progress at the year-3 review.
  • Automated analysis of drug ingredients performed well, and clinicians confirmed its reliability while cross-checking the AI answers. Patients also showed little resistance to sharing information between hospitals.
  • The limits are just as clear. Electronic medical record specifications differ from hospital to hospital, which restricts integration, and where the EMR cannot be connected the system stays unusable no matter how well the CDSS performs.
  • We could not connect to the Health Information Highway server to server, so sharing data cost considerable time and resources. Identity verification at sign-up for the My Health Record app, together with age and limited digital experience, also blocked some patients regardless of how willing they were.

Related patents 3 registered

Information processing server and method for providing a personalized safe medication serviceKR 10-2982457 · 2026.6.22
(Divisional application) Method and apparatus for probability-based estimation of adverse drug reactionsKR 10-2706000 · 2024.9.20
Method and apparatus for detecting culprit drugs and providing optimized medication using personalized side-effect dataKR 10-2609482 · 2023.11.29