Automated information extraction from echocardiography reports for the development of a congenital heart disease database
Keywords:
Congenital heart disease, Apgar Score, Data extraction, Optical character recognition (OCR), Artificial intelligenceAbstract
Background: Congenital Heart Disease (CHD) is common in Thailand. Manual patient registry is time and labor intensive.
Objective: The aim of this study was to evaluate an automated system for a CHD registry from echocardiography reports.
Methods: An automated data extraction workflow was developed using N8N as the primary integration platform. The system processed image-based echocardiography reports, beginning with Optical Character Recognition (OCR) to convert images to text. Subsequently, an agentic AI, powered by the ChatGPT-4o model, extracted key clinical information, transforming unstructured text into structured JSON data according to a specifically designed instruction set. This structured data was then automatically populated into a Google Sheet, which worked as the patient registry database. Accuracy was evaluated by comparing the system output against data manually verified by a pediatric cardiologist. Efficiency was assessed by comparing the consuming time of automated process with manual data entry method.
Results: A total of 301 echocardiography reports were processed. The accuracy of the automated system to identify the main diagnosis and additional diagnoses were 86.7% and 88.0% respectively. The automated system significantly reduced the average processing time from 84.0 seconds with manual entry to 12.3 seconds per report (a 71.7-second reduction, p value <0.001). The system had a process failure rate of 0.997% and a minor extraction issue rate of 9.9%.
Conclusion: The new developed system proves to be an accurate, efficient, and reliable method for CHD patient registry from existing clinical reports.
Downloads
References
Hoffman JIE, Kaplan S. The incidence of congenital heart disease. J Am Coll Cardiol. 2002;39:1890-1900.
Nicholson C, Strange G, Ayer J, Cheung M, Grigg L, Justo R, et al. A national Australian congenital heart disease registry; methods and initial results. Int J Cardiol Congenit Heart Dis. 2024;17:100538.
Watelle L, Roy LO, Lauzon-Schnitka J, Newell G, Dumas A, Nadeau A, et al. The Quebec congenital heart disease registry: A model of prospective databank to facilitate research in congenital cardiology. CJC Pediatr Congenit Heart Dis. 2024;3:57-66.
Silva LM, Kuipers IM, Van Den Heuvel F, Mendes R, Berger RMF, Van Beynum IM, et al. Kin Cor, a national registry for paediatric patients with congenital and other types of heart disease in the Netherlands: Aims, design and interim results. Neth Heart J. 2016;24:628-39.
CipherNutz. N8N healthcare automation: How it works to improve workflows [Internet]. CipherNutz; 2025 Aug 7 [cited 2025 Sep 28]. Available from: https://ciphernutz.com/blog/n8n-healthcare-automation
Szekér S, Fogarassy G, Vathy-Fogarassy Á. A general text mining method to extract echocardiography measurement results from echocardiography documents. Artif Intell Med. 2023;143:102584.
Dong T, Sunderland N, Nightingale A, Fudulu DP, Chan J, Zhai B, et al. Development and evaluation of a natural language processing system for curating a trans-thoracic echocardiogram (TTE) database. Bioengineering (Basel). 2023;10:1307.
Sun W, Cai Z, Li Y, Liu F, Fang S, Wang G. Data processing and text mining technologies on electronic medical records: A review. J Healthc Eng. 2018;2018:4302425.
Chao CJ, Banerjee I, Arsanjani R , Ayoub C , Tseng A , Delbrouck JB, et al. Evaluating large language models in echocardiography reporting: Opportunities and challenges. Eur Heart J Digit Health. 2025;6:326-39.
Barra FL, Rodella G, Costa A, Scalogna A, Carenzo L, Monzani A, et al. From prompt to platform: An agentic AI workflow for healthcare simulation scenario design. Adv Simul (Lond). 2025;10:29.
Fernandez M, Pinto HA, Fernandes LMM, Oliveira JASD, Lima AMSDF, Santana JSS, et al. Interoperability in universal healthcare systems: Insights from Brazil’s experience integrating primary and hospital health care data. Front Digit Health. 2025;7.1622302.
Patil R, Heston TF, Bhuse V. Prompt engineering in healthcare. Electronics. 2024;13:2961.
JSON-based patient data architecture: A novel approach to healthcare information storage in Salesforce CRM [Internet]. ResearchGate; [cited 2025 Sep 28]. Available from: https://www.researchgate.net/publication/389204038_JSONBased_Patient_Data_Architecture_A_Novel_Approach_to_Healthcare_Information_Storage_in_Salesforce_CRM
Ukeje G. Evaluation and design of low code/no code app development platforms to be used by medical professionals. 2023. doi: 10.13140/RG.2.2.14160.42242.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 The Royal College of Pediatricians Of Thailand

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