Preprint · 2026 · Open access

LLM-Powered Contextual Diagnosis Support for Rare Diseases Using Electronic Health Records

Goutam Adwant, Manjari Srivastav

TechRxiv · Published 13 January 2026 · DOI 10.36227/techrxiv.176834437.73411532/v1

Open PDFView at the publisherCite this paper

In brief

“LLM-Powered Contextual Diagnosis Support for Rare Diseases Using Electronic Health Records” is a 2026 preprint by Goutam Adwant and Manjari Srivastav, published in TechRxiv. OpenAlex counts 0 citations as of 29 November 2026. It is open access under a CC BY licence: the full text is free to read at TechRxiv.

Citations
0
References
13
Authors
2

Abstract

Rare diseases affect millions of patients worldwide, yet timely diagnosis remains a significant challenge due to fragmented clinical information and the complexity of phenotypes. On average, patients with rare conditions experience diagnostic delays of 4-5 years before receiving a correct diagnosis. Early detection is critical to improving outcomes, but traditional approaches relying on rule-based phenotyping or manual chart review are often slow, errorprone, and lack interpretability. In this study, we propose and implement a retrieval-augmented large language model (RAG-LLM) framework that integrates structured electronic health records (EHRs), unstructured clinical notes, and curated rare-disease ontologies to provide contextual diagnostic support. The system synthesizes patient history, prioritizes likely differential diagnoses with confidence scores, and links recommendations to evidence from patient data and ontology sources for interpretability. We implement and evaluate the framework on Synthea synthetic EHR data (50 patients, 3,465 encounters) using local Ollama llama2 model for privacy-preserving inference. The system achieves 60% evidence coverage, generating structured ranked differential diagnoses with explicit evidence citations. Our implementation demonstrates that the RAG-LLM framework provides significant advantages over traditional methods: (1) ranked differential diagnoses vs. binary classification, (2) evidence-grounded output with 60% coverage vs. no evidence, (3) multi-source integration (structured + unstructured + ontologies) vs. structured-only, and (4) contextual LLM reasoning vs. pattern matching. Key experimental findings include: successful generation of structured JSON output with diagnoses, confidence scores (0.45-0.85 range), evidence citations, and rationale explanations; 100% evidence coverage for successful predictions; and efficient retrieval over 3,465+ passages with sub-second query times. The framework architecture supports early detection through time-to-flag evaluation and provides interpretable, evidence-based recommendations that enable clinician validation. This research demonstrates that AI-powered, evidence-grounded diagnostic support systems can assist clinicians in early identification of rare diseases, provide interpretable recommendations through evidence linking, and offer a pathway toward reducing diagnostic delays while maintaining privacy through local inference capabilities.

Cite this paper

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

APA 7

Adwant, G., & Srivastav, M. (2026). LLM-Powered Contextual Diagnosis Support for Rare Diseases Using Electronic Health Records. TechRxiv. https://doi.org/10.36227/techrxiv.176834437.73411532/v1

MLA 9

Adwant, Goutam, and Manjari Srivastav. “LLM-Powered Contextual Diagnosis Support for Rare Diseases Using Electronic Health Records.” TechRxiv, 2026. https://doi.org/10.36227/techrxiv.176834437.73411532/v1.

Chicago

Adwant, Goutam and Manjari Srivastav. 2026. “LLM-Powered Contextual Diagnosis Support for Rare Diseases Using Electronic Health Records.” TechRxiv. https://doi.org/10.36227/techrxiv.176834437.73411532/v1.

Harvard

Adwant, G. and Srivastav, M. (2026) ‘LLM-Powered Contextual Diagnosis Support for Rare Diseases Using Electronic Health Records’, TechRxiv. doi:10.36227/techrxiv.176834437.73411532/v1.

IEEE

G. Adwant and M. Srivastav, “LLM-Powered Contextual Diagnosis Support for Rare Diseases Using Electronic Health Records,” TechRxiv, 2026, doi: 10.36227/techrxiv.176834437.73411532/v1.

BibTeX

@misc{adwant2026powered,
  title     = {{LLM-Powered Contextual Diagnosis Support for Rare Diseases Using Electronic Health Records}},
  author    = {Adwant, Goutam and Srivastav, Manjari},
  howpublished = {TechRxiv},
  year      = {2026},
  doi       = {10.36227/techrxiv.176834437.73411532/v1},
  url       = {https://doi.org/10.36227/techrxiv.176834437.73411532/v1}
}

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

Topic and keywords

Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare

  • rare diseases
  • delayed diagnosis
  • retrieval-augmented generation
  • large language models
  • electronic health records
  • differential diagnosis
  • clinical notes
  • evidence grounding

Work with this paper

Most-cited papers in Computer Science

All highly cited Computer Science papers

Questions about this paper

How do I cite this paper in APA style?

Adwant, G., & Srivastav, M. (2026). LLM-Powered Contextual Diagnosis Support for Rare Diseases Using Electronic Health Records. TechRxiv. https://doi.org/10.36227/techrxiv.176834437.73411532/v1

How many times has this paper been cited?

0 times, according to OpenAlex on 29 November 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 TechRxiv: sign in and open the PDF from this page.

Who wrote this paper?

Goutam Adwant, Manjari Srivastav.

What is the DOI of this paper?

10.36227/techrxiv.176834437.73411532/v1, permanently at https://doi.org/10.36227/techrxiv.176834437.73411532/v1. Sign in and open it from this page.

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