How can I get my own UID root and use that with DCMTK?
UID roots can only be issued by ISO registered bodies and, in general, will cost a registration fee. For details, check the Medical Image Format FAQ at the following URLs:
Once you have your own UID root registered, you can simply re-compile DCMTK using the macro SITE_UID_ROOT:
(for Linux/Solaris users:) after running configure, add the following compiler switch to the CXXFLAGS in file config/Makefile.def
CXXFLAGS= -DSITE_UID_ROOT="your_uid_root" (...rest of definitions...)
and re-compile the toolkit;
(for Windows and VC++ users) add the following code to the file CMakeLists.txt in the main dcmtk folder
re-generate the .dsw and .dsp files (using CMake) and re-compile the toolkit.
The UID generation algorithm in DCMTK may add up to 44 characters to your UID root (34 characters plus the value of an unsigned int counter), make sure that you do not break the 64 character limit on a UID.