Hi all,
I'm experienced with python but new to DICOM and pynetdicom. I would like to retrieve only the first instance (image) of a series from PACS. The approach I was thinking is to add a hook to the C_STORE service request (EVT_C_STORE, as per some of the code examples), but the question is whether I can then elegantly cancel the C-MOVE request. To my knowledge, C-MOVE is less flexible than C-GET in this regard, but unfortunately the PACs system I am working with does not support C-GET. Alternatively, I could set up C-MOVE (send_c_move) as an independent process using python multiprocessing and then terminate the process once a single file has download. But again, this seems like an abrupt brute force approach.
Ultimately, I would like C-MOVE to exit cleanly without leaving orphaned or zombie processes running.
Any ideas much appreciated. Many thanks.
Dan