Cited by 26Artificial Intelligence in Healthcare and EducationEthics and Social Impacts of AIExplainable Artificial Intelligence (XAI)

Ethical implications of using general-purpose LLMs in clinical settings: a comparative analysis of prompt engineering strategies and their impact on patient safety

Open access
Esmaeilzadeh, Pouyan·2025·BMC Medical Informatics and Decision Making

Abstract

Background: The rapid integration of large language models (LLMs) into healthcare raises critical ethical concerns regarding patient safety, reliability, transparency, and equitable care delivery. Despite not being trained explicitly on medical data, individuals increasingly use general-purpose LLMs to address medical questions and clinical scenarios. While prompt engineering can optimize LLM performance, its ethical implications for clinical decision-making remain underexplored. This study aimed to evaluate the ethical dimensions of prompt engineering strategies in the clinical applications of LLMs, focusing on safety, bias, transparency, and their implications for the responsible implementation of AI in healthcare. Methods: We conducted an ethics-focused analysis of three advanced and reasoning-capable LLMs (OpenAI O3, Claude Sonnet 4, Google Gemini 2.5 Pro) across six prompt engineering strategies and five clinical scenarios of varying ethical complexity. Six expert clinicians evaluated 90 responses using domains that included diagnostic accuracy, safety assessment, communication, empathy, and ethical reasoning. We specifically analyzed safety incidents, bias patterns, and transparency of reasoning processes. Results: Significant ethical concerns emerged across all models and scenarios. Critical safety issues occurred in 12.2% of responses, with concentration in complex ethical scenarios (Level 5: 23.1% vs. Level 1: 2.3%, p < 0.001). Meta-cognitive prompting demonstrated superior ethical reasoning (mean ethics score: 78.3 ± 9.1), while safety-first prompting reduced safety incidents by 45% compared to zero-shot approaches (8.9% vs. 16.2%). However, all models showed concerning deficits in communication empathy (mean 54% of maximum) and exhibited potential bias in complex multi-cultural scenarios. Transparency varied significantly by prompt strategy, with meta-cognitive approaches providing the clearest reasoning pathways (4.2 vs. 1.8 explicit reasoning steps), which are essential for clinical accountability. The study highlighted critical gaps in ethical decision-making transparency, with meta-cognitive approaches providing 4.2 explicit reasoning steps compared to 1.8 in zero-shot methods ( p < 0.001). Bias patterns disproportionately affected vulnerable populations, with systematic underestimation of treatment appropriateness in elderly patients and inadequate cultural considerations in end-of-life scenarios. Conclusions: Current clinical applications of general-purpose LLMs present substantial ethical challenges requiring urgent attention. While structured prompt engineering demonstrated measurable improvements in some domains, with meta-cognitive approaches showing 13.0% performance gains and safety-first prompting reducing critical incidents by 45%, substantial limitations persist across all strategies. Even optimized approaches achieved inadequate performance in communication and empathy (≤ 54% of maximum), retained residual bias patterns (11.7% in safety-first conditions), and exhibited concerning safety deficits, indicating that current prompt engineering methods provide only marginal improvements, which are insufficient for reliable clinical deployment. These findings highlight significant ethical challenges that necessitate further investigation into the development of appropriate guidelines and regulatory frameworks for the clinical use of general-purpose AI models.

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.1186/s12911-025-03182-6

Cites

19 of 19 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?

  • Prompt framing and persona assignment can meaningfully shift LLM outputs and measured performance, including hallucination rate and factual accuracy.

    “In particular, prompt framing and persona assignment (e.g., instructing the model to respond as if to a clinician vs a patient) can meaningfully shift LLM outputs and measured performance, including hallucination rate and factual accuracy.”

    From Large Language Model Hallucinations in Spine Surgery: A Comparative Analysis of Clinician vs Patient-Level Prompts (2026) · cites this paper as [16]

    The Results report that prompt strategies changed measured clinical performance, and the Discussion reports improved diagnostic accuracy with meta-cognitive prompting (page unavailable). But the Limitations say hallucinations were not systematically evaluated, while the Discussion calls for future comparisons of patient-facing and clinician-facing contexts. The paper therefore does not establish the claimed effects of persona assignment on hallucination rate or factual accuracy. (LLM, conf=0.88)

    Experimental — accuracy not yet measured
  • How an LLM is prompted (prompt engineering) significantly affects the accuracy and ethical behavior of its output.

    “It is well-established that how an LLM is prompted (“prompt engineering”) significantly affects the accuracy and ethical behavior of its output.2,15,16”

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: 45

  1. [1]Jermakowicz EK. The coming transformative impact of large Language models and artificial intelligence on global business and education. J Global Aware. 2023;4(2):1–22. · DOI
  2. [7]Esmaeilzadeh P. Challenges and strategies for wide-scale artificial intelligence (AI) deployment in healthcare practices: A perspective for healthcare organizations. Artif Intell Med. 2024;151:102861. 38555850 · DOI
  3. [11]Zhui L, Fenghe L, Xuehu W, Qining F, Wei R. Ethical considerations and fundamental principles of large Language models in medical education. J Med Internet Res. 2024;26:e60083. 38971715 PMC11327620 · DOI
  4. [12]Goktas P, Grzybowski A. Shaping the future of healthcare: ethical clinical challenges and pathways to trustworthy AI. J Clin Med. 2025;14(5):1605. 40095575 PMC11900311 · DOI · Paper page
  5. [14]Hurley ME, Lang BH, Kostick-Quenet KM, Smith JN, Blumenthal-Barby J. Patient consent and the right to notice and explanation of AI systems used in health care. Am J Bioeth. 2025;25(3):102–14. 39288291 PMC12143229 · DOI
  6. [15]Cross JL, Choma MA, Onofrey JA. Bias in medical AI: implications for clinical decision-making. PLOS Digit Health. 2024;3(11):e0000651. 39509461 PMC11542778 · DOI · Paper page
  7. [16]Mennella C, Maniscalco U, De Pietro G, Esposito M. Ethical and regulatory challenges of AI technologies in healthcare: a narrative review. Heliyon 2024, 10(4). PMC10879008 38384518
  8. [17]Zaghir J, Naguib M, Bjelogrlic M, Névéol A, Tannier X, Lovis C. Prompt engineering paradigms for medical applications: scoping review. J Med Internet Res. 2024;26:e60501. 39255030 PMC11422740 · DOI · Paper page
  9. [18]Patil R, Heston TF, Bhuse V. Prompt engineering in healthcare. Electronics. 2024;13(15):2961. · DOI
  10. [19]Fernández-Pichel M, Pichel JC, Losada DE. Evaluating search engines and large Language models for answering health questions. Npj Digit Med. 2025;8(1):153. 40065094 PMC11894092 · DOI · Paper page
  11. [20]Chow JC, Li K. Ethical considerations in human-centered AI: advancing oncology chatbots through large Language models. JMIR Bioinf Biotechnol. 2024;5:e64406. PMC11579624 39321336 · DOI · Paper page
  12. [21]Maaz S, Palaganas JC, Palaganas G, Bajwa M. A guide to prompt design: foundations and applications for healthcare simulationists. Front Med. 2025;11:1504532. PMC11841430 39980724 · DOI
  13. [26]Adams C, Pente P, Lemermeyer G, Rockwell G. Artificial intelligence ethics guidelines for K-12 education: a review of the global landscape. In: International conference on artificial intelligence in education: 2021: Springer; 2021: 24–28.
  14. [27]Li F, Ruijs N, Lu Y. Ethics & AI: A systematic review on ethical concerns and related strategies for designing with AI in healthcare. AI. 2022;4(1):28–53. · DOI
  15. [30]Meskó B. Prompt engineering as an important emerging skill for medical professionals: tutorial. J Med Internet Res. 2023;25:e50638. 37792434 PMC10585440 · DOI · Paper page
  16. [31]Esmaeilzadeh P. Use of AI-based tools for healthcare purposes: a survey study from consumers’ perspectives. BMC Med Inf Decis Mak. 2020;20:1–19. PMC7376886 32698869
  17. [32]Goktas P, Kucukkaya A, Karacay P. Leveraging the efficiency and transparency of artificial intelligence-driven visual chatbot through smart prompt learning concept. Skin Res Technol. 2023;29(11):e13417. 38009033 PMC10587733 · DOI
  18. [33]Lu H, Alhaskawi A, Dong Y, Zou X, Zhou H, Ezzi SHA, Kota VG, Hasan Abdulla Hasan Abdulla M, Abdalbary SA. Patient autonomy in medical education: navigating ethical challenges in the age of artificial intelligence. INQUIRY: J Health Care Organ Provis Financing. 2024;61:00469580241266364. PMC11409288 39290068 · DOI
  19. [34]Heston TF, Khun C. Prompt engineering in medical education. Int Med Educ. 2023;2(3):198–205. · DOI
  20. [35]Norman GR, Monteiro SD, Sherbino J, Ilgen JS, Schmidt HG, Mamede S. The causes of errors in clinical reasoning: cognitive biases, knowledge deficits, and dual process thinking. Acad Med. 2017;92(1):23–30. 27782919 · DOI · Paper page
  21. [37]Nori H, King N, McKinney SM, Carignan D, Horvitz E. Capabilities of gpt-4 on medical challenge problems. ArXiv Preprint arXiv:230313375 2023.
  22. [38]Humphrey-Murto S, Wood TJ, Ross S, Tavares W, Kvern B, Sidhu R, Sargeant J, Touchie C. Assessment pearls for competency-based medical education. J Graduate Med Educ. 2017;9(6):688–91. PMC5734320 29270255 · DOI
  23. [39]Lee GB, Chiu AM. Assessment and feedback methods in competency-based medical education. Ann Allergy Asthma Immunol. 2022;128(3):256–62. 34929390 · DOI
  24. [41]Ball JR, Miller BT, Balogh EP. Improving diagnosis in health care. 2015. 26803862
  25. [43]Tabish SA. Assessment methods in medical education. International journal of health sciences 2008, 2(2). PMC3068728 21475483
  26. [44]de Hond AA, Leeuwenberg AM, Hooft L, Kant IM, Nijman SW, van Os HJ, Aardoom JJ, Debray TP, Schuit E, van Smeden M. Guidelines and quality criteria for artificial intelligence-based prediction models in healthcare: a scoping review. NPJ Digit Med. 2022;5(1):2. 35013569 PMC8748878 · DOI · Paper page
  27. [45]Ray PP. Timely need for navigating the potential and downsides of LLMs in healthcare and biomedicine. Brief Bioinform. 2024;25(3):bbae214. 38725154 PMC11082071 · DOI
  28. [47]Schraw G, Crippen KJ, Hartley K. Promoting self-regulation in science education: metacognition as part of a broader perspective on learning. Res Sci Educ. 2006;36:111–39. · DOI · Paper page
  29. [48]Wei J, Wang X, Schuurmans D, Bosma M, Xia F, Chi E, Le QV, Zhou D. Chain-of-thought prompting elicits reasoning in large Language models. Adv Neural Inf Process Syst. 2022;35:24824–37.
  30. [49]Wang X, Wei J, Schuurmans D, Le Q, Chi E, Narang S, Chowdhery A, Zhou D. Self-consistency improves chain of thought reasoning in Language models. ArXiv Preprint arXiv:220311171 2022.
  31. [50]Ahmed A, Hou M, Xi R, Zeng X, Shah SA. Prompt-eng: healthcare prompt engineering: Revolutionizing healthcare applications with precision prompts. In: Companion Proceedings of the ACM Web Conference 2024: 2024; 2024: 1329–1337.
  32. [52]Sweller J, Van Merrienboer JJ, Paas FG. Cognitive architecture and instructional design. Educational Psychol Rev. 1998;10:251–96. · DOI · Paper page
  33. [53]Mamede S, Schmidt HG, Rikers R. Diagnostic errors and reflective practice in medicine. J Eval Clin Pract. 2007;13(1):138–45. 17286736 · DOI
  34. [57]Singh H, Meyer AN, Thomas EJ. The frequency of diagnostic errors in outpatient care: estimations from three large observational studies involving US adult populations. BMJ Qual Saf. 2014;23(9):727–31. 24742777 PMC4145460 · DOI · Paper page
  35. [58]Cabitza F, Rasoini R, Gensini GF. Unintended consequences of machine learning in medicine. JAMA. 2017;318(6):517–8. 28727867 · DOI · Paper page
  36. [59]Kohn LT, Corrigan JM, Donaldson MS. Institute of Medicine. To err is human: building a safer health system. In.: Washington, DC: National Academy Press; 2000. 25077248
  37. [60]Wiens J, Saria S, Sendak M, Ghassemi M, Liu VX, Doshi-Velez F, Jung K, Heller K, Kale D, Saeed M. Do no harm: a roadmap for responsible machine learning for health care. Nat Med. 2019;25(9):1337–40. 31427808 · DOI · Paper page
  38. [61]Cascella M, Montomoli J, Bellini V, Bignami E. Evaluating the feasibility of ChatGPT in healthcare: an analysis of multiple clinical and research scenarios. J Med Syst. 2023;47(1):33. 36869927 PMC9985086 · DOI · Paper page
  39. [63]Bai Y, Kadavath S, Kundu S, Askell A, Kernion J, Jones A, Chen A, Goldie A, Mirhoseini A, McKinnon C. Constitutional AI: harmlessness from Ai feedback. ArXiv Preprint arXiv:221208073 2022.
  40. [64]Jo E, Song S, Kim J-H, Lim S, Kim JH, Cha J-J, Kim Y-M, Joo HJ. Assessing GPT-4’s performance in delivering medical advice: comparative analysis with human experts. JMIR Med Educ. 2024;10(1):e51282. 38989848 PMC11250047 · DOI
  41. [65]Small WR, Wiesenfeld B, Brandfield-Harvey B, Jonassen Z, Mandal S, Stevens ER, Major VJ, Lostraglio E, Szerencsy A, Jones S. Large Language model–based responses to patients’ in-basket messages. JAMA Netw Open. 2024;7(7):e2422399–2422399. 39012633 PMC11252893 · DOI
  42. [66]Mirzaei T, Amini L, Esmaeilzadeh P. Clinician voices on ethics of LLM integration in healthcare: a thematic analysis of ethical concerns and implications. BMC Med Inf Decis Mak. 2024;24(1):250. PMC11382443 39252056 · DOI
  43. [67]Rajkomar A, Hardt M, Howell MD, Corrado G, Chin MH. Ensuring fairness in machine learning to advance health equity. Ann Intern Med. 2018;169(12):866–72. 30508424 PMC6594166 · DOI · Paper page
  44. [68]Wang MH, Jiang X, Zeng P, Li X, Chong KK-L, Hou G, Fang X, Yu Y, Yu X, Fang J. Balancing accuracy and user satisfaction: the role of prompt engineering in AI-driven healthcare solutions. Front Artif Intell. 2025;8:1517918. 40017484 PMC11865202 · DOI
  45. [69]Meskó B, Topol EJ. The imperative for regulatory oversight of large Language models (or generative AI) in healthcare. NPJ Digit Med. 2023;6(1):120. 37414860 PMC10326069 · DOI · Paper page

Cited by

Sorted by citations

Authors
Esmaeilzadeh, P.
Affiliations
Florida International University (US)
Corresponding author
Esmaeilzadeh, Pouyan
Venue
BMC Medical Informatics and Decision Making
Published
2025-09-29
Volume
25
Issue
1
Pages
342-342
ISSN
1472-6947 (ISSN-L)
OpenAlex
W4414614279
Cited by
26
References
19
Citations by year
2026: 24 · 2025: 1 · 2024: 1
FWCI
5.12
Type
journal article
Language
en
Open access
Locations
  • BMC Medical Informatics and Decision Making (publishedVersion, cc-by)
  • Europe PMC (PubMed Central) (publishedVersion, cc-by)
  • PubMed (publishedVersion)
  • PubMed Central (publishedVersion, cc-by)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
Topics
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
  • Social Sciences › Safety Research › Ethics and Social Impacts of AI
  • Physical Sciences › Computer Science › Artificial Intelligence › Explainable Artificial Intelligence (XAI)
Keywords
large language models, prompt engineering, clinical ethics, patient safety, artificial intelligence in healthcare, algorithmic bias, ethical decision-making, end-of-life care, elderly patients, cultural factors, clinical decision support, OpenAI o3, Claude Sonnet 4
MeSH terms
Clinical Decision-Making, Artificial Intelligence, Humans, Language, Patient Safety

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