-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Datetime JITTER Error #122
Comments
We should also think about what happens if there is an exception with parsing... would it be beneficial to set the timestamp to the current timestamp if any exception or error occurs during parsing? I'm thinking that if a user has specified JITTER, they ultimately want the value changed. If something bad happens during parsing, it may be better to default the date to the current date rather than keeping the date unchanged. |
I think this issue would be addressed by #119 - basically doing a get/set based on the datatype. This falls into that bucket of issues. The idea for the parsing also makes sense, we could have a default be the datetime.now(). |
Yes. This was fixed with #119 and covered by test_jitter_timestamp! |
Performing JITTER on fields defined as DICOM "DT" datatype throws an Overflow Exception.
Background:
Per the DICOM specification, the DT Datatype is defined as:
Currently, in deid\utils\actions.py, dateutil.parser.parse is utilized to convert the datetime string to a datetime object. parser.parse does not currently support DICOM DT formatted strings and throws an Overflow Exception.
While I've opened an issue with dateutil for this format, in the meantime, we may want to handle it in actions.py.
Thoughts?
The text was updated successfully, but these errors were encountered: