pynetdicom.pdu_items.AsynchronousOperationsWindowSubItem¶
-
class
pynetdicom.pdu_items.AsynchronousOperationsWindowSubItem[source][source]¶ An Asynchronous Operations Window Sub-item.
Represents the Asynchronous Operations Window Sub Item used in A-ASSOCIATE-RQ and A-ASSOCIATE-AC PDUs.
-
item_length¶ The number of bytes from the first byte following the Item Length field to the last byte of the Item.
Type: int
-
maximum_number_operations_invoked¶ The ‘Maximum Number Operations Invoked’ field value.
Type: int or None
-
maximum_number_operations_performed¶ The Maximum Number Operations Performed field value.
Type: int or None
Notes
An Asynchronous Operations Window Sub-item requires the following parameters:
- Item type (1, fixed, 0x53)
- Item length (1)
- Maximum number of operations invoked (1)
- Maximum number of operations performed (1)
Encoding
When encoded, an Asynchronous Operations Window Sub-item has the following structure, taken from Tables D.3-7 and D.3-8 [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 2 Maximum number operations invoked 6 2 Maximum number operations performed References
[1] DICOM Standard, Part 7, Annex D.3.3.3 [2] DICOM Standard, Part 8, Section 9.3.1 Methods
__init__()Initialise a new Asynchronous Operations Window 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 Asynchronous Operations Window primitive. to_primitive()Return an Asynchronous Operations Window primitive from the current Item. Attributes
item_lengthReturn the item’s Item Length field value as an int. item_typeReturn the item’s Item Type field value as an int. max_operations_invokedReturn the item’s Maximum Number Operations Invoked field value. max_operations_performedReturn the item’s Maximum Number Operations Performed field value. -
decode(bytestream)[source]¶ Decode bytestream and use the result to set the field values of the PDU item.
Parameters: bytestream (bytes) – The PDU data to be decoded.
-
from_primitive(primitive)[source][source]¶ Set the item’s values using an Asynchronous Operations Window primitive.
Parameters: primitive (pdu_primitives.AsynchronousOperationsWindowNegotiation) – The primitive to use to set the Item’s field values.
-
item_length Return the item’s Item Length field value as an int.
-
item_type Return the item’s Item Type field value as an int.
-
max_operations_invoked¶ Return the item’s Maximum Number Operations Invoked field value.
-
max_operations_performed¶ Return the item’s Maximum Number Operations Performed field value.
-
to_primitive()[source][source]¶ Return an Asynchronous Operations Window primitive from the current Item.
Returns: The primitive representation of the current Item. Return type: pdu_primitives.AsynchronousOperationsWindowNegotiation
-