Evaluating the Effectiveness of Large Language Models in Converting Clinical Data to FHIR Format
Source abstract
Abstract
The conversion of unstructured clinical data into structured formats, such as Fast Healthcare Interoperability Resources (FHIR), is a critical challenge in healthcare informatics. This study explores the potential of large language models (LLMs) to automate this conversion process, aiming to enhance data interoperability and improve healthcare outcomes. The effectiveness of various LLMs in converting clinical reports into FHIR bundles was evaluated using different prompting techniques, including iterative correction and example-based prompting. The findings demonstrate the critical role of prompt engineering, with the two-step approach shown to significantly improve accuracy and completeness. While few-shot learning enhanced performance, it also introduced a risk of overreliance on examples. The performance of the LLMs is assessed based on the precision, hallucination rate, and resource mapping accuracy across mammography and dermatological reports from two clinics, providing insights into effective strategies for reliable FHIR data conversion and highlighting the importance of tailored prompting strategies.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Radiomics and Machine Learning in Medical Imaging · Machine Learning in Healthcare · Artificial Intelligence in Healthcare and Education
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Top Health Tech, 08035 Barcelona, Spain
Departament de Projectes i Construccio, Universitat Politecnica de Catalunya, 08034 Barcelona, Spain
Funding
Torres Quevedo
References (43)
Show source-provided references
1. Devlin, J., Chang, M., Lee, K., and Toutanova, K. (2019, January 2–7). BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT, Minneapolis, MN, USA.
2. Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. (2019). RoBERTa: A Robustly Optimized BERT Pretraining Approach. arXiv.
3. Sanh, V., Debut, L., Chaumond, J., and Wolf, T. (2019). DistilBERT, a distilled version of BERT: Smaller, faster, cheaper and lighter. arXiv.
4. Vaswani, A., Shazeer, N.M., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, L., and Polosukhin, I. (2017). Attention is All you Need. Adv. Neural Inf. Process. Syst., 30.
5. Comparing Physician and Artificial Intelligence Chatbot Responses to Patient Questions Posted to a Public Social Media Forum10.1001/jamainternmed.2023.1838 ↗
6. Cusidó, J., Solé-Vilaró, L., Marti-Puig, P., and Solé-Casals, J. (2024). Assessing the Capability of Advanced AI Models in Cardiovascular Symptom Recognition: A Comparative Study. Appl. Sci., 14.10.3390/app14188440 ↗
7. Multimodal machine learning in precision health: A scoping review10.1038/s41746-022-00712-8 ↗
8. Advancing EHR analysis: Predictive medication modeling using LLMs10.1016/j.is.2025.102528 ↗
9. Hashir, M., and Sawhney, R. (2020). Towards unstructured mortality prediction with free-text clinical notes. J. Biomed. Inform., 108.10.1016/j.jbi.2020.103489 ↗
10. Designing interoperable health care services based on Fast Healthcare Interoperability Resources: Literature review10.2196/44842 ↗
11. Exploring the Impact and Evolution of Fast Healthcare Interoperability Resources (FHIR) On Healthcare Systems, Personal Health Records and Data Security
12. Developing a scalable FHIR-based clinical data normalization pipeline for standardizing and integrating unstructured and structured electronic health record data10.1093/jamiaopen/ooz056 ↗
13. Bender, D., and Sartipi, K. (2013, January 20–22). HL7 FHIR: An Agile and RESTful approach to healthcare information exchange. Proceedings of the 26th IEEE International Symposium on Computer-Based Medical Systems, Porto, Portugal.10.1109/CBMS.2013.6627810 ↗
14. SMART on FHIR: A standards-based, interoperable apps platform for electronic health records10.1093/jamia/ocv189 ↗
15. Mikolov, T., Chen, K., Corrado, G., and Dean, J. (2013, January 2–4). Efficient Estimation of Word Representations in Vector Space. Proceedings of the 1st International Conference on Learning Representations, ICLR 2013, Scottsdale, AZ, USA.
16. Pennington, J., Socher, R., and Manning, C.D. (2014, January 25–29). Glove: Global Vectors for Word Representation. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing, EMNLP 2014, Doha, Qatar.10.3115/v1/D14-1162 ↗
17. Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., and Sutskever, I. (2025, February 16). Language Models are Unsupervised Multitask Learners. Available online: https://storage.prod.researchhub.com/uploads/papers/2020/06/01/language-models.pdf.
18. Brown, T.B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., and Askell, A. (2020, January 6–12). Language Models are Few-Shot Learners. Proceedings of the 34th Annual Conference on Neural Information Processing Systems (NeurIPS 2020), Virtual.
19. Jiang, A.Q., Sablayrolles, A., Mensch, A., Bamford, C., Chaplot, D.S., de Las Casas, D., Bressand, F., Lengyel, G., Lample, G., and Saulnier, L. (2023). Mistral 7B. arXiv.
20. Anil, R., Borgeaud, S., Wu, Y., Alayrac, J., Yu, J., Soricut, R., Schalkwyk, J., Dai, A.M., Hauth, A., and Millican, K. (2023). Gemini: A Family of Highly Capable Multimodal Models. arXiv.
21. Shazeer, N., Mirhoseini, A., Maziarz, K., Davis, A., Le, Q.V., Hinton, G.E., and Dean, J. (2017, January 24–26). Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer. Proceedings of the International Conference on Learning Representations (ICLR), Toulon, France.
22. Christophe, C., Kanithi, P.K., Raha, T., Khan, S., and Pimentel, M.A. (2024). Med42-v2: A Suite of Clinical LLMs. arXiv.
23. Saab, K., Tu, T., Weng, W.H., Tanno, R., Stutz, D., Wulczyn, E., Zhang, F., Strother, T., Park, C., and Vedadi, E. (2024). Capabilities of Gemini Models in Medicine. arXiv.
24. McDuff, D., Schaekermann, M., Tu, T., Palepu, A., Wang, A., Garrison, J., Singhal, K., Sharma, Y., Azizi, S., and Kulkarni, K. (2023). Towards Accurate Differential Diagnosis with Large Language Models. arXiv.
25. Adapted large language models can outperform medical experts in clinical text summarization10.1038/s41591-024-02855-5 ↗
26. Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E.H., Le, Q.V., and Zhou, D. (December, January 28). Chain-of-thought prompting elicits reasoning in large language models. Proceedings of the 36th International Conference on Neural Information Processing Systems, Red Hook, NY, USA.
27. Kojima, T., Gu, S.S., Reid, M., Matsuo, Y., and Iwasawa, Y. (’22, January 2024;). Large language models are zero-shot reasoners. Proceedings of the 36th International Conference on Neural Information Processing Systems, Red Hook, NY, USA.
28. Potential of large language models in health care: Delphi study10.2196/52399 ↗
29. Dalmaz, O., Reinhart, T., and Timmerman, M. (2023). Direct Clinician Preference Optimization: Clinical Text Summarization via Expert Feedback-Integrated LLMs, Department of Aeronautics and Astronautics, Stanford University. Stanford CS224N Custom Project, 2023.
30. Improving accuracy of handoff by implementing an electronic health record-generated tool: An improvement project in an academic Neonatal Intensive Care Unit10.1097/pq9.0000000000000329 ↗
31. Ten key considerations for the successful implementation and adoption of large-scale health information technology10.1136/amiajnl-2013-001684 ↗
32. Ayaz, M., Pasha, M.F., Alahmadi, T.J., Abdullah, N.N.B., and Alkahtani, H.K. (2023). Transforming healthcare analytics with FHIR: A framework for standardizing and analyzing clinical data. Healthcare, 11.10.3390/healthcare11121729 ↗
33. Structured information extraction from scientific text with large language models10.1038/s41467-024-45563-x ↗
34. Tam, Z.R., Wu, C.K., Tsai, Y.L., Lin, C.Y., Lee, H., and Chen, Y.N. (2024). Let Me Speak Freely? A Study on the Impact of Format Restrictions on Performance of Large Language Models. arXiv.10.18653/v1/2024.emnlp-industry.91 ↗
35. Dubey, A., Jauhri, A., Pandey, A., Kadian, A., Al-Dahle, A., Letman, A., Mathur, A., Schelten, A., Yang, A., and Fan, A. (2024). The Llama 3 Herd of Models. arXiv.
36. Liu, G., Mao, H., Cao, B., Xue, Z., Johnson, K.M., Tang, J., and Wang, R. (2024). On the Intrinsic Self-Correction Capability of LLMs: Uncertainty and Latent Concept. arXiv.
37. Renze, M., and Guven, E. (2024). The Effect of Sampling Temperature on Problem Solving in Large Language Models. arXiv.10.18653/v1/2024.findings-emnlp.432 ↗
38. Machine Learning for Prediction in Electronic Health Data10.1001/jamanetworkopen.2018.1404 ↗
39. Pfohl, S.R., Cole-Lewis, H., Sayres, R., Neal, D., Asiedu, M.N., Dieng, A., Tomasev, N., Rashid, Q.M., Azizi, S., and Rostamzadeh, N. (2024). A Toolbox for Surfacing Health Equity Harms and Biases in Large Language Models. arXiv.10.1038/s41591-024-03258-2 ↗
40. Kipp, M. (2024). From GPT-3.5 to GPT-4.o: A Leap in AI’s Medical Exam Performance. Information, 15.10.3390/info15090543 ↗
41. Hada, R., Gumma, V., de Wynter, A., Diddee, H., Ahmed, M., Choudhury, M., Bali, K., and Sitaram, S. (2024, January 17–22). Are Large Language Model-based Evaluators the Solution to Scaling Up Multilingual Evaluation? In Proceedings of the Findings of EACL, St. Julian’s, Malta.
42. Al-Onaizan, Y., Bansal, M., and Chen, Y.N. (2024, January 12–16). Large Language Models Can Self-Correct with Key Condition Verification. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, Miami, FL, USA.
43. Li, C., Wang, J., Zhang, Y., Zhu, K., Hou, W., Lian, J., Luo, F., Yang, Q., and Xie, X. (2024). Large Language Models Understand and Can be Enhanced by Emotional Stimuli. arXiv.10.21437/Interspeech.2024-2419 ↗