pynetdicom.service_class.VerificationServiceClass¶
-
class
pynetdicom.service_class.VerificationServiceClass(assoc)[source][source]¶ Implementation of the Verification Service Class.
Methods
SCP(req, context, info)The SCP implementation for the Verification 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. statuses-
SCP(req, context, info)[source][source]¶ The SCP implementation for the Verification Service Class.
Will always return 0x0000 (Success) unless the user returns a different (valid) status value from the AE.on_c_echo callback.
Parameters: - req (dimse_primitives.C_ECHO) – The C-ECHO 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_echo(),association.Association.send_c_echo()Notes
C-ECHO Request
Parameters
(M) Message ID(M) Affected SOP Class UIDC-ECHO Response
Parameters
(U) Message ID(M) Message ID Being Responded To(U) Affected SOP Class UID(M) StatusStatus
The DICOM Standard, Part 7 (Table 9.3-13) indicates that the Status value of a C-ECHO response “shall have a value of Success”. However Section 9.1.5.1.4 indicates it may have any of the following values:
- Success
0x0000Success- Failure
0x0122Refused: SOP Class Not Supported0x0210Refused: Duplicate Invocation0x0211Refused: Unrecognised Operation0x0212Refused: Mistyped Argument
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
-