Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

How to save measurements and annotations for a DICOM hosted in Orthanc?

Open kkmehta03 opened this issue 5 years ago • 15 comments

Hello! As the title says, I'm trying to find a way to save the annotations to the dicom files hosted on Orthanc server. I referred this, this and this issue, but I'm not sure how to implement the feature for Orthanc itself. Should some code changes be done on the back-end or is there a way to make the change from the front end? Edits : Adding screenshots to describe the exact issue

  1. Below image shows that the segmentation is getting done, and the measurements are successfully saved issue_screenshot_1
  2. Below image shows on refresh, that the segmentation is gone and so are the measurements: issue_screenshot_2
  3. For some reason, the annotations are going inside orthanc's server as a new instance, as shown below: issue_screenshot_3

Is there any way to fix this? Instead of getting saved as an instance, can it be shown as expected, in the first screenshot? Also, if the study list is not refreshed, the annotations on the dicom remain as expected.

Could anyone give some hints or documentation link to achieve this?

kkmehta03 avatar Jul 17 '20 10:07 kkmehta03

This is a known bug in OHIF when saving annotations to Orthanc

ranasrule avatar Jul 24 '20 12:07 ranasrule

@ranasrule Would you please point me to an appropriate fix? Is there any way to save it properly like an extension? I'm referring to a couple of issues here, but not finding any leads

kkmehta03 avatar Jul 24 '20 13:07 kkmehta03

@ranasrule Would you please point me to an appropriate fix? Is there any way to save it properly like an extension? I'm referring to a couple of issues here, but not finding any leads

I haven't found a resolution myself. I reported this issue a while back at the following link and free others have too but nothing has been done about it. If you do find a resolution please do let me know as well.

https://github.com/OHIF/Viewers/issues/1679

ranasrule avatar Jul 24 '20 14:07 ranasrule

@ranasrule Thanks for your responses. I'm continuing the conversation there as well to resolve this.

kkmehta03 avatar Jul 24 '20 20:07 kkmehta03

Hi, what I have to do to enable the feat to save annotations?

joweste avatar Aug 04 '20 17:08 joweste

Hello, I ran into the same problem. How did you resolve this? Changing the docker container? I am very new to this so I d like to ask for more details about how to save annotations. Right now I am trying to create a tool that can save measurements from a point in a CT scan <x,y> (like values from Probe tools) as well as some identifications like patient ID, date, into a csv file. I was looking at this: https://github.com/OHIF/Viewers/pull/954#issuecomment-607543229

Else, the save measurements from elliptical annotations into some form that I can read later works as well. However, when I tried to save measurements in Orthanc the measurement appeared as a container without the measurements in json file. I am not sure what I am missing to get this to work. What do you think is the best way to approach this? Thank you.

hleu avatar Sep 11 '20 00:09 hleu

measurements and annotations are still saved as a separate study in Orthanc...also measurements cant be labelled or description added

I don't know why this has been marked as closed.

ranasrule avatar Sep 30 '20 19:09 ranasrule

Whoops, looks like Github closed it automatically because the issue number was referenced in a merged PR.

swederik avatar Oct 01 '20 08:10 swederik

I am currently using docker orthanc, postgresql and have exactly same issue. Did anyone try to fix the issue?

donghakang avatar May 28 '21 07:05 donghakang

Is there a fix to this issue?

oriashush avatar Jul 18 '21 10:07 oriashush

Hi there. So that the error does not occur, is there a way to disable saving annotations?. Thank You Regards

luisuriarte avatar Sep 23 '21 14:09 luisuriarte

Hi, was this issue resolved?

maya-harel avatar Jul 13 '22 09:07 maya-harel

Yes. Edit the file Viewers-master/platform/viewer/src/OHIFStandaloneViewer.css add to end:

/# hide measurements button start/ #root > div.ToolbarRow > div.pull-right.m-t-1.rm-x-1 > div > div.roundedButtonWrapper:first-child { margin-left: 0; visibility: collapse; } /# hide measurements button end/

luisuriarte avatar Jul 13 '22 12:07 luisuriarte

Yes. Edit the file Viewers-master/platform/viewer/src/OHIFStandaloneViewer.css add to end:

/# hide measurements button start/ #root > div.ToolbarRow > div.pull-right.m-t-1.rm-x-1 > div > div.roundedButtonWrapper:first-child { margin-left: 0; visibility: collapse; } /# hide measurements button end/

Is this something I can configure when running orthanc and ohif in docker containers? (without updating the source code)

maya-harel avatar Jul 13 '22 15:07 maya-harel

I'm sorry friend. I don't know how to modify docker files

luisuriarte avatar Jul 13 '22 22:07 luisuriarte

This is fixed in latest master branch.

Feel free to re-open if the issue is not resolved you think

sedghi avatar Oct 12 '23 20:10 sedghi