Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR Medical Informatics

Date Submitted: May 2, 2025
Date Accepted: Sep 10, 2025

The final, peer-reviewed published version of this preprint can be found here:

A Bilingual On-Premises AI Agent for Clinical Drafting: Implementation Report of Seamless Electronic Health Records Integration in the Y-KNOT Project

Kim H, Lee SY, You SC, Huh S, Kim JE, Kim ST, Ko DR, Kim JH, Lee JH, Lim JS, Park MS, Lee KY

A Bilingual On-Premises AI Agent for Clinical Drafting: Implementation Report of Seamless Electronic Health Records Integration in the Y-KNOT Project

JMIR Med Inform 2025;13:e76848

DOI: 10.2196/76848

PMID: 41284981

PMCID: 12643392

A Bilingual On-premise AI agent for Clinical Drafting: Implementation Report of Seamless EHR integration in the Y-KNOT Project

  • Hanjae Kim; 
  • So-Yeon Lee; 
  • Seng Chan You; 
  • Sookyung Huh; 
  • Jai-Eun Kim; 
  • Sung-Tae Kim; 
  • Dong-Ryul Ko; 
  • Ji Hoon Kim; 
  • Jae Hoon Lee; 
  • Joon Seok Lim; 
  • Moo Suk Park; 
  • Kang Young Lee

ABSTRACT

Background:

Large Language Models (LLMs) have shown promise in reducing clinical documentation burden, yet their real-world implementation remains rare. Especially in South Korea, hospitals face several unique challenges such strict data sovereignty requirements and operating in environments where English is not the primary language for documentation. Therefore, we initiated the Your-Knowledgeable Navigator of Treatment (Y-KNOT) project, aimed at developing an on-premise bilingual LLM-based artificial intelligence agent system integrated with electronic health records (EHR) for automated clinical drafting.

Objective:

We present Y-KNOT project and provide insights into implementing AI-assisted clinical drafting tools within constraints of healthcare system.

Methods:

The project involved multiple stakeholders and encompassed three simultaneous processes: LLM development, clinical co-development, and EHR integration. We developed a foundation LLM by pretraining Llama3-8B with Korean and English medical corpora. During the clinical co-development phase, the LLM was instruction-tuned for specific documentation tasks through iterative cycles that aligned physicians’ clinical requirements, hospital data availability, documentation standards, and technical feasibility. The EHR integration phase focused on seamless AI agent incorporation into clinical workflows, involving document standardization, trigger points definition, and user interaction optimization.

Results:

The resulting system processes emergency department discharge summaries and preanesthetic assessments with high evaluation scores across multiple clinical metrics while maintaining existing clinical workflows. The drafting process is automatically triggered, and medical records are automatically fed into the LLM as input. The agent is built on-premises, locating all the architecture inside the hospital.

Conclusions:

The Y-KNOT project demonstrates the first seamless integration of an AI agent into an EHR system for clinical drafting. In collaboration with various stakeholders, we could derive ways to address key challenges of data security, bilingual requirements, and workflow integration. Our experience highlights a practical and scalable approach to utilizing LLM-based AI agents for other healthcare institutions, paving the way for broader adoption of LLM-based solutions.


 Citation

Please cite as:

Kim H, Lee SY, You SC, Huh S, Kim JE, Kim ST, Ko DR, Kim JH, Lee JH, Lim JS, Park MS, Lee KY

A Bilingual On-Premises AI Agent for Clinical Drafting: Implementation Report of Seamless Electronic Health Records Integration in the Y-KNOT Project

JMIR Med Inform 2025;13:e76848

DOI: 10.2196/76848

PMID: 41284981

PMCID: 12643392

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.