Hello all,
Found few posts that reference private tags but different scenarios. The dicom file I am dealing with contains an XML as private tag (VR=”OB”) so the data type stored is “Other Byte” that is represented as string.
My attempt to read the value first was using this code:
var tag = DicomTag.Parse("0x3253, 0x1000");
var readTag = (from dicomItem in dicomDataset
where dicomItem.Tag.Group == tag.Group && dicomItem.Tag.Element == tag.Element
select dicomItem as DicomElement).SingleOrDefault();
var value = readTag == null ? string.Empty : readTag.Get<string>();
Console.WriteLine($"The value private tag is: {value}");
Unfortunately, it generates an error at runtime.
Any help would be greatly appreciated