The Slicer script repository includes many python scripting examples of common Slicer actions including manipulating DICOM database details.
This thread details some of that
The Slicer script repository includes many python scripting examples of common Slicer actions including manipulating DICOM database details.
This thread details some of that