settings = get_settings(local_pacs_settings)
ds = get_query_ds(query_path)
ds/identifier
(0008, 0052) Query/Retrieve Level CS: 'PATIENT'
(0010, 0010) Patient's Name PN: 'D1-0002'
ae = AE()
ae.add_requested_context(PatientRootQueryRetrieveInformationModelMove)
ae.supported_contexts = StoragePresentationContexts
ae.ae_title = settings['AETITLE']
scp = ae.start_server(("",int(settings['PORT'])),block=False,evt_handlers=handlers)
assoc = ae.associate(settings['PHOST'],int(settings['PPORT']),ae_title=settings['PAETITLE'])
if assoc.is_established:
res = assoc.send_c_move(ds,settings['AETITLE'],PatientRootQueryRetrieveInformationModelMove)
for (status,identifier) in res:
if status:
print('C-MOVE query status: 0x{0:04x}'.format(status.Status))
else:
print('Connection timed out, was aborted or received invalid response')
assoc.release()
else:
print('Association rejected, aborted or never connected')
scp.shutdown()
This is the response
E: Connection closed while waiting for DIMSE message
I: Releasing Association
I: Association Aborted (A-P-ABORT)
I: Association Aborted
Thanks in advance for any leads to resolve this issue
-