Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

View Today's Results by Default

Open davidi1 opened this issue 8 years ago • 3 comments

Hello.

This is technically not an issue, but more of a "let me try to help others" type of a post :-) Mods, feel free to move this where it should go because I am honestly not sure where i should post this. I just want to pass this along to anyone else who might find it useful.

If you're using Orthanc like I am, you will more than likely notice that this Viewer takes forever to display results because it is trying to load the whole Orthanc database. I found a good workaround that displays Today's Date only and it requires very little editing. This is split in two methods, one for the Docker Image and the other one is if you're compiling the Viewer yourself.

For Docker Installs:

  1. Go to Viewers/dockersupport/ folder.
  2. Modify the app.json file to include the following line:

"ui": { "studyListDateFilterNumDays":1

I put the above line right after where it starts with public. So now, that part in my app.json file now looks like this:

"public": { "ui": { "studyListDateFilterNumDays":1 }, }, "proxy": { "enabled": true } } } }] }

  1. That's it. Build the Docker image using docker-compose and you're ready to go. Please make sure the syntax and spacing are correct. It is not letting me paste it correctly here :-)

Building the Viewer yourself:

  1. Go to Viewers/config.
  2. Open the server config file that you want to use in your favorite editor. I used "orthancDIMSE.json".
  3. In the "UI" section of the config file, add the following line and then save it:

"studyListDateFilterNumDays":1

My "orthancDIMSE.json" UI section now looks like this:

"ui": { "studyListFunctionsEnabled": true, "leftSidebarOpen": false, "displaySetNavigationLoopOverSeries": false, "displaySetNavigationMultipleViewports": true, "autoPositionMeasurementsTextCallOuts": "TRLB", "studyListDateFilterNumDays":1

  1. Compile and then run the Viewer.

I really hope this helps someone :-)

davidi1 avatar Jun 08 '18 19:06 davidi1

This is a good point. We should update the default configuration to use this filter.

swederik avatar Jul 02 '18 19:07 swederik

This is awesome! Thank you!

davidi1 avatar Jul 03 '18 15:07 davidi1

Hi, I have tho opposite problem of @davidi1, my OHIF viewer is for some demo data that can be quite old, I'd like to query all studies by default. @swederik, is there a way to do this using the config file?

blezek avatar Sep 29 '18 12:09 blezek