Ethical implications of using general-purpose LLMs in clinical settings: a comparative analysis of prompt engineering strategies and their impact on patient safety
Open accessAbstract
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.
Integrity signals
Registry
Cites
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.
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 measuredHow 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”
From Large Language Model Hallucinations in Spine Surgery: A Comparative Analysis of Clinician vs Patient-Level Prompts (2026) · cites this paper as [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
Metacognition and cognitive monitoring: A new area of cognitive–developmental inquiry
Flavell, J. H. (1979) · American Psychologist · doi:10.1037/0003-066x.34.10.906 · Cited by 11,282 · cited 1× · see citing works
“This finding aligns with established metacognitive theory, which suggests that explicit self-regulation and monitoring strategies enhance problem-solving performance [46, 47].”
Dissecting racial bias in an algorithm used to manage the health of populations
Obermeyer, Z., Powers, B., Vogeli, C., & Mullainathan, S. (2019) · Science · doi:10.1126/science.aax2342 · Cited by 7,137 · cited 2× · see citing works
“Current clinical AI deployments face significant challenges in adequately addressing core ethical requirements mandated by medical practice [8], as evidenced by documented cases of algorithmic bias [9] and the persistent gap between ethical principles and practical implementation [10].”
The global landscape of AI ethics guidelines
Jobin, A., Ienca, M., & Vayena, E. (2019) · Nature Machine Intelligence · doi:10.1038/s42256-019-0088-2 · Cited by 6,220 · cited 1× · see citing works
“While regulatory frameworks and professional guidelines emphasize the need for evidence-based approaches to ensuring ethical AI deployment [25, 26], systematic evaluation of how specific implementation methods affect ethical outcomes in clinical practice remains limited.”
Floridi, L., Cowls, J., Beltrametti, M., Chatila, R., Chazerand, P., Dignum, V., Luetge, C., Madelin, R., Pagallo, U., Rossi, F., et al. (2018) · Minds and Machines · doi:10.1007/s11023-018-9482-5 · Cited by 4,774 · cited 1× · see citing works
“The healthcare AI ethics community has repeatedly called for empirical research to inform responsible implementation guidelines [10, 24].”
A Survey on Evaluation of Large Language Models
Chang, Y., Wang, X., Wang, J., Wu, Y., Yang, L., Zhu, K., Chen, H., Yi, X., Wang, C., Wang, Y., et al. (2024) · ACM Transactions on Intelligent Systems and Technology · doi:10.1145/3641289 · Cited by 2,842 · see citing works
Ayers, J. W., Poliak, A., Dredze, M., Leas, E. C., Zhu, Z., Kelley, J. B., Faix, D. J., Goodman, A. M., Longhurst, C. A., Hogarth, M., et al. (2023) · JAMA Internal Medicine · doi:10.1001/jamainternmed.2023.1838 · Cited by 2,613 · cited 4× · see citing works
“This finding appears to contradict previous research, which demonstrates that LLM responses to patient-facing queries are often perceived as highly empathetic, sometimes exceeding physician empathy ratings [36, 64, 65].”
InfluentialPrinciples alone cannot guarantee ethical AI
Mittelstadt, B. (2019) · Nature Machine Intelligence · doi:10.1038/s42256-019-0114-4 · Cited by 1,886 · cited 3× · see citing works
“Current clinical AI deployments face significant challenges in adequately addressing core ethical requirements mandated by medical practice [8], as evidenced by documented cases of algorithmic bias [9] and the persistent gap between ethical principles and practical implementation [10].”
Implementing Machine Learning in Health Care — Addressing Ethical Challenges
Char, D. S., Shah, N. H., & Magnus, D. (2018) · New England Journal of Medicine · doi:10.1056/nejmp1714229 · Cited by 1,857 · see citing works
The Importance of Cognitive Errors in Diagnosis and Strategies to Minimize Them
Croskerry, P. (2003) · Academic Medicine · doi:10.1097/00001888-200308000-00003 · Cited by 1,675 · see citing works
Diagnostic error in internal medicine
Graber, M. L., Franklin, N., & Gordon, R. (2005) · Archives of Internal Medicine · doi:10.1001/archinte.165.13.1493 · Cited by 1,549 · see citing works
A Universal Model of Diagnostic Reasoning
Croskerry, P. (2009) · Academic Medicine · doi:10.1097/acm.0b013e3181ace703 · Cited by 1,016 · see citing works
Machine learning in medicine: Addressing ethical challenges
Vayena, E., Blasimme, A., & Cohen, I. G. (2018) · PLOS Medicine · doi:10.1371/journal.pmed.1002689 · Cited by 912 · see citing works
A framework to assess clinical safety and hallucination rates of LLMs for medical text summarisation
Asgari, E., Montaña-Brown, N., Dubois, M., Khalil, S., Balloch, J., Yeung, J. A., & Pimenta, D. (2025) · npj Digital Medicine · doi:10.1038/s41746-025-01670-7 · Cited by 423 · see citing works
Large language models in health care: Development, applications, and challenges
Yang, R., Tan, T. F., Lu, W., Thirunavukarasu, A. J., Ting, D. S. W., & Liu, N. (2023) · Health Care Science · doi:10.1002/hcs2.61 · Cited by 366 · see citing works
Generative AI in medical practice: in-depth exploration of privacy and security challenges
Chen, Y., & Esmaeilzadeh, P. (2024) · Journal of Medical Internet Research · doi:10.2196/53008 · Cited by 353 · see citing works
Self-citationEvaluation framework to guide implementation of AI systems into healthcare settings
Reddy, S., Rogers, W., Makinen, V.-P., Coiera, E., Brown, P., Wenzel, M., Weicken, E., Ansari, S., Mathur, P., Casey, A., et al. (2021) · BMJ Health & Care Informatics · doi:10.1136/bmjhci-2021-100444 · Cited by 230 · see citing works
Evaluating artificial intelligence in medicine: phases of clinical research
Park, Y., Jackson, G. P., Foreman, M. A., Gruen, D., Hu, J., & Das, A. K. (2020) · JAMIA Open · doi:10.1093/jamiaopen/ooaa033 · Cited by 150 · see citing works
Proposing a Principle-Based Approach for Teaching AI Ethics in Medical Education
Weidener, L., & Fischer, M. (2024) · JMIR Medical Education · doi:10.2196/55368 · Cited by 90 · see citing works
The Persuasive Power of Large Language Models
Breum, S. M., Egdal, D. V., Gram Mortensen, V., Møller, A. G., & Aiello, L. M. (2024) · Proceedings of the International AAAI Conference on Web and Social Media · doi:10.1609/icwsm.v18i1.31304 · Cited by 57 · see citing works
Flagged first, then by citations
Research works printed but not linked: 45
- [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
- [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
- [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
- [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
- [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
- [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
- [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
- [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
- [18]Patil R, Heston TF, Bhuse V. Prompt engineering in healthcare. Electronics. 2024;13(15):2961. · DOI
- [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
- [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
- [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
- [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.
- [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
- [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
- [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
- [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
- [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
- [34]Heston TF, Khun C. Prompt engineering in medical education. Int Med Educ. 2023;2(3):198–205. · DOI
- [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
- [37]Nori H, King N, McKinney SM, Carignan D, Horvitz E. Capabilities of gpt-4 on medical challenge problems. ArXiv Preprint arXiv:230313375 2023.
- [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
- [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
- [41]Ball JR, Miller BT, Balogh EP. Improving diagnosis in health care. 2015. 26803862
- [43]Tabish SA. Assessment methods in medical education. International journal of health sciences 2008, 2(2). PMC3068728 21475483
- [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
- [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
- [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
- [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.
- [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.
- [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.
- [52]Sweller J, Van Merrienboer JJ, Paas FG. Cognitive architecture and instructional design. Educational Psychol Rev. 1998;10:251–96. · DOI · Paper page
- [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
- [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
- [58]Cabitza F, Rasoini R, Gensini GF. Unintended consequences of machine learning in medicine. JAMA. 2017;318(6):517–8. 28727867 · DOI · Paper page
- [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
- [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
- [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
- [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.
- [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
- [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
- [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
- [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
- [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
- [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
McLaughlin, N. D., Srinivas, A. N., Lowe, Z. F., Botterbush, K. S., Patel, M. S., & Avila, M. J. (2026) · Neurosurgery Practice · doi:10.1227/neuprac.0000000000000244 · Cited by 1 · see citing works
“2,15,16 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.”
- Authors
- Esmaeilzadeh, P.
- Affiliations
- Florida International University (US)
- Corresponding author
- Esmaeilzadeh, Pouyan
- ORCID
- 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)
- PMC
- PMC12481957
- 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
- gold
- doi.org
- 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