-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to parse the data at multipart file while calling dicomWebRetrieveStudy.js API #1545
Comments
👋 @nehawankar174 Thanks for opening the issue. @noerog Could you have a look please. Thanks. |
Hi Nehawankar, this method is used to retrieve a multipart study file that you can parse to get each individual DICOM file. It is not intended to give a JSON response. What are you expecting in the JSON? |
Hi Noerog, Thanks for your quick response :) [ In addition, if I am retrieving study details after the inference from Inference store, how I can parse multiple DICOM files and multiple JSON Files (2 .dcm + 2 .json) Thanks! |
If you want to receive a JSON response with details about the study, you should use the Search transaction searchForStudies method (https://cloud.google.com/healthcare/docs/reference/rest/v1beta1/projects.locations.datasets.dicomStores/searchForStudies). We have some samples of how to use the Search transaction for instances in https://cloud.google.com/healthcare/docs/how-tos/dicomweb#searching_for_studies_series_instances_and_frames, but you can do the same thing with studies. Can you clarify what you mean by inference store? |
Hey Noerog, searchForStudies method worked for us and getting the response in JSON format. At the bottom, there’s reference for “My Inference Store” Thanks! |
If you retrieve a study, you need to parse it based on the multipart boundaries. There are many Node.js libraries for doing this and for parsing JSON. |
Hello,
I am trying to call dicomWebRetrieveStudy API by calling healthcare/dicom/dicomWebRetrieveStudy.js file, here I am able to create multipart file. The response type is arraybuffer. I have attached the screenshot for response what I am getting now.
But now I want to parse the response in JSON format. How can I achieve the responce in JSON format.
Can anyone help for the same.
Thanks
The text was updated successfully, but these errors were encountered: