Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date Jitter on %values Lists #175

Closed
wetzelj opened this issue Jun 28, 2021 · 1 comment
Closed

Date Jitter on %values Lists #175

wetzelj opened this issue Jun 28, 2021 · 1 comment

Comments

@wetzelj
Copy link
Contributor

wetzelj commented Jun 28, 2021

During the deidentification of a study a situation was encountered where the StudyDate value existed within a private dicom tag. This tag (0029,1019) was of data type LO, but contained the StudyDate value:

(0029,1019) : LO Len: 8 <Unknown Tag> Value: [20100526]
We attempted to handle this using current recipe functionality:

%values testing 
FIELD StudyDate 
%header 
JITTER values:testing -3241

However, performing these actions did not jitter the value in the Private tag.

Root Cause
pydicom/deid (deid\dicom\actions.py - jitter_timestamp())
This function expressly performs JITTER only if the DICOM VR is DT or DA.

Idea
Figure out how to handle non-date typed values. We could attempt to parse the string representations of the DA/DT types, and if it doesn't produce an exception, jitter it.

@vsoch
Copy link
Member

vsoch commented Jul 7, 2021

This is closed by #181

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants