8000 When a DICOM file contains two meta information segments, the second segment overwrites the first · Issue #1376 · fo-dicom/fo-dicom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
When a DICOM file contains two meta information segments, the second segment overwrites the first #1376
Closed
@amoerie

Description

@amoerie

Describe the bug
When a DICOM file is opened that has multiple instances of group 0x0002 (= File Meta Information),
the file meta information is taken from the last instance instead of the first.
I'm aware that this file is technically invalid, but we see instances of this in the wild and other tools like dcmdump can properly handle them.
We noticed this because, when trying to render such a DICOM file, the wrong transfer syntax (from the 2nd segment) is used by fo-dicom.

To Reproduce
I will add a unit test that demonstrates the problem, once I figure out how to anonymize the sample file properly.

Expected behavior
The second (and any other) instances of that group should be considered tags belonging to the data, not the meta information.

Environment
Fellow Oak DICOM version: Latest 5.x
OS: Any
Platform: Any

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0