

The FileSet instance behaves as though you’ve applied Modifications to the File-set are first staged, which means that although Modifying a File-set ¶ FileSet and staging ¶īefore we go any further we need to discuss how theįileSet class manages changes to the File-set.

Since empty File-sets aren’t very useful, our next step This will create a completely conformant File-set, however it won’t containĪny SOP instances. For example,įileInstance object for each of the managed Hierarchy like you would with a DICOMDIR dataset. The FileSet class treats a File-set as a flatĬollection of SOP Instances, abstracting away the need to dig down into the
#How do i view a dicomdir file update#
3.940846.78187 Descriptor file ID: (no value available) Descriptor file character set: (no value available) Changes staged for write(): DICOMDIR update, directory structure update Managed instances: PATIENT: PatientID='77654033', PatientName='Doe^Archibald' STUDY: StudyDate=20010101, StudyTime=000000, StudyDescription='XR C Spine Comp Min 4 Views' SERIES: Modality=CR, SeriesNumber=1 IMAGE: 1 SOP Instance SERIES: Modality=CR, SeriesNumber=2 IMAGE: 1 SOP Instance SERIES: Modality=CR, SeriesNumber=3 IMAGE: 1 SOP Instance STUDY: StudyDate=19950903, StudyTime=173032, StudyDescription='CT, HEAD/BRAIN WO CONTRAST' SERIES: Modality=CT, SeriesNumber=2 IMAGE: 4 SOP Instances PATIENT: PatientID='98890234', PatientName='Doe^Peter' STUDY: StudyDate=20010101, StudyTime=000000 SERIES: Modality=CT, SeriesNumber=4 IMAGE: 2 SOP Instances SERIES: Modality=CT, SeriesNumber=5 IMAGE: 5 SOP Instances STUDY: StudyDate=20030505, StudyTime=050743, StudyDescription='Carotids' SERIES: Modality=MR, SeriesNumber=1 IMAGE: 1 SOP Instance SERIES: Modality=MR, SeriesNumber=2 IMAGE: 1 SOP Instance STUDY: StudyDate=20030505, StudyTime=025109, StudyDescription='Brain' SERIES: Modality=MR, SeriesNumber=1 IMAGE: 1 SOP Instance SERIES: Modality=MR, SeriesNumber=2 IMAGE: 3 SOP Instances STUDY: StudyDate=20030505, StudyTime=045357, StudyDescription='Brain-MRA' SERIES: Modality=MR, SeriesNumber=1 IMAGE: 1 SOP Instance SERIES: Modality=MR, SeriesNumber=2 IMAGE: 3 SOP Instances SERIES: Modality=MR, SeriesNumber=700 IMAGE: 7 SOP Instances > print ( fs ) DICOM File-set Root directory: /home/user/env/lib/python3.7/site-packages/pydicom/data/test_files/dicomdirtests File-set ID: PYDICOM_TEST File-set UID. To load an existing File-set just pass a DICOMDIRĭataset or the path to the DICOMDIR file to A more user-friendly way to interact with one is via theįileSet class. While it’s possible to access everything within a File-set using the DICOMDIRĭataset, making changes to an existing File-set quickly becomes complicatedĭue to the need to add and remove directory records, recalculate theīyte offsets for existing records and manage the corresponding file Requirements is in Annex F.5 of Part 3 of the DICOM Standard.

#How do i view a dicomdir file full#
The full list of available record types and their Here we have a 'PATIENT' record, which from Table F.5-1 we see must also contain Patient’s NameĪnd Patient ID elements.
