pydicom.datadict.dictionary_has_tag¶
- pydicom.datadict.dictionary_has_tag(tag: int | str | Tuple[int, int] | BaseTag) bool[source]¶
Return
Trueif tag is in the official DICOM data dictionary.- Parameters:
tag (int or str or Tuple[int, int]) – The tag to check, in any of the forms accepted by
Tag().- Returns:
Trueif the tag corresponds to an element present in the official DICOM data dictionary,Falseotherwise.- Return type:
bool