Available in LEADTOOLS Medical Imaging toolkits.
DICOM Directories: Adding DICOM Files/Data Sets to DICOM Directories
LDicomDir::InsertDicomFile
LDicomDir::InsertDicomDS