pynetdicom.dimse_messages.N_ACTION_RQ¶
-
class
pynetdicom.dimse_messages.
N_ACTION_RQ
¶ -
__init__
()¶
Methods
__init__
()decode_msg
(primitive)Converts P-DATA primitives into a DIMSEMessage sub-class.
encode_msg
(context_id, max_pdu_length)Yield P-DATA primitive(s) for the current DIMSE Message.
Convert the DIMSEMessage class to a DIMSE primitive.
primitive_to_message
(primitive)Convert a DIMSE primitive to the current DIMSEMessage object.
-
decode_msg
(primitive)¶ Converts P-DATA primitives into a DIMSEMessage sub-class.
Decodes the data from the P-DATA service primitive (which may contain the results of one or more P-DATA-TF PDUs) into the command_set and data_set attributes. Also sets the ID and encoded_command_set attributes of the DIMSEMessage sub-class object.
- Parameters
primitive (pdu_primitives.P_DATA) – The P-DATA service primitive to be decoded into a DIMSE message.
- Returns
True when the DIMSE message is completely decoded, False otherwise.
- Return type
bool
References
DICOM Standard, Part 8, Annex E
-
encode_msg
(context_id, max_pdu_length)¶ Yield P-DATA primitive(s) for the current DIMSE Message.
Encoding
The encoding of the Command Set shall be Little Endian Implicit VR, while the Data Set will be encoded as per the agreed presentation context.
A P-DATA request PDV List parameter shall contain one or more PDVs. Each PDV is wholly contained in a given P-DATA request and doesn’t span across several P-DATA request primitives.
The fragmentation of any message results in a series of PDVs that shall be sent, on a given association, by a corresponding series of P-DATA requests preserving the ordering of the fragments of any message. No fragments of any other messages shall be sent until all fragments of the current message have been sent.
- Parameters
context_id (int) – The ID of the agreed presentation context.
max_pdu_length (int) – The maximum PDV length in bytes.
- Yields
pdu_primitives.P_DATA – The current DIMSE message as one or more P-DATA service primitives.
References
DICOM Standard, Part 7, Section 6.3.1
DICOM Standard, Part 8, Annex E
-
message_to_primitive
()¶ Convert the DIMSEMessage class to a DIMSE primitive.
- Returns
One of the DIMSE message primitives from pynetdicom.dimse_primitives generated from the current DIMSEMessage.
- Return type
DIMSE message primitive
-
primitive_to_message
(primitive)¶ Convert a DIMSE primitive to the current DIMSEMessage object.
- Parameters
primitive – A DIMSE message primitive from pynetdicom.dimse_primitives to convert to the current DIMSEMessage object.
-