suever / pydicom-experimental

pydicom test
0 stars 1 forks source link

missing tag in private dictionary #97

Closed suever closed 9 years ago

suever commented 9 years ago

From add...@gmail.com on February 04, 2011 13:47:59

I have some dicom files from a Phillips scanner.

pydicom gives the following exception when trying to read the file Tag (2001, 105f) not found in DICOM dictionary

however, this tag is in the private dictionaries: 'Philips Imaging DD 001': ... '2001xx5f': ('SQ', '1', 'Stack Sequence', ''),

I would prefer not to ignore these values ala the proposed solution to issue #91 incase I need to save the data after loading it. What version of the product are you using? pydicom 0.9.5

Original issue: http://code.google.com/p/pydicom/issues/detail?id=97

suever commented 9 years ago

From add...@gmail.com on February 04, 2011 12:05:08

I solved the problem by just adding the tags that I found to the main dicom dictionary as follows:

'2001105F': ('SQ', '1', 'Stack Sequence', ''), '20019000': ('SQ', '1', 'Unknown', ''), '20011068': ('SQ', '1', 'Unknown', ''), '20051389': ('SQ', '1', 'Unknown', ''), '20051080': ('SQ', '1', 'Unknown', ''), '20051083': ('SQ', '1', 'Unknown', ''), '20051084': ('SQ', '1', 'Unknown', ''), '20051085': ('SQ', '1', 'Unknown', ''), '2005109e': ('SQ', '1', 'Unknown', ''), '20051371': ('SQ', '1', 'Unknown', ''), '20051402': ('SQ', '1', 'Unknown', ''), '2005140E': ('SQ', '1', 'Unknown', ''), '2005140F': ('SQ', '1', 'Unknown', '')

It seems to be restricted to SQ elements since the dictionaryVR() function does not seem to look up tags in the private dictionaries.

suever commented 9 years ago

From darcymason@gmail.com on February 21, 2011 09:48:02

This issue was closed by revision 861d859b4f .

Status: Fixed