I had a requirement to send the DICOM files created to the PACS using MergeCom tool kit C++. Can anybody post sample code to read the DICOM file from local and send the same to PACS using MergeCom.
Asked
Active
Viewed 1,291 times
1 Answers
1
The merge toolkit ships with sample code which is contained in the folder mc3apps. What you are searching for is (in DICOM terms) a C-STORE SCU, and the file with the sample code is stor_scu.c. A brief documentation can be found here. I would post the code but it is very long and copyrighted by Merge. But if you have a legal copy of the toolkit you should be able to find it easily.

Markus Sabin
- 3,916
- 14
- 32
-
I was able to get the code and I understood how to send 1 dicom file. But I had a doubt. If I wanted to send 2 Dicom files, I need to open 1 Association and send the 2 files separately. Right ? i.e. Open 1 association, read the first DICOM file, set the service command, add affected SOP instance UID and affected SOP class UID and send the request. Follow the same for second DICOM file and at the end, close the association. Is my understanding correct ? – Kiran Joshy Feb 12 '16 at 11:54
-
1No. There is no need to open individual associations for each file. However it depends on the Presentation Contexts you are negotiating. If they are appropriate for all the files you want to send (e.g. All files are CT images), you are fine. If you want to send different SOP Classes in one association, this is also possible. However it is not explained in a few words. Recommended reading: http://www.course-as.ru/download/pdf/DICOM/CookBook.pdf – Markus Sabin Feb 12 '16 at 14:01