Journal article · 2026 · Open access

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 Fernández López

JAMIA Open, 9(1), ooag017 · Published 6 January 2026 · DOI 10.1093/jamiaopen/ooag017

Open full textCite this paper

In brief

“Large language models as medical code selectors: a benchmark using the International Classification of Primary Care” is a 2026 journal article by Vinicius Anjos de Almeida and 6 co-authors, published in JAMIA Open. OpenAlex counts 6 citations as of 3 December 2026, which puts it in the top 2% of works published in 2026 by citations. It is open access under a CC BY licence: the full text is free to read at JAMIA Open.

Citations
6
Most cited in
2026 (6)
Field-weighted impact
13.84
References
31
Authors
7

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.

Cite this paper

Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.

APA 7

de Almeida, V. A., de Camargo, V., Gómez-Bravo, R., van Boven, K., van der Haring, E., Finger, M., & López, L. F. (2026). Large language models as medical code selectors: a benchmark using the International Classification of Primary Care. JAMIA Open, 9(1), ooag017. https://doi.org/10.1093/jamiaopen/ooag017

MLA 9

de Almeida, Vinicius Anjos, et al. “Large language models as medical code selectors: a benchmark using the International Classification of Primary Care.” JAMIA Open, vol. 9, no. 1, 2026, p. ooag017. https://doi.org/10.1093/jamiaopen/ooag017.

Chicago

de Almeida, Vinicius Anjos, Vinicius de Camargo, Raquel Gómez-Bravo, Kees van Boven, Egbert van der Haring, Marcelo Finger, and Luis Fernández López. 2026. “Large language models as medical code selectors: a benchmark using the International Classification of Primary Care.” JAMIA Open 9 (1): ooag017. https://doi.org/10.1093/jamiaopen/ooag017.

Harvard

de Almeida, V. A. et al. (2026) ‘Large language models as medical code selectors: a benchmark using the International Classification of Primary Care’, JAMIA Open, 9(1), p. ooag017. doi:10.1093/jamiaopen/ooag017.

IEEE

V. A. de Almeida et al., “Large language models as medical code selectors: a benchmark using the International Classification of Primary Care,” JAMIA Open, vol. 9, no. 1, p. ooag017, 2026, doi: 10.1093/jamiaopen/ooag017.

BibTeX

@article{dealmeida2026large,
  title     = {{Large language models as medical code selectors: a benchmark using the International Classification of Primary Care}},
  author    = {de Almeida, Vinicius Anjos and de Camargo, Vinicius and Gómez-Bravo, Raquel and van Boven, Kees and van der Haring, Egbert and Finger, Marcelo and López, Luis Fernández},
  journal   = {JAMIA Open},
  year      = {2026},
  volume    = {9},
  number    = {1},
  pages     = {ooag017},
  doi       = {10.1093/jamiaopen/ooag017},
  url       = {https://doi.org/10.1093/jamiaopen/ooag017}
}

Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)

Topic and keywords

Health Sciences › Health Professions › Health Information Management › Medical Coding and Health Information

  • large language models
  • medical coding
  • ICPC-2
  • International Classification of Primary Care
  • semantic search
  • text embeddings
  • clinical text annotation
  • benchmarking

Work with this paper

Most-cited papers in Health Professions

All highly cited Health Professions papers

Questions about this paper

How do I cite this paper in APA style?

de Almeida, V. A., de Camargo, V., Gómez-Bravo, R., van Boven, K., van der Haring, E., Finger, M., & López, L. F. (2026). Large language models as medical code selectors: a benchmark using the International Classification of Primary Care. JAMIA Open, 9(1), ooag017. https://doi.org/10.1093/jamiaopen/ooag017

How many times has this paper been cited?

6 times, according to OpenAlex on 3 December 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.

Is this paper free to read?

Yes. It is open access at JAMIA Open: sign in and open the full text from this page.

Who wrote this paper?

Vinicius Anjos de Almeida, Vinicius de Camargo, Raquel Gómez-Bravo, Kees van Boven, Egbert van der Haring, Marcelo Finger, Luis Fernández López.

What is the DOI of this paper?

10.1093/jamiaopen/ooag017, permanently at https://doi.org/10.1093/jamiaopen/ooag017. Sign in and open it from this page.

Bibliographic data from OpenAlex (CC0), last checked 3 December 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.