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
Describe the bug
The comparision of two codes does mapping from SRT codes to SCT. If comparision is done on a code that has SRT as the scheme designator but is not in the dictionary of SRT to SCT mappings, the comparision will throw a KeyError.
Expected behavior
If the mapping from SRT to SCT is not possible I would excpect the comparision to return False if the codes are not equal.
Steps To Reproduce
wrong_srt_code=Code("111729", "SRT", "Specimen storage") # Is actually a DCM codesct_code=Code("127790008", "SCT", "Staining")
wrong_srt_code==sct_code
Your environment
Please use the pydicom.env_info module (available in pydicom 2 or later)
to gather information about your environment and paste it into the issue:
Describe the bug
The comparision of two codes does mapping from
SRT
codes toSCT
. If comparision is done on a code that hasSRT
as the scheme designator but is not in the dictionary ofSRT
toSCT
mappings, the comparision will throw aKeyError
.Expected behavior
If the mapping from
SRT
toSCT
is not possible I would excpect the comparision to returnFalse
if the codes are not equal.Steps To Reproduce
Throws:
Your environment
Please use the
pydicom.env_info
module (available in pydicom 2 or later)to gather information about your environment and paste it into the issue:
The text was updated successfully, but these errors were encountered: