Create a "viewer" API endpoint that will configure a viewer for a specific medical imaging server
Right now, there is only a single URL in Sonador that can be used to access the OHIF viewer. This endpoint renders a list of DICOMweb servers that become part of the OHIF viewer configuration.
Presently, the OHIF viewer does not include a widget that allows a user to toggle between DICOMweb server instances if there are more than one. Only studies in the first server in the list should be shown, which makes it impossible to inspect studies in other servers managed by Sonador. The best way to solve this problem is to implement a "switcher" control that allows for a user to toggle between servers (see #14 (closed)).
While the switcher control is being implemented, a workaround solution would be to create an endpoint that renders a single-item list for individual servers. These endpoints would utilize the same OHIF viewer template, but filter the list of servers so that it only included the entry specified in the URL.
Example URL: viewer/{{ serverid }}
Requirements:
- When the viewer endpoint is accessed, it renders a single-server configuration for the desired DICOMweb instance.
- The viewer template URL would need to handle the same authentication workflows and redirects as the primary (current) endpoint.
- If the user is not authenticated, they should be redirected to a URL which forwards to the auth provider and then back to the server-specific endpoint.
- The URL endpoint should also be able to work with the standalone (development) Sonador configuration
- Hyperlinks should be part of the Django admin interface for the imaging server