knopkem / dicomweb-proxy

A proxy to translate between dicomweb and traditional dicom dimse services (PACS communication)
Other
66 stars 18 forks source link

How to connect with other Dicom viewers #128

Closed Shuun26 closed 11 months ago

Shuun26 commented 1 year ago

Hi @knopkem, sorry I didn't meant to upload the issue empty.

I was trying to connect dicomweb-proxy with weasis 4.x. Don't really sure what url could I use with URL parameter.

image

Sorry for the dumb question, I'm really newbie on dicomweb-protocol.

Also this is my config file on dicomweb-proxy

"peers": [ { "aet": "XPACS", "ip": "127.0.0.1", "port": 11112 } ], // transfer syntax (e.g. compression of dicom files) used for transmission via wado and proposed to pacs "transferSyntax": "1.2.840.10008.1.2.4.80",

// Set the mimeType to match the selected transferSyntax "mimeType": "image/dicom+jpeg",

// only used for JPEG process 1,2,4 "lossyQuality": 60,

// log directory "logDir": "./logs",

// cache directory "storagePath": "./data",

// keep cache alive for how long after storage or -1 to disable "cacheRetentionMinutes": 60,

// webserver port "webserverPort": 18883,

// target PACS supports C-Get (if flase use C-Move instead) "useCget": true,

// define which level to use for C-Move/C-Get fetches: STUDY, SERIES, IMAGE "useFetchLevel": "SERIES",

// number of associations to PACS run in parallel "maxAssociations": 4,

// do not issue c-find if search contains less characters "qidoMinChars": 0,

// auto append * for patient name query "qidoAppendWildcard": true,

// enable verbose logging to std::out (contains DIMSE output) "verboseLogging": false,

// only disable when using wadouri instead of wadors "fullMeta": true,

// disabled when empty, otherwise use connection url e.g. ws://localhost:6001 "websocketUrl": "",

// this is the secret your dicomweb-websocket-bride needs to configure too, make sure to keep it secret, and of course change it ,-) hint: use https://hashgenerator.de/ "websocketToken": "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e" }

Note: I didn't change anything on Ohif Viewer configuration

knopkem commented 1 year ago

Please provide more information. What kind of viewers: web based, native application, where hosted ? Maybe bring examples. The example ohif viewer (public directory) had a app config file that specifies the mapping to qido and wado routes.

Shuun26 commented 1 year ago

Also, I tried this URL, but didn't work image

knopkem commented 1 year ago

The above looks almost good. Can you try with: http://localhost:18883/rs If I find some time, will also try setting up weasis.

Shuun26 commented 1 year ago

That worked thanks a lot @knopkem I really appreciate it.

image

knopkem commented 1 year ago

Awesome! Let me know if you encounter any issues. To be honest I never tested with anything except the OHIF viewer. Cheers

Shuun26 commented 1 year ago

So I ran into this problem with the thumbnails. image The images display correctly, I'm still figuring out what's going on.

Note: I used this example from Weasis and the thumbnails display correctly weasis://$dicom:rs --url "https://demo.orthanc-server.com/dicom-web" -r "patientID=5Yp0E"

knopkem commented 1 year ago

Ok, I just tested myself. The issue is that images are requested as jpeg and not as DICOM (this is what OHIF viewer does). So this is currently a bit cumbersome. What you need to do is:

Will see if I can implement this natively (so the above would not be needed), but this will take quite some time.

Shuun26 commented 1 year ago

Yes, this worked! Thank you so much @knopkem!