Obtaining DICOM SOPClassUID

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
Juan Bravo
Posts: 17
Joined: Tue, 2006-05-09, 10:07
Location: Málaga, Spain
Contact:

Obtaining DICOM SOPClassUID

#1 Post by Juan Bravo »

Hello,

For using:

OFCondition performMoveSubOp (DIC_UI sopClass, DIC_UI sopInstance, char *fname)

I need both SOPClassUID & SOPInstanceUID (indeed only SOPClassUID seems to be
really needed for a correct transfer, as I can leave sopInstance parameter empty and
all seems to work fine).

Well.. I've the following information:

(0008,0016) UI =MRImageStorage # 26, 1 SOPClassUID

How do I transform =MRImageStorage into
the needed 1.2.840.10008.5.1.4.1.1.4?

Thanks!

Michael Onken
DCMTK Developer
Posts: 2055
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

Re: Obtaining DICOM SOPClassUID

#2 Post by Michael Onken »

Hi Juan Bravo,

I'm not sure whether I fully understood your problem, however I'll try to answer it :wink:
Juan Bravo wrote: (0008,0016) UI =MRImageStorage # 26, 1 SOPClassUID
This seems to be a dcmdump output. Dcmdump uses the DCMTK-builtin dictionary and some defined constants in the toolkit to translate dictionary names, transfer syntaxes, UIDs etc. from the standard into a human readable form. The translation of UIDs in dcmdump cannot be disabled without modifying DCMTK code as I remember.

So if you use dcmdump output and feed some extracted attributes into your own code, you will have to do the translation yourself. It might help that in dcuid.h constants are defined for (e. g. ) all standard defined SOP Class Names. The constants are called UID_SopClassName, so for MRImageStorage the constant is called UID_MRImageStorage. You can use those UID constants instead of providing the corresponding UID string to the function in DCMTK.

Hope this answers your question,
Michael :)

Juan Bravo
Posts: 17
Joined: Tue, 2006-05-09, 10:07
Location: Málaga, Spain
Contact:

#3 Post by Juan Bravo »

Yes!
This should work.

Thanks Michael :D

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 1 guest