Skip to content
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

View Today's Results by Default #200

Closed
davidi1 opened this issue Jun 8, 2018 · 3 comments
Closed

View Today's Results by Default #200

davidi1 opened this issue Jun 8, 2018 · 3 comments
Assignees

Comments

@davidi1
Copy link

davidi1 commented Jun 8, 2018

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 :-)

@swederik
Copy link
Member

swederik commented Jul 2, 2018

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

@davidi1
Copy link
Author

davidi1 commented Jul 3, 2018

This is awesome! Thank you!

@blezek
Copy link

blezek commented Sep 29, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants