Dicom query to dcm4chee from my app

1,007 views
Skip to first unread message

ami...@gmail.com

unread,
Dec 20, 2013, 2:05:27 AM12/20/13
to dcm...@googlegroups.com
Hi,

I want to dicom query to dcm4chee from my app to get the whole information of the DiCom images from dcm4chee-web3, How can I do this.

Thanks,
Best Regards,
Ami

carvilsi

unread,
Jan 8, 2014, 10:29:03 AM1/8/14
to dcm...@googlegroups.com
Hi.

To get the whole information of the DICOM images you need to download the desire level or levels (study, series, instances) and extract the info that you want.
To achieve this, dcm4chee provides a set of tools (http://www.dcm4che.org/confluence/display/d2/dcm4che2+DICOM+Toolkit) that depending of your app implementation you can use in one way or other (eg. calling by terminal or working with java classes (I recomend you the second way, if it is possible for you)).

E.g by command line:

1. Get a study from PACS to your local machine (http://www.dcm4che.org/confluence/display/d2/dcmqr)

     $ ./dcmqr -L DCMQR:11112 DCM4...@192.168.1.xx:11112 -q00080050=(Accession Number) -cget -cstore 1.2.840.10008.5.1.4.1.1.1(SOP class UID) -cstoredest ~/temp/tempDCM/fileDICOM

2. Converts dcm file on xml file (http://www.dcm4che.org/confluence/display/d2/dcm2xml)

     $ ./dcm2xml -X ~/temp/tempDCM/fileDICOM/filex.xxx.x.xxx.xxxxx.xxxxx.x -o ~/temp/tempDCM/xmlFile.xml
 
3. Parse xmlFile and do your stuff with data

I hope that can help.

Best regards,
   carvilsi

Miguel Pereira Legal

unread,
Sep 10, 2015, 1:43:44 PM9/10/15
to dcm4che
hi:

Hope not to make a stupid question. You gave examples as commands in terminal. What about the java classes?

I am still not understanding how to re-use the tool-kit in a java implementation.

I want to make a frontend to create WML and also want to query/receive images, but I don't see any example how to do that.

carvilsi

unread,
Sep 10, 2015, 2:28:47 PM9/10/15
to dcm4che
Hi Miguel,

I'm so sorry but I do not have any example of implementation in java classes, I quitted my job more than a year ago and I deleted all related files and stuff from my hard drive (including of course this kinds of java implementations). 

But, If you want to understand how to re-use the toolkit a good point to start is taking a look to Gunter's source code of DCMQR, file located at:

dcm4che-2.0.29/dcm4che-tool/dcm4che-tool-dcmqr/src/main/java/org/dcm4che2/tool/dcmqr/DcmQR.java


I hope that can help.

Best regards and good luck.
carvilsi

PD: I attached this file but I recommend you to download all the source code
DcmQR.java

Miguel Pereira Legal

unread,
Sep 11, 2015, 8:04:06 AM9/11/15
to dcm4che
Thanks!

Nicolas Roduit

unread,
Sep 11, 2015, 9:53:47 AM9/11/15
to dcm4che
If you need a Java API for the basic DICOM operations (based on dcm4che 3.3.7), you should have a look to weasis-dicom-tools. There are examples of use in the test classes.

Miguel Pereira Legal

unread,
Sep 11, 2015, 10:00:37 AM9/11/15
to dcm4che
Thanks Nicolas!
Reply all
Reply to author
Forward
0 new messages