how to install DCM4CHE toolkit step by step?

4,892 views
Skip to first unread message

Pi Shetshotisak

unread,
Jul 29, 2018, 8:37:13 AM7/29/18
to dcm4che
Hi I'm a newbie with really low experiences of using linux command line.
I just want to import dicom to dcm4chee i just installed.
I search that i need a DCM4CHEE toolkit for import those dicom files but I actually don't know how to install toolkit on LINUX.

You may doubt if I can install DCM4CHEE server why I cannot install toolkit.
I used this installation
but I have trouble when trying to find the way to install the standard DCM4CHEE. It's too difficult for me.

Anyone could help me with this?

Thank you very much  

------------------------------------------
this is the version I installed on my VM

Pi Shetshotisak

unread,
Jul 29, 2018, 8:40:35 AM7/29/18
to dcm4che
or if anyone have a easy way to import dicom files to DCM4CHEE please share.

Jon Ander Zuccaro

unread,
Jul 30, 2018, 3:51:17 PM7/30/18
to dcm...@googlegroups.com
Once you have successfully installed dcm4chee, that's it, the PACS, you don't need to install anything else to send or receive images.

What you need is a piece of software that implements DICOM Storage SCU, in plain language, something that's able to send images to the PACS.

There are several options, and not all of them have to reside on the same machine that's running the PACS... logically, because after all these programs are emulating a modality that's sending performed studies.

Once the PACS was installed, you will have 3 pieces of information: The IP address of the server, the AETitle (Usually DCM4CHEE unless you explicitly change it), and the port number, again, 11112 by default.

This information is what you need to input at any software that's going to send images to your PACS.

The dcm4che toolkit (a separate entity from dcm4chee the PACS) includes a few compiled examples of programs that you can create using it. One of them, dcmsnd, implements DICOM Store and can be used to send images.


There is nothing to install, you simply download these scripts and run them (assuming your server has Java already). Try to use the newer one, but you could download the dcm4che 2.x one, extract all files to some local folder and run the dcmsnd command (more info here https://dcm4che.atlassian.net/wiki/spaces/d2/pages/1835025/dcmsnd).

Open a terminal and change your directory to the place where you extracted your toolkit, and go to bin. for example:


/home/jon/dcm4che-2.0.24/bin

Yours should be 2.0.29 if you download the latest one. Now, try to run the dcmsnd command, like this:

./dmsnd

That will return usage information. If you can't run it, you probably want to make it executable using

sudo chmod 777 dcmsnd

(On Debian, do su root and then execute chmod)

So, place the images that you want to send in some folder and run the following:

./dcmsnd DCM4CHEE@localhost:11112 /full/path/to/image/folder/

The dcmsnd command will explore that folder for DICOM files to send and will send all the files that it finds.

You can run this from a separate machine, just substitute localhost with the server's IP.

If this is too complicated, there are Windows tools that have nice GUIs

I like this one: http://www.charruasoft.com/products/free/index.php but that page appears to be down at the moment.

Pi Shetshotisak

unread,
Jul 31, 2018, 6:10:39 AM7/31/18
to dcm4che
Thanks a lot Jon

I right now can execute dcmsnd but still got the problem

# ./dcmsnd DCM4CHEE@localhostofthiscomputer:11112 C:/Users/xray/Downloads/DCMarchive

Scanning files to send
java
.io.FileNotFoundException: C:/Users/xray/Downloads/DCMarchive (No such file or directory)
        at java
.io.FileInputStream.open(Native Method)
        at java
.io.FileInputStream.<init>(FileInputStream.java:146)
        at org
.dcm4che2.io.DicomInputStream.<init>(DicomInputStream.java:124)
        at org
.dcm4che2.tool.dcmsnd.DcmSnd.addFile(DcmSnd.java:1084)
        at org
.dcm4che2.tool.dcmsnd.DcmSnd.main(DcmSnd.java:835)
WARNING
: Failed to parse C:/Users/xray/Downloads/DCMarchive - skipped.


Actually I want to dump all dicom files from my old DCM4CHEE to new one is there any easier way?(my old DCM4CHEE is a test one with has limit hdd spaces)
Thanks a lot  

Jon Ander Zuccaro

unread,
Jul 31, 2018, 2:30:21 PM7/31/18
to dcm4che
I don't understand, are you running this on linux but with a Windows like path? The error is telling you that the given path is not locally found...

You need to run dcmsnd on the computer that has the actual files, the script also runs on windows (dcmsnd.bat) you should execute that one then.

Please make sure you are using dcmsnd correctly first because then you could use it with the fileref option to import files from another archive easily.

Pi Shetshotisak

unread,
Aug 3, 2018, 7:51:45 AM8/3/18
to dcm...@googlegroups.com
sorry i misunderstood.

I try to move a file from other computer to the new server.

i tried to copy an archive file (/var/lib/dcm4chee/server/default/archive) from old DCM4CHEE and replace it's in new DCM4CHEE
but this practice doesn't work
I cannot any file exist in localhost:8080/dcm4chee-web3

so I wonder what is the best way to do?
Thanks

--
You received this message because you are subscribed to a topic in the Google Groups "dcm4che" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dcm4che/WPw7Ab5lqu0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dcm4che+unsubscribe@googlegroups.com.
To post to this group, send email to dcm...@googlegroups.com.
Visit this group at https://groups.google.com/group/dcm4che.
For more options, visit https://groups.google.com/d/optout.

Jon Ander Zuccaro

unread,
Aug 3, 2018, 1:42:32 PM8/3/18
to dcm4che
You are almost there.

If you can physically copy your previous studies to a folder inside your new server, your best bet is to use the fileref option. It is actually quite easy.

Let's get organized... remove everything from the archive folder that was not created by dcm4chee itself and then create a folder called "old" inside the ../default/archive/ of your new archive.

Copy all your previous studies to this "old" folder.

Now, use the dcmsnd tool with the fileref option, basically telling dcm4chee to create database entries for these studies without having to receive them, since they are already there.

Here is the command:

./dcmsnd --fileref DCM4CHEE@localhost:11112 /var/lib/dcm4chee/server/
default/archive/old

Mind the fileref option, don't forget it.

With this, your previous studies will appear at the web GUI and you are going to be able to do query and retrieves.

Now, if you have a ton of studies, dcmsnd could timeout and fail. If that's the case, you have 2 options:

1) Don't run dcmsnd for your whole old directory... since you are copying from a previous archive your folder is probably organized like so: YEAR/MONTH/ and so on. Run dcmsnd for one month each time.

For example:

./dcmsnd --fileref DCM4CHEE@localhost:11112 /var/lib/dcm4chee/server/
default/archive/old/2017/01



2) Use this command instead, but only if the previous one fails. Notice that you need to specify the full path of where dcmsnd is this time:

find /var/lib/dcm4chee/server/default/archive/old -type f -print0 | xargs -0 /full/path/of/dcmsnd --fileref DCM4CHEE@localhost:11112

Good luck.
To unsubscribe from this group and all its topics, send an email to dcm4che+u...@googlegroups.com.

Pi Shetshotisak

unread,
Aug 27, 2018, 4:08:37 AM8/27/18
to dcm...@googlegroups.com
Big Thanks for your help!!!
Reply all
Reply to author
Forward
0 new messages