MedicalDataHandler, a research-oriented graphical user interface for DICOM data management
- PMID: 41474038
- DOI: 10.1002/mp.70240
MedicalDataHandler, a research-oriented graphical user interface for DICOM data management
Abstract
Background: Processing DICOM datasets for research and education is challenging due to the format's complexity and frequent patient-specific workflow exceptions. Proper handling demands substantial technical expertise and meticulous care to ensure data fidelity in downstream applications.
Purpose: We developed MedicalDataHandler to streamline the reading, visualization, and processing of DICOM data. By consolidating essential tasks into a user-friendly environment, it minimizes reliance on advanced coding skills and promotes reproducible data handling without custom scripting.
Methods: Implemented in Python with the third-party Dear PyGui toolkit, MedicalDataHandler organizes DICOM files by patient identifiers and groups each patient's radiation therapy (RT) images, structure sets, plans, and doses based on mutual unique identifiers (UIDs). A comprehensive table of patient data enables metadata inspection, data visualization, and data processing. The GUI supports interactive visualization in axial, coronal, and sagittal views, with intuitive scrolling, zooming, panning, and window width/level adjustments. Segmentation labels, colors, and data orientation can be modified on the fly, and hovering over a voxel reveals its image/dose values and relevant segmented structures. Multithreading and multiprocessing enable rapid data reading and conversion to the deep-learning-friendly Nearly Raw Raster Data (NRRD) format. Additional features include metadata inspection, voxel grid resampling, Hounsfield-Unit-to-Relative-Electron-Density mapping, plan-sum dose creation, and partial or bulk data saving options.
Results: We validated MedicalDataHandler with an end-to-end testing approach. DICOM data from 61 radiotherapy patients were processed, and the resulting dataset was used to train a deep-learning-based dose prediction model. MedicalDataHandler streamlined the workflow by eliminating the need for complex, patient-specific code and accelerating the preparation of a research-ready dataset.
Conclusion: MedicalDataHandler streamlines DICOM data management and accelerates preprocessing, serving as a valuable tool for researchers and trainees. Its intuitive interface, flexible editing, and rapid data conversion empower a broader audience to manage DICOM data efficiently and consistently in research and education settings.
Keywords: DICOM; Digital Imaging and Communications in Medicine; GUI; Python; data analysis; data management; data processing; graphical user interface; medical data; research tool.
© 2025 American Association of Physicists in Medicine.
References
REFERENCES
-
- Larobina M, Thirty years of the DICOM standard. Tomography. 2023;9(5):1829‐1838. doi:10.3390/tomography9050145
-
- Mackenzie A, Lewis E, Loveland J, Successes and challenges in extracting information from DICOM image databases for audit and research. Brit J Radiol. 2023;96(1151):20230104. doi:10.1259/bjr.20230104
-
- Mason D, SU‐E‐T‐33: pydicom: an open source DICOM library. Med Phys. 2011;38(6Part10):3493‐3493. doi:10.1118/1.3611983
-
- Gao R, Diallo M, Liu H, et al. Automating High Quality RT Planning at Scale. arXiv(preprint). 2025; v5:arXiv:250111803. https://doi.org/10.48550/arXiv.2501.11803
-
- Everts MH, pynrrd: a pure‐Python module for reading and writing NRRD files into and from numpy arrays. Accessed September 28, 2025 https://github.com/mhe/pynrrd
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
