DICOM @ OFFIS Forum Index DICOM @ OFFIS
Discussion Forum for OFFIS DICOM Tools
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FAQ #25: How can I get my own UID root and use it with DCMTK

 
Post new topic   Reply to topic    DICOM @ OFFIS Forum Index -> DCMTK - FAQ
View previous topic :: View next topic  
Author Message
Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team


Joined: 02 Nov 2004
Posts: 1156
Location: Oldenburg, Germany

PostPosted: Tue, 2004-11-09, 10:25    Post subject: FAQ #25: How can I get my own UID root and use it with DCMTK Reply with quote

Question How can I get my own UID root and use that with DCMTK?

Exclamation 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:
http://www.dclunie.com/medical-image-faq/html/part2.html#UID
http://www.dclunie.com/medical-image-faq/html/part8.html#UIDRegistration
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
Code:
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
Code:
ADD_DEFINITIONS(-DSITE_UID_ROOT=\\\"your_uid_root\\\")
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.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DICOM @ OFFIS Forum Index -> DCMTK - FAQ All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.21-7 (Debian) © 2001, 2005 phpBB Group