pynetdicom.service_class.StorageServiceClass¶
-
class
pynetdicom.service_class.StorageServiceClass(assoc)[source][source]¶ Implementation of the Storage Service Class.
Methods
SCP(req, context, info)The SCP implementation for the Storage 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
aeReturn the AE. dimseReturn the DIMSE service provider. statusesuid-
SCP(req, context, info)[source][source]¶ The SCP implementation for the Storage Service Class.
Parameters: - req (dimse_primitives.C_STORE) – The C-STORE request primitive sent by the peer.
- context (presentation.PresentationContext) – The presentation context that the SCP is operating under.
- info (dict) – A dict containing details about the association.
See also
ae.ApplicationEntity.on_c_store(),association.Association.send_c_store()Notes
C-STORE Request
Parameters
(M) Message ID(M) Affected SOP Class UID(M) Affected SOP Instance UID(M) Priority(U) Move Originator Application Entity Title(U) Move Originator Message ID(M) Data SetC-STORE Response
Parameters
(U) Message ID(M) Message ID Being Responded To(U) Affected SOP Class UID(U) Affected SOP Instance UID(M) StatusStatus
- Success
0x0000Success- Warning
0xB000Warning: Coercion of Data Elements0xB006Warning: Elements Discarded0xB007Warning: Data Set Does Not Match SOP Class- Failure
0x0117Refused: Invalid SOP Instance0x0122Refused: SOP Class Not Supported0x0124Refused: Not Authorised0x0210Refused: Duplicate Invocation0x0211Refused: Unrecognised Operation0x0212Refused: Mistyped Argument0xA700to0xA7FFRefused: Out of Resources0xA900to0xA9FFError: Data Set Does Not Match SOP Class0xC000to0xCFFFError: Cannot Understand
References
-
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
-