Skip to main content
Wiley Open Access Collection logoLink to Wiley Open Access Collection
. 2026 Jul 3;21(10):1179–1182. doi: 10.1002/jhm.70390

The 5R's of large language model‐assisted diagnosis: A practical framework for hospitalists

Peter Barish 1,✉, Andrew D Auerbach 1, Sumant R Ranji 2,3
PMCID: PMC13636112  PMID: 42396645

Abstract

Diagnostic error remains a major patient safety challenge in hospital medicine. Large language models (LLMs) are increasingly used by clinicians to aid in diagnosis, yet most lack a structured approach for doing so safely and effectively. In this piece, we propose a practical, clinician‐centered framework for LLM‐assisted diagnosis. The 5R's Framework promotes a human‐in‐the‐loop approach that harnesses LLMs to reduce diagnostic error while preserving critical reasoning skills.

Visual Abstract

graphic file with name JHM-21-1179-g002.webp


A hospitalist admits a 70‐year‐old woman with metastatic gastric cancer (on active treatment with paclitaxel) and heart failure with preserved ejection fraction for acute hypoxemic respiratory failure, initially attributed bacterial pneumonia and heart failure exacerbation. Despite antibiotics and diuresis, on hospital day 3 she has escalating oxygen requirements. The hospitalist is uncertain about the diagnosis and wonders if artificial intelligence could assist, but she has not used AI before and is unsure how to proceed.

INTRODUCTION

Diagnostic errors occur frequently in hospital medicine, 1 often resulting from delays in considering or prioritizing a diagnosis, failure to consider complications, or problems with test ordering and interpretation. 2

Large language models (LLMs) have tremendous promise for improving the diagnostic process. In simulated studies, LLMs have solved complex clinical cases at rates equal to or surpassing expert clinicians. 3 , 4 , 5 Many clinicians are using LLMs to aid in diagnosis; in a 2024 survey, 12% of physicians reported using AI as a diagnostic tool, 6 a proportion likely increasing due to the availability of free, point‐of‐care applications.

However, there are few studies of LLMs in real‐world clinical care, and LLM use itself has risks. 7 , 8 Hospitalists who use LLMs for diagnosis therefore need to be familiar with the strengths and weaknesses of these tools and how to use them as a decision support tool at the bedside.

The “5 rights” framework for clinical decision support systems (CDS) outline principles 9 to ensure that clinicians receive actionable, evidence‐based information to provide better care. An effective CDSS should deliver the Right information to the Right person in the Right format, using the Right channel and at the Right time in the clinician's workflow. In the same vein, we propose the 5R's of LLM‐assisted diagnosis, a pragmatic framework grounded in clinical reasoning science. This approach should help hospitalists use LLMs to improve diagnosis while limiting the potential for errors or unintended consequences.

IMPORTANCE OF A HUMAN‐IN‐THE‐LOOP APPROACH

LLMs are capable, confident, and fast. However, these features can obscure important limitations when applied to clinical care: they can generate plausible sounding but incorrect information (“hallucinations”), inherit biases from their training data, and may lack the nuanced contextual factors that clinicians weigh subconsciously. 7 , 8

A primary concern accompanying increasing use of AI, particularly for trainees, is the risk of cognitive deskilling. 10 If an LLM can instantly generate a thorough differential diagnosis, will the next generation of physicians lose the skill of clinical reasoning?

As AI tools become integrated into diagnosis, we must rigorously reaffirm the clinician's role. LLMs should function as diagnostic assistants, not autonomous diagnosticians. When using an LLM, the cognitive work does not vanish; it shifts. The physician must still perform the critical tasks of data gathering and synthesis to summarize the clinical presentation for the AI and acting on LLM outputs requires a sophisticated understanding of limits and bias. As with all clinical decision support tools, the physician is ultimately responsible for their medical decision making.

Thus, an effective “human‐in‐the‐loop” approach is the best way to ensure patient safety, limit liability, and enhance (rather than degrade) clinical reasoning skills.

THE 5R'S FRAMEWORK

To optimize LLM‐assisted diagnosis, we propose the 5R's framework. This model guides hospitalists through the safe and effective application of LLMs at the bedside (Figure 1).

  • 1.

    Right task—Knowing when to use the model—and when to abstain.

    LLMs excel in the creation and prioritization of differential diagnoses, particularly for complex, undifferentiated cases. They can be particularly helpful for expanding a differential when clinicians feel “stuck” or during a diagnostic time‐out. Physicians must start with their own diagnostic thinking (to avoid deskilling), but LLMs can aid in identifying rare diagnoses that might otherwise be overlooked or organize thinking around complex, multi‐system presentations.

    LLMs should be avoided in high‐stakes situations where the risk of model hallucination is unacceptable. This includes time‐sensitive emergencies (e.g., a code blue or rapid response escalation), questions regarding medication dosing, drug‐drug interactions, or specific internal hospital guidelines. In these moments, adherence to peer‐reviewed resources is necessary.

  • 2.

    Right model—Picking the tool that matches the cognitive job.

Figure 1.

Figure 1

5R's framework for successful large language model‐assisted diagnosis.

Not all LLMs are created equal, and using the wrong architecture for a diagnostic task can lead to suboptimal results. The landscape of high‐performing LLMs (often called “frontier” models) changes rapidly, and hospitalists should be able to distinguish between three broad categories:

  • 1.

    Standard models for simple tasks: For tasks like creating patient education materials, communication scripts, or drafting administrative documents, standard models (e.g., ChatGPT “Instant” or Gemini 2.5 “Fast”) are sufficient, and often free to use.

  • 2.

    Reasoning models for logic tasks: For complex differential diagnosis and multi‐step clinical logic, newer “reasoning” models (e.g., ChatGPT or Gemini with “Thinking” selected) are superior. Reasoning models use “chain‐of‐thought” processing to solve complex problems, mirroring human clinical reasoning. 10 Emerging evidence also suggests these models are better at medical benchmarks and may be less susceptible to cognitive biases than standard models. 11 , 12

  • 3.

    Retrieval‐augmented generation (RAG)/“deep research” tools for understanding the evidence: For specific, detailed knowledge questions (i.e., literature/guideline searches), we recommend tools specifically designed to search and cite medical literature. The most widely used of these is OpenEvidence, which queries an internal database to provide answers backed by specific literature citations. RAG models are very useful for answering knowledge questions but may be less useful for differential diagnosis generation.

  • 3.

    Right input—Synthesizing data, prompting, and privacy protection.

The quality of the LLM's output is influenced by the quality of the input—the “garbage in, garbage out” principle. This step is also where clinical reasoning is actively practiced.

  • 1.

    Structured prompting: To improve response reliability and quality, we recommend using a structured prompt that defines the Context (“assisting with a complex clinical case”), the Task (“generate a ranked differential”), and the Format (“bullet points, arguments for and against”).

  • a.

    Example: “I need assistance with a complex Hospital Medicine case. I will give you the case information. Task: please provide a ranked differential diagnosis with key supporting and refuting features for each. Include can't‐miss diagnoses we should consider.”

  • 2.

    Data gathering and problem representation: Before turning to an LLM, the clinician should craft a concise summary of the most salient features of the case (i.e., a Problem Representation), highlighting features that support or reject the working diagnosis. This deliberate reflection, occurring before interacting with the LLM, promotes learning and diagnostic accuracy. 13 , 14

  • a.

    Example: “Mrs. J is an elderly woman with a history of heart failure and gastric carcinoma metastatic to liver and lungs, on paclitaxel, who presented with subacute, progressive, shortness of breath and new hypoxemia. Her admission CXR showed bilateral lower lobe hazy opacities. She has been treated with antibiotics and diuretics for 3 days but has progressively worsening hypoxemia.”

  • 3.

    De‐identification: Strict adherence to institutional policies for protected health information (PHI) is paramount. Clinicians should remove all PHI identifiers (i.e., dates) and generalize ages, unless their institution offers access to a secure LLM that is approved for use with PHI. Information should never be copied from the EHR into any public LLM.

  • 4.

    Review and reconcile—Keeping the human in the loop.

    Once the LLM generates a response, the clinician's role shifts to critical reviewer. Hospitalists should verify specific claims against a trusted reference to check for hallucinations, especially regarding diagnostic criteria or test characteristics.

    Clinicians must also look to mitigate the risk of bias. Automation bias—the tendency to favor machine‐generated advice over human judgment—and human cognitive biases within the LLM itself (e.g., anchoring bias, framing effects, hindsight bias), may be at play. 8 If the LLM agrees with you entirely, ask it to “play devil's advocate” and argue against your top diagnosis. Reconcile the LLMs differential diagnosis with your own: hospitalists should not uncritically accept an LLM's diagnosis but should instead use it to refine diagnostic possibilities and inform further workup.

  • 5.

    Reflect on Reasoning—Reinforce and calibrate diagnostic skills.

The final “R” ensures that the use of LLMs contributes to the clinician's long‐term growth. 15 Close each interaction with a distinct 60‐s pause for deliberate reflection, comparing the LLM's output to your working differential diagnosis.

Identify discrepancies and calibrate: If the LLM suggested diagnosis you missed, reflect on why you didn't include it. Was it a knowledge gap? Premature closure? This step turns the consult into a learning event (deliberate practice).

Team‐based learning: LLM‐assisted diagnosis can also be used for teaching; teams can compare and contrast their differential against the AI's, making the reasoning process visible and collaborative.

CONCLUSIONS

In the scenario, the hospitalist discussed the case with a colleague; together, they queried an LLM using a deidentified problem representation and structured prompt. The LLM suggested a diagnosis which had not been considered previously: paclitaxel‐induced pulmonary toxicity. After consulting the pulmonary service, the hospitalist initiated treatment with oral prednisone. The patient's symptoms and oxygen requirement improved quickly, and she was discharged on hospital day 7.

This case illustrates the potential of LLMs to improve diagnosis in complex hospitalized patients by offering a “second opinion” on demand. These powerful tools have immense potential for improving diagnosis, but the introduction of AI into the diagnostic process is not without risk. The 5R's Framework aims to promote effective and safe LLM use anchored in the principles of clinical reasoning and deliberate practice. Appropriate LLM use can harness the power of these models to reduce diagnostic error while simultaneously sharpening hospitalists’ own clinical acumen.

CONFLICT OF INTEREST STATEMENT

The authors declare no conflicts of interest.

ACKNOWLEDGMENTS

The authors have nothing to report.

DATA AVAILABILITY STATEMENT

Data sharing is not applicable to this article as no datasets were generated or analyzed during the current study.

REFERENCES

  • 1. Committee on Diagnostic Error in Health Care, Board on Health Care Services, Institute of Medicine, and The National Academies of Sciences, Engineering, and Medicine . Improving Diagnosis in Health Care. National Academies Press; 2015.
  • 2. Auerbach AD, Lee TM, Hubbard CC, et al. Diagnostic errors in hospitalized adults who died or were transferred to intensive care. JAMA Int Med. 2024;184:164‐173. 10.1001/jamainternmed.2023.7347 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3. McDuff D, Schaekermann M, Tu T, et al. Towards accurate differential diagnosis with large language models. Nature. 2025;642:451‐457. 10.1038/s41586-025-08869-4 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4. Cabral S, Restrepo D, Kanjee Z, et al. Clinical reasoning of a generative artificial intelligence model compared with physicians. JAMA Int Med. 2024;184:581‐583. 10.1001/jamainternmed.2024.0295 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5. Shan G, Chen X, Wang C, et al. Comparing diagnostic accuracy of clinical professionals and large language models: systematic review and meta‐analysis. JMIR Med Inform. 2025;13:e64963. 10.2196/64963 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.AMA: Physician enthusiasm grows for health care AI. American Medical Association. 2025. https://www.ama-assn.org/press-center/ama-press-releases/ama-physician-enthusiasm-grows-health-care-ai.
  • 7. Cheung V, Maier M, Lieder F. Large language models show amplified cognitive biases in moral decision‐making. Proc Natl Acad Sci USA. 2025;122:e2412015122. 10.1073/pnas.2412015122 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8. Wang J, Redelmeier DA. Cognitive biases and artificial intelligence. NEJM AI. 2024;1:AIcs2400639. 10.1056/AIcs2400639 [DOI] [Google Scholar]
  • 9.Improving outcomes with clinical decision support: an implementer's guide, 2nd ed. CRC Press. 2012. https://www.routledge.com/Improving-Outcomes-with-Clinical-Decision-Support-An-Implementers-Guide-Second-Edition/Osheroff-Teich-Levick-Saldana-Velasco-Sittig-Rogers-Jenders/p/book/9780984457731.
  • 10. Natali C, Marconi L, Dias Duran LD, Cabitza F. AI‐induced deskilling in medicine: a mixed‐method review and research agenda for healthcare and beyond. Artif Intel Rev. 2025;58:356. 10.1007/s10462-025-11352-1 [DOI] [Google Scholar]
  • 11. Tschisgale P, Maus H, Kieser F, Kroehs B, Petersen S, Wulff P. Evaluating GPT‐ and reasoning‐based large language models on physics olympiad problems: surpassing human performance and implications for educational assessment. Phys Rev Phys Educ Res. 2025;21:020115. 10.1103/6fmx-bsnl [DOI] [Google Scholar]
  • 12. Degany O, Laros S, Idan D, Einav S. Evaluating the o1 reasoning large language model for cognitive bias: a vignette study. Crit Care. 2025;29:376. 10.1186/s13054-025-05591-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13. Tordjman M, Liu Z, Yuce M, et al. Comparative benchmarking of the DeepSeek large language model on medical tasks and clinical reasoning. Nature Med. 2025;31:2550‐2555. 10.1038/s41591-025-03726-3 [DOI] [PubMed] [Google Scholar]
  • 14. Mamede S, van Gog T, van den Berge K, et al. Effect of availability bias and reflective reasoning on diagnostic accuracy among internal medicine residents. JAMA. 2010;304:1198‐1203. 10.1001/jama.2010.1276 [DOI] [PubMed] [Google Scholar]
  • 15. Mamede S, Schmidt HG, Penaforte JC. Effects of reflective practice on the accuracy of medical diagnoses. Med Educ. 2008;42:468‐475. 10.1111/j.1365-2923.2008.03030.x [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

Data sharing is not applicable to this article as no datasets were generated or analyzed during the current study.


Articles from Journal of Hospital Medicine are provided here courtesy of Wiley

RESOURCES