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

generatereport example produces invalid DICOM files #4

Open
fedorov opened this issue Mar 28, 2019 · 0 comments
Open

generatereport example produces invalid DICOM files #4

fedorov opened this issue Mar 28, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@fedorov
Copy link

fedorov commented Mar 28, 2019

@pieper was showing me this demo: https://examples.dcmjs.org/microscopy/generatereport/, and while trying to open the resulting report outside of dcmjs, we realized the example produces an invalid object.

DCMTK dsrdump failed to read it:

$ dsrdump ~/Downloads/report.dcm
W: ReferencedSOPSequence (0008,1199) absent in SR document (type 1)
W: ReferencedSOPSequence (0008,1199) absent in SR document (type 1)
W: ReferencedSOPSequence (0008,1199) absent in SR document (type 1)
W: ReferencedSOPSequence (0008,1199) absent in SR document (type 1)
W: ReferencedSOPSequence (0008,1199) absent in content item (type 1)
W: Reading invalid/incomplete content item IMAGE "1.4.1.1"
E: Reading content item IMAGE "1.4.1.1" (Tag not found)
E: Reading content item CONTAINER "1.4.1" (Tag not found)
E: Reading content item CONTAINER "1.4" (Tag not found)
F: dsrdump: error (Tag not found) parsing file: /Users/fedorov/Downloads/report.dcm

dciodvfy identified a long list of issues:

$ dciodvfy ~/Downloads/report.dcm
Error - Illegal root for UID - "12.4" in (0x0020,0x000d) Study Instance UID
Error - Illegal root for UID - "12.4" in (0x0020,0x000e) Series Instance UID
Error - Illegal root for UID - "12.4" in (0x0020,0x000d) Study Instance UID
Error - Illegal root for UID - "12.4" in (0x0020,0x000e) Series Instance UID
Error - Illegal root for UID - "12.4" in (0x0020,0x000d) Study Instance UID
Error - Illegal root for UID - "12.4" in (0x0020,0x000e) Series Instance UID
Error - Illegal root for UID - "12.4" in (0x0020,0x000d) Study Instance UID
Error - Illegal root for UID - "12.4" in (0x0020,0x000e) Series Instance UID
Error - Illegal root for UID - "12.4" in (0x0020,0x000d) Study Instance UID
Error - Referenced SOP Instance is not listed in CurrentRequestedProcedureEvidenceSequence or PertinentOtherEvidenceSequence but have IMAGE ReferencedSOPInstanceUID missing or empty SOPInstanceUID
Error - Referenced SOP Instance is not listed in CurrentRequestedProcedureEvidenceSequence or PertinentOtherEvidenceSequence but have IMAGE ReferencedSOPInstanceUID missing or empty SOPInstanceUID
Error - Referenced SOP Instance is not listed in CurrentRequestedProcedureEvidenceSequence or PertinentOtherEvidenceSequence but have IMAGE ReferencedSOPInstanceUID missing or empty SOPInstanceUID
Error - Referenced SOP Instance is not listed in CurrentRequestedProcedureEvidenceSequence or PertinentOtherEvidenceSequence but have IMAGE ReferencedSOPInstanceUID missing or empty SOPInstanceUID
Warning - Missing attribute or value that would be needed to build DICOMDIR - Patient ID
Warning - Missing attribute or value that would be needed to build DICOMDIR - Study Date
Warning - Missing attribute or value that would be needed to build DICOMDIR - Study Time
Warning - Missing attribute or value that would be needed to build DICOMDIR - Study ID
EnhancedSR
Error - Missing attribute Type 1 Required Element=<ReferencedSOPSequence> Module=<HierarchicalSeriesReferenceMacro>
Error - Missing attribute Type 1 Required Element=<ReferencedSOPSequence> Module=<HierarchicalSeriesReferenceMacro>
Error - Missing attribute Type 1 Required Element=<ReferencedSOPSequence> Module=<HierarchicalSeriesReferenceMacro>
Error - Missing attribute Type 1 Required Element=<ReferencedSOPSequence> Module=<HierarchicalSeriesReferenceMacro>
Warning - Unrecognized defined term <99dcmjs> for value 1 of attribute <Coding Scheme Designator>
Error - Missing attribute Type 1 Required Element=<ReferencedSOPSequence> Module=<ImageReferenceMacro>
Error - Missing attribute Type 1 Required Element=<ReferencedSOPSequence> Module=<ImageReferenceMacro>
Error - Missing attribute Type 1 Required Element=<ReferencedSOPSequence> Module=<ImageReferenceMacro>
Error - Missing attribute Type 1 Required Element=<ReferencedSOPSequence> Module=<ImageReferenceMacro>
Warning - Unrecognized defined term <99dcmjs> for value 1 of attribute <Coding Scheme Designator>
Error - Unrecognized enumerated value <SCOORD3D> for value 1 of attribute <Value Type>
Error - Empty attribute (no value) Type 1 Required Element=<NumericValue> Module=<NumericMeasurementMacro>
Error - Unrecognized enumerated value <SCOORD3D> for value 1 of attribute <Value Type>
Error - Empty attribute (no value) Type 1 Required Element=<NumericValue> Module=<NumericMeasurementMacro>
Warning - Unrecognized defined term <99dcmjs> for value 1 of attribute <Coding Scheme Designator>
Error - Unrecognized enumerated value <SCOORD3D> for value 1 of attribute <Value Type>
Error - Empty attribute (no value) Type 1 Required Element=<NumericValue> Module=<NumericMeasurementMacro>
Error - Unrecognized enumerated value <SCOORD3D> for value 1 of attribute <Value Type>
Error - Empty attribute (no value) Type 1 Required Element=<NumericValue> Module=<NumericMeasurementMacro>
Warning - Unrecognized defined term <99dcmjs> for value 1 of attribute <Coding Scheme Designator>
Error - Unrecognized enumerated value <SCOORD3D> for value 1 of attribute <Value Type>
Error - Empty attribute (no value) Type 1 Required Element=<NumericValue> Module=<NumericMeasurementMacro>
Error - Unrecognized enumerated value <SCOORD3D> for value 1 of attribute <Value Type>
Error - Empty attribute (no value) Type 1 Required Element=<NumericValue> Module=<NumericMeasurementMacro>
Warning - Unrecognized defined term <99dcmjs> for value 1 of attribute <Coding Scheme Designator>
Error - Unrecognized enumerated value <SCOORD3D> for value 1 of attribute <Value Type>
Error - Empty attribute (no value) Type 1 Required Element=<NumericValue> Module=<NumericMeasurementMacro>
Error - Unrecognized enumerated value <SCOORD3D> for value 1 of attribute <Value Type>
Error - Empty attribute (no value) Type 1 Required Element=<NumericValue> Module=<NumericMeasurementMacro>
Warning - Unrecognized defined term <99dcmjs> for value 1 of attribute <Coding Scheme Designator>
Warning - Attribute is not present in standard DICOM IOD - (0x0020,0x4000) LT Image Comments
Warning - Dicom dataset contains attributes not present in standard DICOM IOD - this is a Standard Extended SOP Class

If you would like to use dsrdump or dcmdump, this Atom package might be handy: https://atom.io/packages/dicom-dump.

@fedorov fedorov added the bug Something isn't working label Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant