Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

Retrieve binary DICOM instance

Open MathisGuilhin opened this issue 7 years ago • 8 comments

Hello OHIF team,

According to DICOM WADO-RS specifications, we should be able to retrieve binary DICOM instances from the PACS. But where is it actually manipulated? Where can i retrieve this instance (that I would like to save)?

MathisGuilhin avatar Jul 30 '19 08:07 MathisGuilhin

When we use WADO-RS we are retrieving the pixel data and the metadata separately. First we do a Study Metadata call and then we grab the pixel data for each frame.

If you want the entire instance you'll have to do the call separately or use WADO-URI.

swederik avatar Jul 30 '19 08:07 swederik

With the DICOMWeb-client api, I managed to retrieve DICOM binary instance with this method:

https://github.com/dcmjs-org/dicomweb-client/blob/5c1a0a0138b0a77db661df84a6ac80737668b7e1/src/api.js#L1121

But when I use retrieveSeries or retrieveStudy, only the first instance of DICOM is readable. Besides, is there a way to save a whole series in one DICOM File?

Thank you!

MathisGuilhin avatar Jul 30 '19 12:07 MathisGuilhin

Hmm that could be a bug with retrieveSeries and/or retrieveStudy, I did change those recently.

You can't get them in one file, retrieveSeries/Study with dicomweb-client should give you back a list of instances as arraybuffers though. If it's not doing that, we should create an issue there.

swederik avatar Jul 30 '19 12:07 swederik

It actually gives back a list of instances as arraybuffers, but only the first one is readable (or maybe im not doing it right). A loop with instance should do the trick here, but it's still weird it isn't working though

MathisGuilhin avatar Jul 30 '19 13:07 MathisGuilhin

@MathisGuilhin have you made any progress on this? Anything we can do to assist?

dannyrb avatar Aug 26 '19 16:08 dannyrb

No, As I said I was only able to retrieve DICOM instances, but I haven't tried with all the recent commits you've made since

MathisGuilhin avatar Aug 27 '19 07:08 MathisGuilhin

We should move this to dicomweb-client then. That sounds like an issue on that library.

swederik avatar Sep 02 '19 12:09 swederik

https://github.com/dcmjs-org/dicomweb-client/issues/21

dannyrb avatar Sep 06 '19 16:09 dannyrb