rexcardan / Evil-DICOM

A C# DICOM Library
168 stars 98 forks source link

Unable to retrieve tag BeamDeliveryDurationLimit (300A,005C) #95

Open crazywill32 opened 2 years ago

crazywill32 commented 2 years ago

When using the selector I get an error when trying to retrieve the tag for beam duration limit.

System.InvalidCastException: 'Unable to cast object of type 'EvilDICOM.Core.Element.Unknown' to type 'EvilDICOM.Core.Element.FloatingPointDouble'.'

I ran my debugger and discovered that the DICOMObject is not correctly identifying this tag. It is being read as null values, but there is data there.

Could we get this added to the library as a supported tag?

In the mean time, any suggestions as to how to read the values?

itwouldbewise commented 2 years ago

It sounds like you have a DICOM file that uses the Implicit VR transfer syntax. In such a case, Evil DICOM would rely on a dictionary lookup found in this file (my version of EvilDICOM is a few years old so that would explain any differences you see)

image

Basically I think you just need to add that tag to the dictionary in that file.