pydicom.tag.Tag¶
-
pydicom.tag.Tag(arg, arg2=None)[source]¶ Create a
BaseTag.General function for creating a
BaseTagin any of the standard forms:Tag(0x00100015)Tag('0x00100015')Tag((0x10, 0x50))Tag(('0x10', '0x50'))Tag(0x0010, 0x0015)Tag(0x10, 0x15)Tag(2341, 0x10)Tag('0xFE', '0x0010')Tag("PatientName")
Changed in version 1.3: Added support for creating a
BaseTagusing an element keyword- Parameters
arg (int or str or 2-tuple/list) – If
intorstr, then either the group or the combined group/element number of the DICOM tag. Iftupleorlistthen the (group, element) numbers asintorstr.arg2 (int or str, optional) – The element number of the DICOM tag, required when arg only contains the group number of the tag.
- Returns
- Return type