Trying to make a C-MOVE Q/R to download multiple studies by giving a list of Accession Numbers #975
Replies: 2 comments 9 replies
-
Why don't you store the datasets in you |
Beta Was this translation helpful? Give feedback.
-
And there is another doubt that would be goodto know the reason why it doesn't work, and is that the conditionals of the previous code I'd passed it: Manejar las respuestas
is to managed the responses and to know how the Q/R query is going. Most of the time (rarely manage the 0000 response) never get any of those conditions. How can I solve/fix this? Another problem has come up. I'm trying to filter the studies (UltrasoundMultiFrameImage), while dowloading, removing the static images and trying to leave the DICOM files that store multiframes, but I can't manage to do it correctly, using the NumberOfFrames tag (0028, 0008). dicom_data = pydicom.dcmread(file_path) |
Beta Was this translation helpful? Give feedback.
-
Hi,
I've been trying for several weeks to download medical studies by providing the AN. My code works fine for downloading a single study, but I need to download multiple studies. Using the same code, I implemented a simple loop where each element is an Accession Number. The code works and downloads the studies, but the issue is that during the download, it starts several download processes simultaneously, causing some DICOM files to be saved in the wrong study folders.
My code works fine for one study, but when I try to download multiple studies by passing only the Accession Numbers in a list and looping through them, the DICOM files from each study end up getting mixed. This happens because the download of one study starts before the previous one finishes. I tried starting an SCP server (scp = ae.start_server(('', 104), block=True, evt_handlers=handlers)), but it freezes after downloading the first study.
Here are some the functions that I'm using:
handle_store function
def generador_handle_store(accession_number):
stored_count = 0 # Contador local de imágenes almacenadas por estudio
and this download function
def descargar_estudios(pacs_ip, pacs_port_qr, pacs_ae_title, local_ae_title, lista_accession_numbers):
ae = AE(ae_title=local_ae_title)
Beta Was this translation helpful? Give feedback.
All reactions