Digital Imaging for Medicine in Nextcloud

Originally published at: Digital Imaging for Medicine in Nextcloud - Nextcloud

In the last months, Aysel Afsar Ozkan integrated a Digital Imaging and Communications in Medicine (DICOM) viewer in Nextcloud, making it available for medical professionals to review Radiography or Tomography images easily and, more importantly, securely.

Introducing DICOM

DICOM is the international standard to transmit, retrieve, store, print, process and display medical images that are embedded with patient medical information, such as Protected Health Information (PHI). Aysel developed an open source DICOM viewer for the Open Health Imaging Foundation (OHIF), an achievement that is especially impactful because DICOM is ubiquitous worldwide in radiological imaging devices and systems.

Meeting Nextcloud

In addition to her work with OHIF, Aysel worked for TOCA, a product innovation consulting company with a team of anthropologists, sociologists and designers helping companies innovate products by understanding the patterns of human behavior. It was at TOCA that she began using Nextcloud to efficiently and securely work with its global team and clients.

Aysel continued using Nexcloud for personal purposes and, given her experience at OHIF, had the brilliant idea to build an open source DICOM viewer for Nextcloud as a personal research project. In mere months, she integrated the DICOM viewer in Nextcloud and made it available on the app store.

DICOM viewer in Nextcloud

The DICOM Viewer allows the user to display and manipulate DICOM images with a streamlined sidebar and viewer, all without leaving Nextcloud. Once the DICOM Viewer application is enabled in Nextcloud, the app immediately and automatically matches all DICOM files with the *.dcm extension and the application/dicom MIME type.

The sidebar parses DICOM files and displays all DICOM attributes, such as Patient ID, Patient Name, and Study Date/Time, in a convenient details panel. A critical search feature on the sidebar enables the user to quickly search for specific DICOM attributes.

In a single click, the Nextcloud DICOM viewer displays images in different imaging modalities critical for radiological assessment, including Computed Radiography (CR), Computed Tomography (CT), Digital Radiography (DX), Mammography (MG), and Magnetic Resonance (MR). Each image may be enhanced with informational overlays pertaining to the patient, study, series, image and any manipulation. Image orientation markers indicate the corresponding direction of the image with the information encoded in the DICOM file, such as Left (L), Posterior (P), Head (H), and so on. The viewer also has a toolbar with the essential imaging tools: Window/Level, Zoom, Pan, Invert, Flip Horizontally, Flip Vertically, Rotate Left, Rotate Right; Region-based Window/Level to manipulate the image; Length, Probe, Elliptical Region of Interest (ROI), Rectangular Region of Interest (ROI) and Angle to annotate and take measurements; Reset to revert image manipulations; and Clear to delete all annotations and measurements on the image. Lastly, the DICOM viewer is enabled for image viewing and manipulation on mobile devices.


Aysel welcomes research collaborations and is available to work with Nextcloud customers who have specific needs around DICOM related issues.

Nextcloud in healthcare

Much of the data collected and viewed in hospitals and other medical facilities are still on paper, creating problems for collaboration and efficiency. Hence, the digitization of health data is accelerating.

The healthcare industry has unique challenges when it comes to handling data. Sensitive patient information such as a patient’s medical history, often termed Protected Health Information (PHI), needs to be available at a moments notice. Immediate access to health data saves lives. However, health data is also estimated to be worth a hundred times more than credit card details, making it a popular target for computer criminals (for more details, see our Healthcare Industry Analysis here.

Using remote cloud solutions to handle data is a risky proposition. Hospitals should instead control patient health data with an internal IT team rather than depend on far-away, often overseas IT providers. In this respect, Nextcloud provides a unique solution for the healthcare industry. When your organization decides that it is time to rely on a secure, self-hosted solution for sensitive data and DICOM handling, you can visit our Healthcare industry page or directly contact the Nextcloud sales team for information.

4 Likes

Hi,

Tried the plugin today - “Loading… 100%” and that’s it, no images are shown.

What did I miss? Using Debian 9 with Nextcloud 13.0.1

Thx for advising,
Holger

Hi,

Do you experience this issue: https://github.com/ayselafsar/dicomviewer/issues/6? Have you tried the latest version 0.0.4? If so, could you share a screenshot of browser console?

Thanks,
Aysel

Hi,

Seams to be the same issue. It’s the latest version 0.0.4.

I used your sample.zip and got this:

Thank you!
Holger

What is the url your Nextcloud is running on?

Thanks,
Aysel

http://nextcloud.praxis.local

It looks like urls are generated in wrong path. Could you share your config file? (You can omit your password)

What config file - Nextclouds config.php?

Yes, config.php

Fresh installation - nothing fancy in there:

<?php
$CONFIG = array (
  'instanceid' => '*',
  'passwordsalt' => '*',
  'secret' => '*',
  'trusted_domains' =>
  array (
    0 => 'nextcloud.praxis.local',
  ),
  'datadirectory' => '/data/nextcloud/data',
  'overwrite.cli.url' => 'http://nextcloud.praxis.local',
  'dbtype' => 'mysql',
  'version' => '13.0.1.1',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'user',
  'dbpassword' => '*',
  'installed' => true,
);

Thanks for your answers. One more thing, could you please try to update htaccess with the following command (replace www-data with the user your web server is running under if it is different)? Also, which web server are you using, apache or nginx?

sudo -u www-data php occ maintenance:update:htaccess

Updating htaccess didn’t change anything.:cry:

Apache 2.4.25 is my web server.

I applied a fix for the URL generation in v0.0.5 Could you please give it a try with v0.0.5?

Thanks for your help!

2 Likes

Thank you for your help!

With v0.0.5 I get a picture, unfortunately just the first one, scrolling the levels does not work.

There are still red messages in web console.

Unfortunately, scrolling through images is not supported yet but it is in the roadmap. Also, there is an open issue about it: https://github.com/ayselafsar/dicomviewer/issues/8

Hi,

besides the issue with the missing scrolling, I do find the DICOM viewer a really great extension to Nextcloud. The apps looks very clean and polished already. Very well done!

3 Likes

Holibert, what are your requirements? Maybe we can assist you. Let us know.

Kindest regards

Stephan - I endorse your statement.

Kindest regards

1 Like

Maybe healthcare support could be expanded:

Hi,

Who are the target users of this DICOM viewer?