OHIF Nun-db
Nun-db and OHIF Integration POC
This repository contains a proof-of-concept (POC) integration between Nun-db and OHIF (Open Health Imaging Foundation). The purpose of this experiment is to explore how Nun-db can facilitate multi-user interactions within OHIF, a widely-used open-source platform for medical imaging.
Overview
The integration aims to leverage Nun-db, a real-time browser-based database, to enhance the collaborative capabilities of OHIF. By utilizing Nun-db's real-time synchronization and data sharing features, we can enable multiple users to interact with OHIF simultaneously, providing a seamless and collaborative experience.
Features
- Real-time data synchronization: Nun-db allows real-time synchronization of data across multiple users, ensuring that any changes made by one user are immediately reflected for others.
- Multi-user interactions: With Nun-db, multiple users can simultaneously interact with OHIF, enabling collaborative viewing, annotation, and analysis of medical images.
Install Nundb lib
- In bash command
# In the OHIF root folder
yarn add ohif-nun-db --ignore-workspace-root-check
- platform/app/pluginConfig.json
// Add this to the pluginConfig.json in extentions
{
"packageName": "ohif-nun-db"
}
- Add your Nundb configs to your
platform/app/public/config/default.js
window.config = {
//.. Omitted for simplicity
dataSources: [
//... Omitted for simplicity
],
hotkeys: [
//... Omitted for simplicity
],
nunDb: {
URL: 'wss://ws-staging.nundb.org', // Nun-db server address
db: 'features-of-db',// Nun-db Db instance
user: 'client', // Nun-db db user
token: 'client-pwd',// Nun-db user token
key: 'client-YOUR_NAME_HERE', // Replace this key to a unique one
},
};
Demo
Tutorial
- Checkout the full tutorial in my blog Here.