Evil-DICOM
Evil-DICOM copied to clipboard
Null value for tag VR=DT
Hi,
I think I've found an issue for tags with VR=DT at least for AcquisitionDateTime.
The reader found the tag 0008,002A, but as you can see in the screenshot, the value is null.
I've tested with several series from different sources, and at least the 0008002A tag always has the problem.
And here is how I access the tags;
var elements = DICOMObject
.Read(dicomFilename).Elements
.ToList();
foreach (IDICOMElement element in elements)
{
var vm = 0;
var value = new StringBuilder();
if (element.DatType != typeof(byte))
{
foreach (var e in element.DData_)
{
if (value.Length > 0)
value.Append("\\");
vm += 1;
value.Append(e.ToString());
}
else
{
var array = (element.DData_ as List<byte>).ToArray();
value.Append(ByteHelper.ByteArrayToHexString(array));
vm = 1;
}
...
}
And here what I expect
Regards.