Back to Projects List
OHIF-v3 architecture has been re-designed to enable building applications that are easily extensible to various use cases (Modes) that behind the scene would utilize desired functionalities (Extensions) to reach the goal of the use case. A mode can be thought of as a viewer app configured to perform a specific task, such as tracking measurements over time, 3D segmentation, a guided radiological workflow, etc. Addition of modes enables application with many applications as each mode become a mini app configuration behind the scene.
Currently OHIF developers have to copy paste the source code of a sample Mode/Extension and edit the source code to let OHIF know about the new Mode/Extension they are developing, which has its limitations. The purpose of this project is to overcome this by enabling self-registration of Modes and Extensions and provide a ohif-cli tool to automatically generate templates and link Mode/Extension(s) internally.
Super stretch goal: type all the things
Complete all of the primary objectives as fast as possible and then play with the stretch goals.
create-mode command to create a new template to write modes
It generates the template files for you to write your own mode
create-extension command to create a new template to write extensions.
It also generates template for an extension
add-mode <mode-name> will install any ohif-mode that has been published on npm registry and make it available on OHIF.
After installation the mode becomes avaiable.
search will search in all npm packages for those who have
ohif-mode in their keywords and display their information
6) OHIF website update
Using Github GraphQL we showcase a list of modes that are published on the npm registry.
The README file of each mode repository is fetched and shown in its detailed page