You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current DICOM tag string handling implementation may have sneaky errors due to the storage of DICOM tags as strings. This can lead to various manifestations of bugs, especially when comparing tag strings. While storing these tags as int could address these issues, the codebase might need to support private tags in the future, necessitating a string representation.
Proposed Solution
Given these considerations, we need to:
String Handling:
Keep the tag representation as a string to support potential private tags.
Ensure consistent conversion methods across the codebase to avoid string comparison issues, such as capitalization and zero-padding.
Add normalization for tag strings to ensure consistency in tagcache methods.
Documentation:
Improve documentation for tagcache to describe how tag strings are formatted.
Update dicomTagToString method documentation to clarify string formatting expectations (and just have only one static method in the ctkDICOMDatabase class).
Include thorough documentation in get/set methods describing input formatting and output formats.
Unit Testing:
Create robust unit tests for DICOM tag handling to prevent regressions.
Reference Information
A regression related to #1154 was identified in this Discourse thread and a simple fix was proposed in #1203.
The text was updated successfully, but these errors were encountered:
Reference commits and discussions
Description
The current DICOM tag string handling implementation may have sneaky errors due to the storage of DICOM tags as strings. This can lead to various manifestations of bugs, especially when comparing tag strings. While storing these tags as
int
could address these issues, the codebase might need to support private tags in the future, necessitating a string representation.Proposed Solution
Given these considerations, we need to:
String Handling:
Documentation:
dicomTagToString
method documentation to clarify string formatting expectations (and just have only one static method in the ctkDICOMDatabase class).get/set
methods describing input formatting and output formats.Unit Testing:
Reference Information
A regression related to #1154 was identified in this Discourse thread and a simple fix was proposed in #1203.
The text was updated successfully, but these errors were encountered: