I am running into an issue that I am searching for second opinion.
I have a DCM file that I would like to retrieve some values.
The following code works:
var sopUID = dicomDataset.GetSingleValueOrDefault<string>(DicomTag.SOPInstanceUID, "");
if (sopUID == "")
{
sopUID = "(not set/found)";
}
editing code also works for retrieving:
However, when trying to retrieve DicomTag.MediaStorageSOPInstanceUID:
var sopInstUID = dicomDataset.GetSingleValueOrDefault<string>(DicomTag.MediaStorageSOPInstanceUID, "");
if (sopInstUID == "")
{
sopInstUID = "(not set/found)";
}
always returns not set/found
Same behavior for “DicomTag.ImplementationClassUID”
Why can't I read these values?
Many thanks for the prompt reply.
The file seems to have the Group Length values.