Biology Methods and Protocols

Auditable large language model curation of clinical notes refines glucagon-like peptide-1 initiation, persistence ascertainment, and compounding use beyond prescription records

At a glance

Yes within the studied federated EHR environment. The validated pipeline identified documented starts, barriers, interruptions, and compounded exposure, and note-derived 18-month persistence was lower than order-derived persistence for both semaglutide and tirzepatide.

The research question

Can an auditable LLM analysis of clinical notes distinguish actual GLP-1 initiation and persistence from what structured prescription records imply?

Overview

An evidence-linked LLM pipeline distinguished prescribing intent from documented medication use across more than 553,000 patients. At 18 months, prescription records produced materially higher persistence estimates than note-confirmed active use. Misclassifying a prescription as confirmed treatment exposure can bias real-world effectiveness, safety, and persistence studies. Evidence-linked note extraction provides a more auditable way to reconstruct treatment trajectories. Misclassifying a prescription as confirmed treatment exposure can bias real-world effectiveness, safety, and persistence studies. Evidence-linked note extraction provides a more auditable way to reconstruct treatment trajectories.

Study design & methods

The retrospective study analyzed 553,073 adults with semaglutide or tirzepatide prescriptions in a federated EHR network. A schema-constrained LLM linked each extraction to supporting note text. Two physicians reviewed 315 sampled events; structural triage reached 98.4% accuracy and medication-status adjudication reached 88.2%. Persistence was evaluated over 18 months in 69,976 note-confirmed frictionless initiators. The retrospective study analyzed 553,073 adults with semaglutide or tirzepatide prescriptions in a federated EHR network. A schema-constrained LLM linked each extraction to supporting note text. Two physicians reviewed 315 sampled events; structural triage reached 98.4% accuracy and medication-status adjudication reached 88.2%. Persistence was evaluated over 18 months in 69,976 note-confirmed frictionless initiators.

Principal findings

At 18 months, semaglutide persistence was 42.3% from note-confirmed active use versus 55.4% from structured orders; tirzepatide persistence was 43.1% versus 58.3%. The order-derived difference between drugs was not reproduced by the note-derived definition. Among 1,696 patients with note-evident compounded exposure, the first compounding signal appeared on or before the first structured prescription for 50.8% of semaglutide and 57.9% of tirzepatide patients. At 18 months, semaglutide persistence was 42.3% from note-confirmed active use versus 55.4% from structured orders; tirzepatide persistence was 43.1% versus 58.3%. The order-derived difference between drugs was not reproduced by the note-derived definition. Among 1,696 patients with note-evident compounded exposure, the first compounding signal appeared on or before the first structured prescription for 50.8% of semaglutide and 57.9% of tirzepatide patients.

Limitations & interpretation

The analysis shows that prescription and narrative definitions of exposure are not interchangeable. It is descriptive rather than causal, depends on documentation quality, may miss unrecorded use, and requires local validation because note structure, terminology, workflows, and model performance can shift between health systems. The analysis shows that prescription and narrative definitions of exposure are not interchangeable. It is descriptive rather than causal, depends on documentation quality, may miss unrecorded use, and requires local validation because note structure, terminology, workflows, and model performance can shift between health systems. Retrospective and descriptive rather than causal.

Publication type and venue follow the original nference listing. Read the original paper for full methods, analyses, and interpretation. View source listing.

Keep exploring.

All publications
Your next question could change everything.

What will you
discover next?

Let’s find out
Ideas are connected. Your next discovery starts here.