pynetdicom.service_class.QueryRetrieveServiceClass¶
-
class
pynetdicom.service_class.QueryRetrieveServiceClass(assoc)[source][source]¶ Implementation of the Query/Retrieve Service Class.
Methods
SCP(req, context, info)The SCP implementation for the Query/Retrieve Service Class. __init__(assoc)Create a new ServiceClass. is_valid_status(status)Return True if status is valid for the service class. validate_status(status, rsp)Validate status and set rsp.Status accordingly. Attributes
BULK_DATA_KEYWORDSaeReturn the AE. dimseReturn the DIMSE service provider. statuses-
SCP(req, context, info)[source][source]¶ The SCP implementation for the Query/Retrieve Service Class.
Parameters: - req (dimse_primitives.C_FIND or C_GET or C_MOVE) – The request primitive received from the peer.
- context (presentation.PresentationContext) – The presentation context that the SCP is operating under.
- info (dict) – A dict containing details about the association.
-
ae¶ Return the AE.
-
dimse¶ Return the DIMSE service provider.
-
is_valid_status(status)[source]¶ Return True if status is valid for the service class.
Parameters: status (int) – The Status value to check for validity. Returns: True if the status is valid, False otherwise. Return type: bool
-
validate_status(status, rsp)[source]¶ Validate status and set rsp.Status accordingly.
Parameters: - status (pydicom.dataset.Dataset or int) – A Dataset containing a Status element or an int.
- rsp (dimse_primitive) – The response primitive to be sent to the peer.
Returns: rsp – The response primitie to be sent to the peer (containing a valid Status parameter).
Return type: dimse_primitive
-