
I've also seen the AddFile method, but there's no hierarchy there, so I supposed that's for the series files.

But when it comes to building that structure (for example, to create DICOMDIR and Series files for new studies) I can't find a way to set those LowerLeverDirectoryRecords RootDirectoryRecordCollection has an Add method, but it takes a DicomItem, so I take it it's for DicomDataset or DicomTag/Value, and its property LowerLevelDirectoryRecordCollection is an IEnumerable, so no Add there. From that, I was able to understand that the DicomDirectory has a RootDirectoryRecordCollection for Patients, and from there you have LowerLevelDirectoryRecordCollection for Studies, then Series, and then Images. I've successfully read DICOMDIRs, series and even rendered images. LEADTOOLS provides the class, which is derived from, to simplify the process of creating DICOM Directories for file-sets. For instance, th File IDs f the two prvious files would b. Additionally, the link provides access to the LEADTOOLS Installer. The File lD, which is usd by the Dicm Directory to rference an added fiIe, will be th relative path f the file. To see all that LEADTOOLS has to offer, go to Use the following link to register for a LEADTOOLS license file that is required to use this NuGet. This can be done either at construction time or later by using the method DicomDir.Reset.

I've been trying to find a way to use fo-dicom to create a DICOMDIR file, and have it reference several files that contain image series, but so far I can't. The DICOM files in the file-set are assigned File IDs, so that they can be referenced by the DICOMDIR File, which itself, is identified by a File ID of DICOMDIR. This folder is then the destination folder of the DICOMDIR File.
