Orthanc + DICOM-web = Weasis

Hi all!

I made it!
Working Weasis thru DICOM-Web

  1. $cat /etc/orthanc/dicomweb.json
    {
    /**

    • The following options control the configuration of the Orthanc
    • plugin adding support of WADO and DICOMweb.
      **/

    “DicomWeb” : {
    “Enable” : true, // Whether DICOMweb support is enabled
    “Root” : “/dicom-web/”, // Root URI of the DICOMweb API (for QIDO-RS, STOW-RS and WADO-RS)
    “EnableWado” : true, // Whether WADO-URI (aka. WADO) support is enabled
    “WadoRoot” : “/wado”, // Root URI of the WADO-URI (aka. WADO) API
    “Host” : “192.168.4.100:8042”, // Hard-codes the name of the host for subsequent WADO-RS requests ##Here must be a port##
    “Ssl” : false, // Whether HTTPS should be used for subsequent WADO-RS requests
    “Servers”: {
    “orthanc.local”: {
    “Url”: “http://localhost:8042/dicom-web/”,
    “Username”: “DicomWebUser”,
    “Password”: “DicomWebPass”
    }
    }
    }
    }

  2. Using http header user password generator, f.e. Basic Authentication Header Generator

we got string Authorization: Basic RGljb21XZWJVc2VyOkRpY29tV2ViUGFzcw==

that need be pasted to http headers at Weasis

AAaaaaand IT WORKS!!!

2 Likes

BTW. this DicomWebUser with DicomWebPass must be at credentials.json too

This worked for me:
orthanc.uclouvain.be/book/plugins/dicomweb.html

  1. Edit dicomweb.json

  2. Content:
    {
    /**

    • The following options control the configuration of the Orthanc
    • plugin adding support of WADO and DICOMweb.
      **/

    “DicomWeb” : {
    “Servers” : {
    “sample” : {
    “Url” : “http://192.168.9.25/dicom-web/”, // replace this IP with your server IP address
    “HasDelete” : true,
    “ChunkedTransfers” : true, // Set to “false” if “sample” is Orthanc <= 1.5.6
    “HasWadoRsUniversalTransferSyntax” : true // Set to “false” if “sample” is Orthanc DICOMweb plugin <= 1.0
    }
    }
    }
    }

  3. WEASIS File–>Preferences–>DICOM–>DICOM node list–>WEB Node–>Add (or edit) and write your server IP address
    http://192.168.9.25:8042/dicom-web

  4. Reboot your server and try to import from WEASIS

I try but not work in weasys



Did you run weasis same pc that orthanc?

Hi all. I tried to connect Orthank with Weasis but it didn’t work correctly.
I could get a list of patients in the Orthank, but could not import (view) any one in the Weasis. I’ve try to push ‘Import’ button, progress showed for a while and nothing has happened.
Integrated into Orthank OHIV viewer show all studies correctly.


I am using latest Orthank and Weasis versions on Windows 10, both works locally.
Maby somebody know how to fix issue? Thank you in advance.

Hi @dmbel

In order for Orthanc to be able to send the data to Weasis, you must have declared Weasis as a DicomModalities as explained here

Hi, @alainmazy,
Thank you for replay. I want to use Weasis with Orthanc with help of Dicom Web (WADO) protocol not DICOM. Sorry, it wasn’t clear from my first post. I can see the DICOM network settings on your link, I think it’s not needed for WADO connections.

@dmbel , show your orthanc.json, dicomweb.json and credentials.json pls

Hi @dmbel ,

I assume you have installed Orthanc with the Windows installer…
I just found out that one of the default configuration was wrong in that installer. You should comment out this line in dicomweb.json:

//"Host" : "localhost"

The correct value is actually localhost:8042 but Orthanc handles it correctly if you don’t set it at all.

Once this is fixed, I have been able to download some images from Weasis under Windows although I’m still having issues with images containing an empty 0040,0275 tag !! The Linux and Windows versions of the plugins are not showing the same behavior wrt to this tag … I’ll continue to investigate…

HTH,

Alain.

Thank you very much! Disabling of the “Host” line helped. All works fine now.

Change C-move to C-get and check your IP and other credentials… Then try again thanks

For the record, this was not due to a Linux|Windows difference but to one of my config. "StorageAccessOnFind": "Always" seems to be mandatory to retrieve the attached image in Weasis
3d0a5172-297c-4ad6-a026-84891212a74e.dcm (521.3 KB)

The only difference from the Orthanc point of view is the answer to

curl -v -H "Accept: */*" http://localhost:8042/dicom-web/studies/1.3.983539559875845849057491852760054787374772424931/series?includefield=0008103E,00080060,0020000E,00200011,00081190

If the answer contains

"00201209" :
        {
                "Value" :
                [
                        1
                ],
                "vr" : "IS"
        },
        "00400275" :
        {
                "vr" : "SQ"
        }

Weasis will download it.

If the last value is missing (when "StorageAccessOnFind" is "Never"), Weasis will not download it. If some of the Weasis users out there want to get in touch with them to clarify the issue, feel free to do so …

no orthanc is on a remote server
client is on my laptop
i cant configure it to display weasis correctly

please can you help me?

Hello,

If you want to connect Weasis to Orthanc using DICOMweb, please read their documentation: DICOMWeb Import :: Weasis Documentation

Here is a minimal working Orthanc configuration (no configuration option is needed, except to load the DICOMweb plugin):

{
  "Plugins" : [ "./libOrthancDicomWeb.so" ]
}

Weasis configuration:

Definition of the so-called “WEB Node” for Orthanc:

Finally, executing the query-retrieve using DICOMweb:

This directly works on the localhost (i.e., when both Weasis and Orthanc run on the same computer). For query/retrieve over Internet, adapt the URL in the Weasis preferences and make sure that security is properly configured.

Regards,
Sébastien-

I did everything as you indicated, but it doesn’t give me any study back


dicom-web enabled

web-node setup

nothing studies

So, this indicates a misconfiguration in your network infrastructure. Check your logs (of both Orthanc and Weasis) and try on your local computer. Also, note that using the http:// protocol to transfer patient data is a terribly bad, insecure idea.

Orthanc log is There are no requests.
Weasiss log:


, my dicomweb.json

Your Weasis log shows: http Status 401 - Unauthorized.

This indicates that your Orthanc server is not accessible from your client computer. You most probably have not set the Orthanc configuration option RemoteAccessAllowed to true. Read the documentation.