Get a list of all DICOM tags

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
phreak
Posts: 4
Joined: Fri, 2005-07-29, 00:13

Get a list of all DICOM tags

#1 Post by phreak »

Hi,

Really new to DICOM and dcmtk and loving it. Anyways, I'm looking for a way to generate list of all the possible standard DICOM tags (tag as in a pair, group and element). Is there any simple way to do this with dcmtk without opening a DICOM file (ie: any tag factory or something like that)?

Thanks in advance...

Marco Eichelberg
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 1449
Joined: Tue, 2004-11-02, 17:22
Location: Oldenburg, Germany
Contact:

#2 Post by Marco Eichelberg »

DCMTK maintains a dictionary of all standard tags known to DCMTK, which can be compiled into the application or loaded from a text file at application startup (or both). Look at class DcmDataDictionary in dcmdata/include/dcdict.h which offers iterators allowing you to iterate over all tags in the dictionary. There are access methods that allow you to retrieve tag, name, VR, VM range etc. of each of the tags.

phreak
Posts: 4
Joined: Fri, 2005-07-29, 00:13

#3 Post by phreak »

Hey thanks, that's exactly what I needed!

Cheers!

Post Reply

Who is online

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