Evidence map›Paper›PMID 41727414›Full record

ArticleJAMIA open2026

Large language models as medical code selectors: a benchmark using the International Classification of Primary Care.

Vinicius Anjos de Almeida, Vinicius de Camargo, Raquel Gómez-Bravo, Kees van Boven, Egbert van der Haring, Marcelo Finger, Luis Fernandez Lopez

Abstract read
In one paragraph

Article in JAMIA open, 2026. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 1 paper.

0numbers the graph read from it
0cells of the map it votes in
1citing 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

1 citing paper in PubMed.

  1. Article
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

7 authors.

Vinicius Anjos de AlmeidaMedical School, University of São Paulo, Av. Dr. Arnaldo, 455, São Paulo, São Paulo, 01246-903, Brazil.ORCID https://orcid.org/0009-0001-1273-586X
Vinicius de CamargoDepartment of Epidemiology, School of Public Health, University of São Paulo, Av. Dr. Arnaldo, 715, São Paulo, São Paulo, 01246-904, Brazil.ORCID https://orcid.org/0009-0004-9885-9573
Raquel Gómez-BravoRehaklinik, Centre Hospitalier Neuro-Psychiatrique, 17, avenue des Alliés, Ettelbruck, L-9002, Luxembourg.ORCID https://orcid.org/0000-0002-3786-8626
Kees van BovenDepartment of Primary and Community Care, Radboud University, Geert Grooteplein Zuid 10, Nijmegen, 6525 GA, Netherlands.ORCID https://orcid.org/0000-0002-4422-9443
Egbert van der HaringNo affiliation, Netherlands.
Marcelo FingerDepartment of Computer Science, Institute of Mathematics and Statistics, University of Sao Paulo, Rua do Matão, 1010, São Paulo, São Paulo, 05508-090, Brazil.ORCID https://orcid.org/0000-0002-1391-1175
Luis Fernandez LopezMedical School, University of São Paulo, Av. Dr. Arnaldo, 455, São Paulo, São Paulo, 01246-903, Brazil.ORCID https://orcid.org/0000-0003-4097-6887

Funding

No grant is acknowledged in the PubMed record.

6 · The paper itself

Abstract

Objectives: Medical coding structures health-care data for research, quality monitoring, and policy. This study assesses the potential of large language models (LLMs) to assign International Classification of Primary Care, 2nd edition (ICPC-2) codes using the output of a domain-specific search engine. Materials and Methods: A dataset of 437 Brazilian Portuguese clinical expressions, each annotated with ICPC-2 codes, was used. A semantic search engine (OpenAI's text-embedding-3-large) retrieved candidates from 73 563 labeled concepts. Thirty-three LLMs were prompted with each query and retrieved results to select the best-matching ICPC-2 code. Performance was evaluated using F1-score, along with token usage, cost, response time, and format adherence. Results: Twenty-eight models achieved F1-score>0.8; 10 exceeded 0.85. Top performers included gpt-4.5-preview, o3, and gemini-2.5-pro. Retriever optimization can improve performance by up to 4 points. Most models returned valid codes in the expected format, with reduced hallucinations. Smaller models (<3B parameters) struggled with formatting and input length. Conclusion: Large language models show strong potential for automating ICPC-2 coding, even without fine-tuning. This work offers a benchmark and highlights challenges, but findings are limited by dataset scope and setup. Broader, multilingual, end-to-end evaluations are needed for clinical validation.

Indexed as

International Classification of Primary Carelarge language modelsmedical coding

Identifiers

PMID41727414
PMCPMC12924630

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.