Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

Change standalone viewer to accept `url` param instead of `id`

Open hauleth opened this issue 9 years ago • 9 comments

This should match more use cases when standalone viewer is needed.

hauleth avatar Jul 17 '17 13:07 hauleth

Agreed. I have recently setup a standalone version on AWS S3 that does this here:

http://ohif-viewer.s3-website.eu-central-1.amazonaws.com/?url=https://s3.eu-central-1.amazonaws.com/ohif-viewer/sampleDICOM.json

You can download the actual JSON here (https://s3.eu-central-1.amazonaws.com/ohif-viewer/sampleDICOM.json) and point it to whatever you want to load. The JSON host just needs to support CORS.

I'll leave this open until the Standalone Viewer is updated.

swederik avatar Jul 17 '17 14:07 swederik

Do you know when the stand alone viewer might be updated?

jmckniff avatar Jul 23 '17 18:07 jmckniff

This would be a great feature to quickly integrate with any web server. Is it possible for the URL to be in the format of wado-rs or even wado-url?

Zaid-Safadi avatar Jul 30 '17 22:07 Zaid-Safadi

Hi @swederik , any updates on when this would be available or how would I go with supporting such a feature?

Thanks!

Zaid-Safadi avatar Sep 14 '17 21:09 Zaid-Safadi

This commit should do it:

https://github.com/OHIF/Viewers/commit/25690ef888df2a889c87ab2a7a6af79246824ce9

If I run the standalone viewer, I can now use:

http://localhost:3000/?url=https://s3.eu-central-1.amazonaws.com/ohif-viewer/sampleDICOM.json

and it works fine. Note: I didn't rebuild the SampleClientOnlyBuild folder, so that version won't do it.

swederik avatar Oct 19 '17 09:10 swederik

This is a nice addition to the standalone viewer @swederik

I was able to quickly integrate the OHIF viewer to the DICOMcloud project by supporting the JSON format in the URL parameter.

You can check the demo if you like here: http://dicomweb.azurewebsites.net/ to see this feature working live.

Zaid-Safadi avatar Oct 30 '17 01:10 Zaid-Safadi

@Zaid-Safadi That's very cool! Nice job!

swederik avatar Oct 30 '17 06:10 swederik

@Zaid-Safadi Cool demo! I tried to access some test dicom images on my local file system from the standalone viewer but it didn't work .. I think my query urls were not good .. My images are in the StandaloneViewer/public/images/ folder .. Do you have any idea how can I access them?

hasanmansor avatar Nov 22 '17 15:11 hasanmansor

Thanks @hasanmansor, I believe this could be better handled in a new issue

Zaid-Safadi avatar Nov 22 '17 20:11 Zaid-Safadi