Missing (non private) elements in dictionary #1946
-
There seem to be some elements missing in the dictionary of pydicom (v2.4.3) that are in the registry of the DICOM PS3.6 2023d - Data Dictionary For example: pydicom.datadict.dictionary_has_tag("ContentDate") # -> False
pydicom.datadict.dictionary_has_tag("InstanceCreationDate") # -> False
pydicom.datadict.dictionary_has_tag("ContentTime") # -> False
pydicom.datadict.dictionary_has_tag("InstanceCreationTime") # -> False Does pydicom only include an excerpt of elements from the standard? I wonder even more as those DICOM keywords are even found in the pydicom codebase (e.g. in fileset.py). Do I have to do something to enable those? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 22 replies
-
We haven't updated to 2023d yet, I had a PR that did so, but it did some other stuff that didn't end up working as planned so I closed it. I'll probably submit a separate PR with just the dict updates tomorrow. If you're curious you need to run the various scripts here (they need a little bit of tweaking to fix an issue introduced by switching to https addresses, though). |
Beta Was this translation helpful? Give feedback.
-
>>> datadict.dictionary_has_tag("ContentDate")
True
>>> pydicom.__version__
'2.4.2' # version is wrong, is actually 2.4.3 ??? Also: pydicom/pydicom/_dicom_dict.py Line 111 in f86e0df |
Beta Was this translation helpful? Give feedback.
Ah, and I had to scrub this kind of characters in the DICOM validator code too - at least in some older versions of the standard they appeared in some of the DICOM tags in the docbook version of the standard.
EDIT: Just in case somebody does not read all the comments below: here is the explanation by @dclunie where these characters come from, and that they are perfectly legal (excerpt from the release notes of each DICOM standard):