Skip to content

Commit

Permalink
Merge pull request #258 from wetzelj/fix/filter_exception2
Browse files Browse the repository at this point in the history
explicitly check for DataElement before reference value
  • Loading branch information
vsoch authored Sep 11, 2023
2 parents 40dc961 + 0fcbe2c commit 467b8bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
Referenced versions in headers are tagged on Github, in parentheses are for pypi.

## [vxx](https://github.com/pydicom/deid/tree/master) (master)
- Exception with missing filters for non-string VR [#256](https://github.com/pydicom/deid/issues/256) (0.3.23)
- Allow filter tag names to be 0x-prefix hex numbers so private tags can be referenced in recipes [#253](https://github.com/pydicom/deid/issues/253) (0.3.22)
- Fix incorrect coordinate definition for GE CT [#249](https://github.com/pydicom/deid/issues/249)
- Circular import error [#247](https://github.com/pydicom/deid/issues/247) (0.3.21)
Expand Down
4 changes: 2 additions & 2 deletions deid/dicom/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import re

from pydicom.dataset import Dataset
from pydicom.dataset import DataElement, Dataset

from deid.logger import bot

Expand Down Expand Up @@ -152,7 +152,7 @@ def empty(self, field):
return len(content) == 0

# This is the case of a data element
elif not isinstance(content, str):
elif isinstance(content, DataElement):
content = content.value

if content == "":
Expand Down
2 changes: 1 addition & 1 deletion deid/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__copyright__ = "Copyright 2016-2023, Vanessa Sochat"
__license__ = "MIT"

__version__ = "0.3.22"
__version__ = "0.3.23"
AUTHOR = "Vanessa Sochat"
AUTHOR_EMAIL = "[email protected]"
NAME = "deid"
Expand Down

0 comments on commit 467b8bd

Please sign in to comment.