pynetdicom.pdu_items.ImplementationClassUIDSubItem¶
-
class
pynetdicom.pdu_items.
ImplementationClassUIDSubItem
¶ An Implementation Class UID Sub-item.
The Implementation Class UID Sub-item allows communicating Application Entities to identify each other at Association establishment.
-
implementation_class_uid
¶ The Implementation Class UID field value.
- Type
pydicom.uid.UID or None
-
item_length
¶ The number of bytes from the first byte following the Item Length field to the last byte of the Item.
- Type
int
-
item_type
¶ The Item Type field value (0x52).
- Type
int
Notes
An Implementation Class UID Sub-item requires the following parameters:
Item type (1, fixed, 0x52)
Item length (1)
Implementation Class UID (1)
Encoding
When encoded, an Implementation Class UID Sub-item has the following structure, taken from Tables D.3-1 and D.3-2 1 (offsets shown with Python indexing). Items are always encoded using Big Endian 2.
Offset
Length
Description
0
1
Item type
1
1
Reserved
2
2
Item length
4
Variable
Implementation class UID
References
- 1
DICOM Standard, Part 7, Annex D.3.3.2
- 2
DICOM Standard, Part 8, Section 9.3.1
-
__init__
()¶ Initialise a new Implementation Class UID Item.
Methods
__init__
()Initialise a new Implementation Class UID Item.
decode
(bytestream)Decode bytestream and use the result to set the field values of the PDU item.
encode
()Return the encoded PDU as bytes.
from_primitive
(primitive)Set the item’s values using an Implementation Identification primitive.
Return an Implementation Identification primitive from the current Item.
Attributes
Return the item’s Implementation Class UID field value as a UID.
Return the item’s Item Length field value as an int.
Return the item’s Item Type field value as an int.
-
decode
(bytestream)¶ Decode bytestream and use the result to set the field values of the PDU item.
- Parameters
bytestream (bytes) – The PDU data to be decoded.
-
encode
()¶ Return the encoded PDU as bytes.
- Returns
The encoded PDU.
- Return type
bytes
-
from_primitive
(primitive)¶ Set the item’s values using an Implementation Identification primitive.
- Parameters
primitive (pdu_primitives.ImplementationClassUIDNotification) – The primitive to use to set the Item’s field values.
-
property
implementation_class_uid
Return the item’s Implementation Class UID field value as a UID.
-
property
item_length
Return the item’s Item Length field value as an int.
-
property
item_type
Return the item’s Item Type field value as an int.
-
to_primitive
()¶ Return an Implementation Identification primitive from the current Item.
- Returns
The primitive representation of the current Item.
- Return type
-