Cleaning of Code Meaning in gdcmclean

16 views
Skip to first unread message

Mathieu Malaterre

unread,
Sep 10, 2025, 6:01:44 AM (13 days ago) Sep 10
to DICOM Forum
Hi folks,

The note about Code Sequence Attributes cleaning is somewhat evasive (*), so I went ahead and provided an implementation for cleaning of Code Meaning in DICOM P10 files.

You can now clean using Coded Entry Data info, for instance:

$ gdcmclean --code_meaning  CodeValue,CodingSchemeDesignator,CodingSchemeVersion input output

This will traverse the DataSet and find all matching Coded Entry Data and 'Empty' (~action code 'Z') the associated Code Meaning.

Feel free to report any issues.

Thanks

(*)
In general, there are no Code Sequence Attributes in this table, since it
is usually safe to assume that coded sequence entries, including private
codes, do not contain identifying information. Exceptions are codes for
providers and staff.
https://dicom.nema.org/medical/dicom/current/output/chtml/part15/chapter_E.html#para_d0913a6e-9386-42b2-b2b3-e87c84cdb304

Jörg Riesmeier

unread,
Sep 10, 2025, 6:22:58 AM (13 days ago) Sep 10
to DICOM Forum
Hi Mathieu,

thank you for improving the tool and for this information. However, cleaning the Code Meaning by setting a zero-length value would violate the Type 1 requirement of the Code Sequence Macro [1]. Or, have I misunderstood your posting?


[1] https://dicom.nema.org/medical/dicom/current/output/chtml/part03/sect_8.8.html


Regards,

Jörg


Mathieu Malaterre

unread,
Sep 10, 2025, 7:21:50 AM (13 days ago) Sep 10
to DICOM Forum
Jörg,

You are absolutely right ! I've made a quick fix:


Thanks
Reply all
Reply to author
Forward
0 new messages