Kiyokawa / pydicom

Automatically exported from code.google.com/p/pydicom
0 stars 0 forks source link

missing tag in private dictionary #97

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 reported on code.google.com by add...@gmail.com on 4 Feb 2011 at 6:47

GoogleCodeExporter commented 8 years ago
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.

Original comment by add...@gmail.com on 4 Feb 2011 at 8:05

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 861d859b4f.

Original comment by darcymason@gmail.com on 21 Feb 2011 at 5:48