Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransferSyntaxUID is duplicated when saving generated DICOM files #34

Closed
nroduit opened this issue Oct 27, 2018 · 1 comment
Closed

Comments

@nroduit
Copy link
Owner

nroduit commented Oct 27, 2018

From this post

Also, I did notice that once I got generating Weasis files, the TransferSynthaxUID somehow goes in there twice (presumably as during the MPR process all DICOM tags from the parent are copied over), this can bother some DICOM viewers/PACS systems. Hence I added in the blirp just below my edit above:

// check to see if the transfer synthax UID tag is present, if so, kick it out as dcm4chee adds it in
if(dcm.contains(Tag.TransferSyntaxUID))
{
dcm.remove(Tag.TransferSyntaxUID);
LOGGER.warn("Removing duplicate TransferSynthax UID");
}

@nroduit
Copy link
Owner Author

nroduit commented Oct 27, 2018

Result of dump with dcmtk toolkit:

# Dicom-Meta-Information-Header
# Used TransferSyntax: Little Endian Explicit
(0002,0000) UL 170                                      #   4, 1 FileMetaInformationGroupLength
(0002,0001) OB 00\01                                    #   2, 1 FileMetaInformationVersion
(0002,0002) UI =CTImageStorage                          #  26, 1 MediaStorageSOPClassUID
(0002,0003) UI [2.25.200174372956334864864644021046400145162] #  44, 1 MediaStorageSOPInstanceUID
(0002,0010) UI =LittleEndianImplicit                    #  18, 1 TransferSyntaxUID
(0002,0012) UI [1.2.40.0.13.1.3]                        #  16, 1 ImplementationClassUID
(0002,0013) SH [dcm4che-null]                           #  12, 1 ImplementationVersionName

# Dicom-Data-Set
# Used TransferSyntax: Little Endian Implicit
(0002,0010) UI =LittleEndianImplicit                    #  18, 1 TransferSyntaxUID
(0008,0005) CS [ISO_IR 100]                             #  10, 1 SpecificCharacterSet
(0008,0008) CS [DERIVED\SECONDARY\MPR]                  #  22, 3 ImageType

(0002,0010) UI =LittleEndianImplicit should not be in the dataset but only in meta-information header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant