Evidence map›Paper›PMID 41234243›Full record

ArticleJAMIA open2025

Extracting TNFi switching reasons and trajectories from real-world data using large language models.

Brenda Y Miao, Marie Binvignat, Augusto Garcia-Agundez, Maxim Bravo, Christopher Yk Williams, Claire Q Miao, Ahmed Alaa, Vivek Rudrapatna, Atul J Butte, Gabriela Schmajuk and 1 more

Abstract read
In one paragraph

Article in JAMIA open, 2025. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Not yet cited in PubMed.

0numbers the graph read from it
0cells of the map it votes in
0citing papers in PubMed
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

0 citing papers in PubMed.

No citing paper in PubMed yet.

4 · The record

Corrections and comments

PubMed lists nothing against this paper. Absence here is not a guarantee, only a check that was made.

5 · Who and what money

Authors and funding

11 authors.

Brenda Y MiaoBakar Computational Health Sciences Institute, University of California San Francisco, San Francisco, CA 94143, United States.
Marie BinvignatBakar Computational Health Sciences Institute, University of California San Francisco, San Francisco, CA 94143, United States.
Augusto Garcia-AgundezDivision of Rheumatology, University of California San Francisco, San Francisco, CA 94143, United States.
Maxim BravoUniversity of California, Berkeley, Berkeley, CA 94720, United States.
Christopher Yk WilliamsBakar Computational Health Sciences Institute, University of California San Francisco, San Francisco, CA 94143, United States.
Claire Q MiaoBakar Computational Health Sciences Institute, University of California San Francisco, San Francisco, CA 94143, United States.
Ahmed AlaaBakar Computational Health Sciences Institute, University of California San Francisco, San Francisco, CA 94143, United States.
Vivek RudrapatnaBakar Computational Health Sciences Institute, University of California San Francisco, San Francisco, CA 94143, United States.ORCID https://orcid.org/0000-0003-1789-3004
Atul J ButteBakar Computational Health Sciences Institute, University of California San Francisco, San Francisco, CA 94143, United States.
Gabriela SchmajukDivision of Rheumatology, University of California San Francisco, San Francisco, CA 94143, United States.
Jinoos YazdanyDivision of Rheumatology, University of California San Francisco, San Francisco, CA 94143, United States.ORCID https://orcid.org/0000-0002-3508-4094

Funding

RESOURCE-BASED CENTER FOR THE ADVANCEMENT OF PRECISION MEDICINE IN RHEUMATOLOGYP30AR070155 · NIAMS · UNIVERSITY OF CALIFORNIA, SAN FRANCISCO · PI Mary C Nakamura · 2016 to 2026
$8.2M
A data science framework for transforming electronic health records into real-world evidenceR00LM014099 · NLM · UNIVERSITY OF CALIFORNIA, SAN FRANCISCO · PI Vivek Ashok Rudrapatna · 2025 to 2026
$498k
NIAMS NIH HHS P30 AR070155NLM NIH HHS R00 LM014099
6 · The paper itself

Abstract

Background and significance: To evaluate whether large language models (LLMs) can automate chart review to identify tumor necrosis factor inhibitor (TNFi) switching patterns and reasons for switching in a large real-world cohort. Materials and methods: We conducted an observational study using de-identified electronic health record (EHR) data from 2012 to 2023 at a single academic medical center (University of California, San Francisco). TNFi medication orders and linked clinical notes were extracted, requiring at least 6 months of follow-up to identify treatment switches, defined as a change from one TNFi to another at consecutive encounters. Using GPT-4, we extracted which TNFi was stopped and started and classified the reason for switching. Performance was benchmarked against eight open-source LLMs, structured EHR data, and expert annotation. Results: A total of 9187 patients (mean [SD] age, 39.9 [19.0] years; 57.1% female) received ≥1 TNFi with sufficient follow-up. We identified 3104 TNFi switches among 2112 patients. GPT-4 achieved micro-F1 scores of 0.75 (stopped drug), 0.80 (started drug), and 0.83 (reason). Among open-source models, Starling-7B-beta and Llama-3-8B performed most competitively. The most common reason identified by GPT-4 was lack of efficacy (56.9%), followed by adverse events (13.5%) and insurance/cost (10.8%). Conclusions: Both GPT-4 and locally deployable LLMs effectively extracted complex treatment trajectories and rationale from clinical notes, supporting their broader utility in scalable EHR review and real-world evidence generation.

Indexed as

LLMsTNF-iTreatment switching

Identifiers

PMID41234243
PMCPMC12605798

What OpenQuestion holds

Textmetadata
LicenceCC BY
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.