How to connect OHIF Viewer with Orthanc

I have recently started using OHIF Viewer (version 3.8.3) and have done upto the the following steps:

  1. Cloned the repository: `git clone GitHub - OHIF/Viewers: OHIF zero-footprint DICOM viewer and oncology specific Lesion Tracker, plus shared extension packages
  2. Changed the directory: cd Viewers
  3. Installed all the dependencies: yarn install
  4. Built the application: yarn run build

Additionally, I have created new modes and extensions and also linked them
And installed Orthanc.
But I need help and support in connecting Orthanc with OHIF. Could you please guide me on how to do this?
And also, if I’m not using the current stable version, please let me know the correct version.

Hi,

Have you tried modifying the OHIF configuration file ?
If so, can you share it ?
If not, take a look at Viewers/platform/app/public/config/local_orthanc.js. It is a config file to connect OHIF with an Orthanc instance hosted on your machine.

Hope it helps.
LB

Hello, guys

I downloaded OHIF Viewer via npm and I have the file called “ohif-viewer-4.12.51.tgz”. Unzipping the file I got a folder named “package”. It has a subfold of “dist”, which contains files including, app-config.js, index.html, and index.umd.js

I uploaded them to my apache2 directory and accessed the index.html but I got a blank page and console showed error:

Failed to load resource: A server with the specified hostname could not be found.

I have set up Orthanc but I am not sure how to connect the OHIF Viewer to the Orthanc server. Your help would be much appreciated. Many thanks.

You can follow this guide Nginx + Image Archive | OHIF

I did following steps to configure OHIF in my Orthanc running on UBUNTU 24.04.1 LTS.

  • Download libOrthancOHIF.so from the following link
    libOrthancOHIF.so

  • Placed the file in /lib/orthanc directory

  • Created a link in /usr/share/orthanc/plugins directory

  • Restarted Orthanc service

OHIF button showed up in Orthanc interface.