![dicomdir file dicomdir file](https://laitek.com/wp-content/uploads/2020/06/shutterstock_492447757.jpg)
![dicomdir file dicomdir file](https://alemhealth.zendesk.com/hc/article_attachments/360006879239/SS5.1.png)
Path3 = os.path.join(path2, series.SeriesDescription) Series.SeriesDescription = re.sub(r'\W', "", series.SeriesDescription)# illegal symbols occasionally exist, remove them after regular matching Try: os.mkdir(path2) # Create a directoryĪll_series = study.children # go through each serie Path2 = os.path.join(path1, study.StudyID) Studies = patient_record.children # got through each study
![dicomdir file dicomdir file](https://alemhealth.zendesk.com/hc/article_attachments/360006860380/SS21.png)
Dicomdir file software#
Try: os.mkdir(path1) # Create a directory DICOMDIR is file that is used when software saves DICOM file to external storage device such as CD/DVD, USB flash drive, etc. Path1 = os.path.join(base_dir, patient_name)# splicing directory However, different programs may use the DICOMDIR file type for different types of data. Sante DICOMDIR Viewer can be used to get a quick overview of the DICOMDIRs structure and contents. The only thing that needs to be modified is line 7 path = ‘ ’Fill in the address of the DICOMDIR file, such as C:\DICOMDIR import osįrom pydicom.filereader import read_dicomdirįor patient_record in dicom_dir.patient_records: # got through each patient The DICOMDIR file extension indicates to your device which app can open the file. Sante DICOMDIR Viewer is a free DICOM directory viewer. This application is a simple drag and drop program. Occasionally, the program will stop due to the wrong directory name where the DICOM image is located DICOMDir is a simple, easy to use application specially designed to help you create a DICOMDIR file. However, images of multiple patients and multiple sequences are stored together, and it is difficult to distinguish which images belong to the same patient.Īccording to the matching DICOMDIR file, the pydicom module of python can be used to operate the DICOMDIR file and convert the above DICOM image into hierarchical storage.īe sure to back up the original file before running the code. Mixed storage of DICOM images, including multiple patients, multiple study times (examination times), multiple and multiple sequences, multiple images.