Viewers: Example of using the OHIF Viewer to view a DICOM file

Created on 4 Jun 2020  路  1Comment  路  Source: OHIF/Viewers

Hello, I have questions about the documentation, I did a quick reading and I didn't understand very well how OHIF Viewer works with a script tag.

In the basic configuration, I haven't found a location explaining how each parameter works.

window.config = {
  routerBasename: '/',
  servers: {
    dicomWeb: [
      {
        name: 'DCM4CHEE',
        qidoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs',
        wadoRoot: 'https://server.dcmjs.org/dcm4chee-arc/aets/DCM4CHEE/rs',
        qidoSupportsIncludeField: true,
        imageRendering: 'wadors',
        thumbnailRendering: 'wadors',
      },
    ],
  },
};

I would like to know what each one is for to understand how it works. I may not have paid attention, but how do I manage to view a DICOM image? From a directory with a file or a url.

Captura de tela de 2020-06-04 10-41-00

My goal is to use the viewer on any html page with javascript. Without a code it is difficult to help me, but I just need information to help me understand how it works and set it up correctly.

The following links did not clarify my doubts:

https://codesandbox.io/s/viewer-script-tag-tprch
https://docs.ohif.org/deployment/recipes/embedded-viewer.html
https://docs.ohif.org/configuring/

Thank you in advance.

Kind regards,
Gleison Andrade

Community Triage

Most helpful comment

Not sure if this help you. But there is a local file mode.
In your https://codesandbox.io/s/viewer-script-tag-tprch example, Try adding local at the end of your url.
i.e. https://tprch.csb.app/local
You'll be prompted to select a file or directory.

>All comments

Not sure if this help you. But there is a local file mode.
In your https://codesandbox.io/s/viewer-script-tag-tprch example, Try adding local at the end of your url.
i.e. https://tprch.csb.app/local
You'll be prompted to select a file or directory.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AtmiyaVaghela picture AtmiyaVaghela  路  4Comments

ohif-bot picture ohif-bot  路  3Comments

jaizz2003 picture jaizz2003  路  3Comments

christianvargasforero picture christianvargasforero  路  4Comments

szwang-wthealth picture szwang-wthealth  路  3Comments