Optimizing internal auditing of surgical records: an AI approach
DOI:
https://doi.org/10.59681/2175-4411.v17.2025.1478Keywords:
Hospital audit, Artifical Intelligence, Machine LearningAbstract
Objective: The aim was to develop a Generative Artificial Intelligence-based hospital audit assistant capable of analyzing and classifying information from surgical medical records, in order to support internal auditing procedures at the Hospital das Clínicas of the Federal University of Pernambuco (HC-UFPE). Methods: The methodology involved training a large language model (LLM) with expert-validated data, followed by performance evaluation using sensitivity, specificity, Kappa index, and Area Under the ROC Curve (AUC-ROC). The database utilized was the Management Application for University Hospitals (AGHU), from which data was extracted in JSON format after pre-processing and treatment using Metabase software. The OpenAI ecosystem was adopted through the customization of ChatGPT, GPT-4o model. We applied prompt engineering followed by fine-tuning techniques during the training process. Results: The virtual assistant developed for hospital auditing demonstrated a sensitivity of 96.8%, specificity of approximately 77%, a Kappa index of 0.78, and AUC-ROC of 86.95%, indicating that the model effectively analyzes medical records with high precision. The results showed that the assistant could effectively replicate human evaluations, demonstrating significant potential for transforming hospital audit practices. Conclusion: It is concluded that the hospital audit assistant can optimize internal processes for the proposed sector, enhancing support, safety, accuracy, and comprehensiveness in medical record auditing.
Downloads
References
Pinheiro MB, Campos RKGG, Maniva SJC de F, Rolim KMC, Bonfim IM. Tecnologias disponíveis para o processo de auditoria interna em classificação de risco: revisão integrativa. Rev Bras Pesqui Em SaúdeBrazilian J Health Res. 2023;25(4):81–8.
Jacomini LDS, Mangiavacchi BM. AUDITORIA HOSPITALAR COMO INSTRUMENTO NA PREVENÇÃO DE ERROS MEDICAMENTOSOS. Múltiplos Acessos. 9 de junho de 2021;6(1):199–207.
Ceretta JC, Seibert RM, Callegaro ARC. Gestão hospitalar: a auditoria operacional como ferramenta estratégica para o controle de desperdícios. Rev Gest E Secr. 1o de março de 2023;14(3):2663–75.
Pimentel LCL, Virginio JPA, Albernaz CB, Souza DP de, Jesus CAC de, Paranaguá TT de B, et al. Avaliação da qualidade dos registros do processo de enfermagem por meio de auditoria retrospectiva. Rev Enferm UERJ. 12 de dezembro de 2023;31:e77316–e77316.
Caixeta FDC, Silva AA, Ferreira MV, Sales RDCA. AUDITORIA EM SAÚDE: NÃO CONFORMIDADES EM REGISTROS DE PRONTUÁRIOS CIRÚRGICOS. Int J Health Sci. 30 de outubro de 2024;3(2):181–2.
White J, Fu Q, Hays S, Sandborn M, Olea C, Gilbert H, et al. A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT [Internet]. arXiv; 2023 [citado 25 de março de 2025]. Disponível em: http://arxiv.org/abs/2302.11382
Liu NF, Lin K, Hewitt J, Paranjape A, Bevilacqua M, Petroni F, et al. Lost in the Middle: How Language Models Use Long Contexts [Internet]. arXiv; 2023 [citado 25 de março de 2025]. Disponível em: http://arxiv.org/abs/2307.03172
An S, Ma Z, Lin Z, Zheng N, Lou JG. Make Your LLM Fully Utilize the Context [Internet]. arXiv; 2024 [citado 25 de março de 2025]. Disponível em: http://arxiv.org/abs/2404.16811
Baker GA, Raut A, Shaier S, Hunter LE, Wense K von der. Lost in the Middle, and In-Between: Enhancing Language Models’ Ability to Reason Over Long Contexts in Multi-Hop QA [Internet]. arXiv; 2024 [citado 25 de março de 2025]. Disponível em: http://arxiv.org/abs/2412.10079
Chang Y, Wang X, Wang J, Wu Y, Yang L, Zhu K, et al. A Survey on Evaluation of Large Language Models [Internet]. arXiv; 2023 [citado 25 de março de 2025]. Disponível em: http://arxiv.org/abs/2307.03109
Verspoor K. “Fighting fire with fire” - using LLMs to combat LLM hallucinations. Nature. junho de 2024;630(8017):569–70.
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Rita de Cássia Almeida Sales, Isaura Romero Peixoto, Shirley da Silva Jacinto de Oliveira Cruz, Wellington Pinheiro dos Santos

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.