SCP return SOPClassUID after association release with success

17 views
Skip to first unread message

Abdelmadjid SAAD

unread,
Jan 16, 2021, 2:43:21 PM1/16/21
to pydicom

Hello,
I need to get SOPClassUID  as a return from each store success, I am using this hander :

# Implement a handler for evt.EVT_C_STORE
def handle_store(event):
"""Handle a C-STORE request event."""
# Decode the C-STORE request's *Data Set* parameter to a pydicom Dataset
ds = event.dataset
# Add the File Meta Information
ds.file_meta = event.file_meta
# Save the dataset using the SOP Instance UID as the filename ds.save_as(ds.SOPInstanceUID, write_like_original=False)
# Return a 'Success' status
return 0x0000
Reply all
Reply to author
Forward
0 new messages