Cited by 5Patient Safety and Medication ErrorsArtificial Intelligence in Healthcare and EducationPharmacovigilance and Adverse Drug Reactions

Improving medication error classification using a reasoning large language model

Open access
Krifors, Anders, Beskow, Theodor, Jonsson, Magnus, Lindner, Karl-Johan, Calås, Jenny, Arwsbo, Veronica, Sandström, Kristian, Norström, Christer·2026·JAMIA Open

Abstract

Objectives: To assess the performance of a reasoning large language model (LLM) in identifying medication errors in medical incident reports. Materials and Methods: OpenAI's O4-mini LLM was adapted using prompt engineering on 75 000 anonymized incident reports from the Västmanland region of Sweden (2019-2024). To guide the prompt design, we used a subset of 2434 reports, which were manually reclassified by pharmacists as medication-related or not. For validation, 200 reports (January 2024-March 2024) were independently classified by 2 pharmacists to establish a reference classification. Moreover, the LLM performed binary classification, with concordance rates measured against the expert consensus. Results: The LLM achieved a concordance rate of 96.0% (192/200; 95% CI, 92.3-98.3) with expert classification. Eight cases (4.0%) showed disagreements, primarily due to linguistic ambiguity or context-dependent interpretation. Five cases involved pharmacists classifying reports as non-medication-related, while the LLM classified them as medication-related, with the reverse in 3 cases. Subcategorization accuracy was 76.5%. Discussion: The LLM showed expert-level performance, outperforming existing automated methods. Thus, its integration into incident reporting systems might improve the efficiency, accuracy, and consistency of patient safety monitoring. Conclusion: This validated AI-driven method can be integrated directly into clinical informatics workflows, enabling healthcare organizations to rapidly and consistently identify medication errors, ultimately enhancing patient safety outcomes.

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1093/jamiaopen/ooag004

Cites

14 of 14 references verified0 citation errors · 0 not checkable

Statistics

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Two studies reported improved GPT-4 accuracy when answers did not require direct access to patient data.

    “For factual knowledge questions or inquiries, two studies reported improved GPT-4 accuracy when answers did not require direct access to patient data.30,90”

    From Large Language Models in Pharmacist-Led Direct Patient Care: A Rapid Review of Published Evaluations (2026) · cites this paper as [90]

    The Methods describe O4-mini classifying anonymized medication-incident reports, and the Results report 96% concordance with pharmacist classifications. Searches for GPT-4, factual knowledge questions, and accuracy without direct access to patient data found no passage addressing the claimed comparison. (LLM, conf=0.76)

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Cites

Flagged first, then by citations

Research works printed but not linked: 1

  1. [14]Cohan A, Fong A, Goharian N, Ratwani R. A neural attention model for categorizing patient safety events. In: Jose J, et al., eds. Advances in Information Retrieval. Vol 10193. Cham: Springer International Publishing; 2017.

Cited by

Sorted by citations

Authors
Krifors, A., Beskow, T., Jonsson, M., Lindner, K.-J., Calås, J., Arwsbo, V., Sandström, K., & Norström, C.
Affiliations
  • Uppsala University (SE)
  • Studi (SE)
  • Region Västmanland (SE)
  • Mälardalen University (SE)
Corresponding author
Krifors, Anders
Venue
JAMIA Open
Published
2026-01-06
Volume
9
Issue
1
Pages
ooag004-ooag004
ISSN
2574-2531 (ISSN-L)
OpenAlex
W7125696833
Cited by
5
References
12
Citations by year
2026: 5
FWCI
47.62
Type
journal article
Language
en
Open access
Locations
  • JAMIA Open (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • PubMed Central (publishedVersion, cc-by)
  • Diva portal (Dalarna University Library) (submittedVersion, other-oa)
Funders
Region Västmanland and Mälardalen University
Topics
  • Health Sciences › Health Professions › Emergency Medical Services › Patient Safety and Medication Errors
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
  • Life Sciences › Pharmacology, Toxicology and Pharmaceutics › Toxicology › Pharmacovigilance and Adverse Drug Reactions
Keywords
medication errors, large language models, prompt engineering, patient safety monitoring, incident reporting systems, pharmacists

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review