Hi, i am new to the dcmtk, so maybe this question will sound trivial to some board members.
I have several dicom files, and some of them contain private tags.
It looks like following:
Code: Select all
0009, 0000 Group Length, UL, 1, somenumber
0009, 0010 Private Creator, Lo, 1, sometext
0009, 0011 Private Creator, Lo, 1, whatiwant
0009, 0012 Private Creator, Lo, 1, sometext
What i'm trying to do is, to determin if the current dicom file, contains the whatiwant string, which btw. appears somewhere in the block and not always on the 0011 position. I tried searching the DcmDataDictionary for "PrivateCreator" or "Private Creator". Which looked something like that:
Code: Select all
DcmTagKey tag = *dict.findEntry("Private Creator");
myDcmDataset->findAndGetOFString(tag, value);
But this seems to be the wrong way to do it, since it doesn't work. So maybe someone here can describe how to solve this problem or push me in the right direction.