pynetdicom.service_class_n.UnifiedProcedureStepServiceClass¶
-
class
pynetdicom.service_class_n.UnifiedProcedureStepServiceClass(assoc)¶ Implementation of the Unified Procedure Step Service Class
-
__init__(assoc)¶ Create a new ServiceClass.
Methods
SCP(req, context)The SCP implementation for Unified Procedure Step Service Class. __init__(assoc)Create a new ServiceClass. is_cancelled(msg_id)Return True if a C-CANCEL message with msg_id has been received. 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
aeReturn the AE. dimseReturn the DIMSE service provider. statuses-
SCP(req, context)¶ The SCP implementation for Unified Procedure Step Service Class.
Parameters: - req (dimse_primitives.N_CREATE or C_FIND or N_SET or N_GET or N_EVENT_REPORT or N_ACTION) – The N-CREATE, C-FIND, N-SET, N-GET, N-ACTION or N-EVENT-REPORT request primitive sent by the peer.
- context (presentation.PresentationContext) – The presentation context that the service is operating under.
-
ae¶ Return the AE.
-
dimse¶ Return the DIMSE service provider.
-
is_cancelled(msg_id)¶ Return True if a C-CANCEL message with msg_id has been received.
Parameters: msg_id (int) – The (0000,0120) Message ID Being Responded To value to use to match against. Returns: True if a C-CANCEL message has been received with a Message ID Being Responded To corresponding to msg_id, False otherwise. Return type: bool
-
is_valid_status(status)¶ 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)¶ 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
-