pydicom.datadict.dictionary_VR¶
- pydicom.datadict.dictionary_VR(tag: Union[int, str, Tuple[int, int], pydicom.tag.BaseTag]) str ¶
Return the VR of the element corresponding to tag.
Only performs the lookup for official DICOM elements.
- Parameters
tag (int) – The tag for the element whose value representation (VR) is being retrieved.
- Returns
The VR of the corresponding element.
- Return type
str
- Raises
KeyError – If the tag is not present in the DICOM data dictionary.