Open arai0101 opened 1 month ago
Don't do this:
for cx in self.assoc.accepted_contexts:
cx._as_scp = True
cx._as_scu = True
print(cx)
Have you looked at the Q/R Move code example or the Move SCU application code?
The Move SCP controls which presentation contexts it asks for when requesting the association with the destination Storage SCP, all you can do is have a Storage SCP available which supports CT Image Storage or whatever it is you're trying to retrieve.
I'm not seeing any matches to your query in the log, so the Move SCP has nothing to send.
Also, that better not be an actual patient name and ID you've used.
E: [WinError 10054] An existing connection was forcibly closed by the remote host
Traceback (most recent call last):
File "D:\IndoDICOM\venv\lib\site-packages\pynetdicom\dul.py", line 269, in _read_pdu_data
bytestream.extend(self.socket.recv(6))
File "D:\IndoDICOM\venv\lib\site-packages\pynetdicom\transport.py", line 410, in recv
bytes_read = self.socket.recv(bufsize)
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
Rude.
I have a problem. I am building a DICOM downloader with PyQt5. The peer PACS is SYNAPSE in the hospital. I want to retrieve CT images and I configure the presentation context, they are proposed and accepted for the SCU/SCP role. However, in the incoming associate-RQ PDU, the presentation context for CT images is not part of negotiation. I really appreciate if you can give me an advice. Thank you. Here is my code.
C-MOVE at PATIENT level
And this is the log: