Commit 9406332
authored
bug: Fix UID lookup and sequence field handling (#292)
* bug: Fix UID lookup and sequence field handling
Fix UID lookup for nested sequence fields in DICOM datasets
Previously, when processing DICOM sequence fields (VR=SQ), the UID lookup logic incorrectly handled nested items within sequences. This caused issues when trying to remove or manipulate specific nested fields using the field specification syntax like (0018,9346)__0__(0008,0104).
The fix ensures that:
Sequence fields with VR=SQ are properly identified and their items are correctly indexed
Each item within a sequence receives a proper UID that includes the parent sequence tag and item index
Nested fields can be targeted using the double-underscore notation with index (e.g., SequenceTag__ItemIndex__NestedTag)
* Update changelog and bump version1 parent ef902be commit 9406332
File tree
4 files changed
+38
-1
lines changed- deid
- dicom
- tests
4 files changed
+38
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| 332 | + | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| |||
347 | 348 | | |
348 | 349 | | |
349 | 350 | | |
| 351 | + | |
350 | 352 | | |
351 | 353 | | |
352 | 354 | | |
| |||
387 | 389 | | |
388 | 390 | | |
389 | 391 | | |
| 392 | + | |
| 393 | + | |
390 | 394 | | |
391 | 395 | | |
392 | 396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
242 | 274 | | |
243 | 275 | | |
244 | 276 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments