knopkem / dicomweb-proxy

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

Can't connect to proxy #4

Closed gmer16 closed 4 years ago

gmer16 commented 4 years ago

Hi, I'm trying to test your component sending data from a python script. I setup the "target" in the proxy configuration file as a locally running orthanc instance. When I start the proxy the "target" connection test (C-ECHO) succeeds.

However, I'm not able to send images from my test script, what is the correct configuration for the endpoints?

from dicomweb_client.api import DICOMwebClient
import pydicom

client = DICOMwebClient(
    url="http://localhost/",
    qido_url_prefix="rs",
    wado_url_prefix="wadouri",
    stow_url_prefix="rs"
)

filename = "./data/IM-0001-0001.dcm"
dataset = pydicom.dcmread(filename)
client.store_instances(datasets=[dataset])

Thanks

``

knopkem commented 4 years ago

Hi, not sure to understand the issue correctly. From what you wrote I assume that you try to store dicomdata in orthanc using the proxy (basically pushing data to the proxy which pushes to orthanc). Unfortunately this is not yet implemented as the goal was to allow DICOMWEB image viewers to connect to a PACS and pull images mainly. However it is on my todo list, but I can't give you any due dates for it, sorry.

gmer16 commented 4 years ago

Ok, thank you for the clarification, cheers.

knopkem commented 4 years ago

Btw. you don't need a proxy with orthanc as it natively supports dicomweb: https://www.orthanc-server.com/static.php?page=dicomweb