Related Experiment Video
Updated: Jun 6, 2025

Augmenting Large Language Models via Vector Embeddings to Improve Domain-Specific Responsiveness
Published on: December 6, 2024
Extracting International Classification of Diseases Codes from Clinical Documentation Using Large Language Models
Ashley Simmons1, Kullaya Takkavatakarn2,3, Megan McDougal1
1Department of Human Performance - Health Informatics and Information Management, West Virginia University, Morgantown, West Virginia, United States.
Large language models (LLMs) show limited accuracy in extracting International Classification of Diseases, Tenth Revision, Clinical Modification (ICD-10-CM) codes from patient notes, with minimal agreement compared to human coders.
Area of Science:
- Medical Informatics
- Artificial Intelligence in Healthcare
- Clinical Documentation
Background:
- Large language models (LLMs) demonstrate potential in professional domains like medicine and law.
- Their efficacy in specialized medical tasks, such as ICD-10-CM code extraction, is not well-established.
Purpose of the Study:
- To evaluate and compare the performance of various LLMs in extracting ICD-10-CM codes against human coders.
- To identify specific challenges and reasons for discrepancies in LLM-based code extraction.
Main Methods:
- Six LLMs (GPT-3.5, GPT-4, Claude 2.1, Claude 3, Gemini Advanced, Llama 2-70b) were assessed.
- Deidentified inpatient notes from the AHIMA Vlab were used for evaluation.
- Percent agreement and Cohen's kappa were calculated; discrepancies were analyzed in a subset.
Main Results:
- LLMs extracted more unique ICD-10-CM codes than human coders, but agreement was low (kappa values: -0.02 to 0.01).
- GPT-4 showed the highest percent agreement (15.2%) for all codes; Claude 3 led for primary diagnosis (26% agreement, 0.25 kappa).
- Discrepancies included unconfirmed diagnoses, nonspecific codes, symptom coding, and hallucinations.
Conclusions:
- Current LLMs exhibit poor performance in extracting ICD-10-CM codes from inpatient notes.
- Significant improvements are needed for reliable clinical application of LLMs in medical coding.
More Related Videos
Related Concept Videos
Classification of Illness
An illness is a response to a disease in which the person's level of functioning is changed compared with a previous level. The general classification of illness includes acute and chronic.
Acute illness is severe...
Nursing Interventions II: Selecting and Classifying the Nursing Interventions
Methods of Documentation VI: Case Management Model
For example, a patient with a chronic...
Formulating and Validating Nursing Diagnosis I
There are thirteen domains...
Clinical Trials
There are four phases in a clinical trial. A phase one...
Nursing Clinical Information System
A Nursing Clinical Information System (NCIS) is a specialized type of healthcare information system tailored to meet the unique needs of nursing practice. It incorporates the principles of nursing informatics to streamline information management and improve the quality of care delivery.
Critical attributes of NCIS include:

