Skip to main navigation Skip to search Skip to main content

A Large Language Model-based System for Automatic Medical NLP Code Generation

  • Jiming Xu
  • , Simin Li
  • , Bo Kang
  • , Jun Yan*
  • *Corresponding author for this work

Research output: Chapters, Conference Papers, Creative and Literary Works › RGC 32 - Refereed conference paper (with host publication) › peer-review

Abstract

In clinical research, patient recruitment requires a large amount of chart review, and the interpreted data must be converted into a common format (such as FHIR) to support circulation across multi-ple systems. This paper builds a system that covers the entire pipeline from “eligibility-criteria parsing to schema generation to NLP code and Bundle construction to automatic validation”. The method: (1) uses an intermediate schema to decouple information extraction from FHIR-structured data generation into two steps, reducing generation difficulty; (2) automatically samples representative case snippets to assist code generation and improve accuracy; (3) enforces at least two distinct code-generation strategies to improve the recall of information extraction; and (4) uses the Claude agent SDK to generate high-quality code and auto-matically complete testing. The overall system can effectively accomplish the information extraction and FHIR-format data storage required for patient recruitment, thereby supporting inclusion/exclusion screening. The proposed pipeline achieved first place in “CHIP2025 Task 3: Medi-cal NLP Code Generation Evaluation”[1], demonstrating its engineering and deployment value in medical scenarios. © The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd. 2026.
Original languageEnglish
Title of host publicationHealth Information Processing
Subtitle of host publication11th China Health Information Processing Conference, CHIP 2025, Dongguan, China, November 22–24, 2025, Proceedings
EditorsYanchun Zhang, Qingcai Chen, Hongfei Lin
Place of PublicationSingapore
PublisherSpringer 
Pages559-569
ISBN (Electronic)978-981-95-7299-1
ISBN (Print)9789819572984
DOIs
Publication statusPublished - 2026
Event11th China Health Information Processing Conference (CHIP 2025) - Dongguan, China
Duration: 22 Nov 2025 → 24 Nov 2025

Publication series

NameCommunications in Computer and Information Science
Volume2884
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

Conference11th China Health Information Processing Conference (CHIP 2025)
PlaceChina
CityDongguan
Period22/11/25 → 24/11/25

Research Keywords

  • CHIP2025
  • Clinical natural language processing
  • FHIR
  • Large language models

Fingerprint

Dive into the research topics of 'A Large Language Model-based System for Automatic Medical NLP Code Generation'. Together they form a unique fingerprint.

Cite this