DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Wed, 2018-11-21, 10:30

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue, 2018-10-23, 11:56 
Offline

Joined: Tue, 2005-07-12, 13:50
Posts: 73
Location: Erlangen, Germany
Hi all,

today I have received an evaluation copy of dcmckeck. For a quick test, I checked a Secondary Capture Object with veterinary attributes. I suppose that as the tool itself, its built in Data Dictionary is from 2003. So e.g. the output contains messages like this:
Code:
Informational I-06: Attribute is not needed.
   Affected attribute: (0010,2297) PN [Howard^Charles^Stewart]                 #  22, 1 Unknown Tag & Data


So I tried to load a recent dicom.dic from dcmtk 3.6.2 by specifying the DCMDICTPATH environment variable. However, dcmcheck apparently stumbles across the new VRs introduced since 2003:

Code:
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 164): UC
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 165): UR
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 186): UC
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 187): UC
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 227): UR
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 298): UC
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 307): UC
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 1284): UC
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 1286): UC
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 1843): UR
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2078): UR
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2155): UR
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2493): OL
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2494): OL
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2495): OL
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2496): OL
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2508): OL
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2717): OD
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2750): OD
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2808): UC
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2810): UR
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2812): OD
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2814): OL
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 2892): UR
DcmDataDictionary: d:\Data\SVN\external\dcmtk-3.6.2\dcmdata\data\dicom.dic: bad VR field (line 3878): OD


With this dictionary the check of the file is not performed, probably due to this error:
Code:
dcmcheck parser: attribute 'CodeSetExtensionFlag' unknown. in iods/macros/codeseq.mac at line 91
dcmcheck: parse error in iod definition: d:\tools\dcmcheck\iods/sc.iod


Is there any way to solve this issue? Would it be worth a try to delete the "offending" lines from the dicom.dic?

Best Regards,

Markus


Top
 Profile  
 
PostPosted: Tue, 2018-10-23, 12:28 
Offline
OFFIS DICOM Team
OFFIS DICOM Team

Joined: Tue, 2004-11-02, 17:22
Posts: 1220
Location: Oldenburg, Germany
Exactly. DCMCHECK 2.0 is based on DCMTK 3.5.2 and does not yet know about VRs like UC, UR or OL.
If you remove these tags from the data dictionary, this will be one step forward.

There is one more thing you will have to do: DCMCHECK checks if the readable attribute names
in its script files are consistent with these in dicom.dic. This means that you will receive an error
message whenever a DICOM attribute has been renamed in a more recent version of dicom.dic
than the one shipped with DCMCHECK. You can either change the name in dicom.dic, or in
DCMCHECK's scripts, but it's a somewhat ugly piece of work. This is probably the reason for
the error about CodeSetExtensionFlag being unknown.


Top
 Profile  
 
PostPosted: Tue, 2018-10-23, 14:05 
Offline

Joined: Tue, 2005-07-12, 13:50
Posts: 73
Location: Erlangen, Germany
Thanks a lot! We will try that and post the results here.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group