DOI QR코드

DOI QR Code

Development of a Python-Based Script Tool for Automated Extraction of Radiation Dose Information

  • Vasileios I. Metaxas (Nicosia General Hospital, State Health Services Organisation) ;
  • Stavros Savvakis (Department of Medical Physics, School of Medicine, University of Patras) ;
  • Christos Dimitroukas (Department of Medical Physics, University Hospital of Patras) ;
  • Fotios O. Efthymiou (Department of Medical Physics, School of Medicine, University of Patras) ;
  • George S. Panayiotakis (Department of Medical Physics, School of Medicine, University of Patras)
  • Received : 2025.08.06
  • Accepted : 2025.10.08
  • Published : 2025.12.31

Abstract

This study aimed to develop and validate an automated Python-based tool for extracting radiation dose information from radiation dose structured reports (RDSRs) generated during fluoroscopically guided procedures performed with mobile C-arms or angiography units. The tool extracts dose-related information from multiple PDF and Digital Imaging and Communications in Medicine (DICOM) RDSRs and exports the data into a Microsoft Excel or JavaScript Object Notation file. PDF parsing was performed using the "PyPDF2" library, and the extracted data organized into DataFrames using the "Pandas" library. DICOM RDSRs were processed using the "Pydicom" library, and data were extracted based on selected DICOM tags. Up to 34 parameters could be extracted, including "basic study information", "accumulated radiation dose indices", and exposure-related parameters during "fluoroscopy" and/or "DSA events". A dose alert feature was included to identify cases where dose indices exceeded "trigger levels" or diagnostic reference levels. The accuracy of this tool was evaluated manually by comparing the extracted data with the original RDSRs. The tool underwent internal validation only. For PDFs, common parsing errors included missing or split text, which were corrected through additional programming effort using regular expression (regex) patterns. After refinement, the tool achieved 100% accuracy for PDF and DICOM formats. The tool enables expedited dose monitoring, protocol analysis, and quality assurance, particularly in facilities without a dose management system. It is implemented as a lightweight script intended for users familiar with Python and command-line execution. This tool was validated on Siemens, Philips, and Ziehm systems and is adaptable to other manufacturers' PDFs and DICOM RDSRs (given a specified series description). Future updates can enable remote access to picture archiving and communication system servers, allowing more automated assessment of radiation dose data.

Keywords

References

  1. Rehani MM, Ciraj-Bjelac O, Vañó E, Miller DL, Walsh S, Giordano BD, et al. ICRP Publication 117. Radiological protection in fluoroscopically guided procedures performed outside the imaging department. Ann ICRP. 2010;40:1-102.
  2. ICRP Publication 105. Radiation protection in medicine. Ann ICRP. 2007;37:1-63.
  3. Dave JK, Gingold EL. Extraction of CT dose information from DICOM metadata: automated Matlab-based approach. AJR Am J Roentgenol. 2013;200:142-145.
  4. Li X, Zhang D, Liu B. Automated extraction of radiation dose information from CT dose report images. AJR Am J Roentgenol. 2011;196:W781-W783.
  5. Lee AM, Ghoshhajra BB. Automatic extraction of comprehensive cardiac CT angiography parameters: a novel program with high accuracy and efficiency. J Digit Imaging. 2014;27:507-513.
  6. Cook TS, Zimmerman SL, Steingall SR, Maidment AD, Kim W, Boonn W W. RADIANCE: an automated, enterprise-wide solution for archiving and reporting CT radiation dose estimates. Radiographics. 2011;31:1833-1846.
  7. Shih G, Lu ZF, Zabih R, Kennedy D, Loftus M, Shih WJ, et al. Automated framework for digital radiation dose index reporting from CT dose reports. AJR Am J Roentgenol. 2011;197:1170-1174.
  8. OpenREM. Free and open source radiation exposure monitoring for the physicist. London: The Royal Marsden, 2019 [cited 2025 Sep 8]. Available from: https://openrem.org/
  9. Siemens Healthineers. Right dose portfolio overview. Right approach to radiation dose management. Forchheim: Siemens Healthineers, 2025 [cited 2025 Sep 8]. Available from: https://www.siemens-healthineers.com/medical-imaging/low-dose/right-dose-portfolio
  10. International Atomic Energy Agency (IAEA). Patient radiation exposure monitoring in medical imaging. Safety Reports Series No. 112. IAEA; 2023.
  11. Shiramis. RDSR-to-Excel: auto extracting dose information from RDSRs and DICOM files. San Francisco (CA): GitHub, 2025 [cited 2025 Sep 8]. Available from: https://github.com/Shiramis/RDSR-to-Excel
  12. Fenniak M, Thoma M. PyPDF2: a pure-Python PDF library. Version 3.0.1. Wilmington (DE): PyPI, 2022 [cited 2025 Sep 8]. Available from: https://pypi.org/project/PyPDF2/
  13. The pandas development team. Pandas-dev/pandas: pandas. Version 1.3.5. Geneva: Zenodo, 2020 [cited 2025 Sep 8]. Available from: https://doi.org/10.5281/zenodo.3509134
  14. Gazoni E, Clark C. OpenPyXL - a Python library to read/write Excel 2010 xlsx/xlsm files. Version 3.1.5. Wilmington (DE): OpenPyXL, 2020 [cited 2025 Sep 8]. Available from: https://foss.heptapod.net/openpyxl/openpyxl
  15. Mason D. Pydicom: an open-source DICOM library for Python. Version 3.0.1. Wilmington (DE): Pydicom, 2023 [cited 2025 Sep 8]. Available from: https://pydicom.github.io/
  16. Stecker MS, Balter S, Towbin RB, Miller DL, Vañó E, Bartal G, et al.; SIR Safety and Health Committee; CIRSE Standards of Practice Committee. Guidelines for patient radiation dose management. J Vasc Interv Radiol. 2009;20:S263-S273.
  17. Metaxas VI, Savvakis S, Skouridi E, Kaolis D, Gkaras G, Hadjilampi C, et al. Typical dose values for intra-operative fluoroscopy during orthopaedic trauma surgery at Larnaca general hospital in cyprus: a five-year retrospective study. Injury. 2025;56:112089.
  18. Vañó E, Miller DL, Martin CJ, Rehani MM, Kang K, Rosenstein M, et al. ICRP Publication 135: diagnostic reference levels in medical imaging. Ann ICRP. 2017;46:1-144.
  19. European Union (EU). Council Directive 2013/59/Euratom of 5 December 2013 laying down basic safety standards for protection against the dangers arising from exposure to ionising radiation, and repealing Directives 89/618/Euratom, 90/641/Euratom, 96/29/Euratom, 97/43/Euratom and 2003/122/Euratom. Brussels: EU, 2014 [cited 2025 Sep 8]. Available from: https://eur-lex.europa.eu/eli/dir/2013/59/oj
  20. Skouridi E, Metaxas V, Kaolis D, Kokona G. Integration of a dose management system in the public hospitals of Cyprus: key areas and initial outcomes. Radiat Prot Dosimetry. 2024;200:2029-2040.