[Insight-developers] DICOM UID Generation + Mac address

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Jan 17 16:32:10 EST 2005


Hello,

	Ok I think I am pretty much done with the DICOM stuff in ITK for the 
release. I just want to double check with you it's alright.

1. GDCM take also in account the "Serie Instance UID". Therefore even if 
there are two seriies (same study) within the same dir, only one will be 
picked.

2. GDCM now uses the new ITK DICOM radical to generate the DICOM files. 
So far I overrides:

[SOP Instance UID]
[Media Stored SOP Instance UID]
[Study Instance UID]
[Series Instance UID]
[Frame of Reference UID]

And the algorithm is:

uid = s1 + s2 + s3

s1 = 1.2.826.0.1.3680043.2.1125 // ITK radical

s2 = Mac address

s3 = Date + Time


Then for "SOP Instance UID" I also append the image number. I did a 
static int, and I increment it each time I write the image.

The only remaining -potential- problem is for Study Instance UID, Series 
Instance UID and Frame of Reference UID. I am not sure what people 
usally append to those strings. I'll investigate, meanwhile I just put a 
different number for those 3. (any comments David?)


The implementation for the Mac address gave me a lot of troubles, so 
there is a chance it does not work on your plateform. So far I only 
tested it on Linux, MacOSX, Sun Sparc and Win32.

Mathieu




More information about the Insight-developers mailing list