refactor: 💡 Move DICOMSR code to @ohif/core project (#1310)

* Move DICOMSR to @ohif/core

* refactor: 💡 Move DICOMSR code to @ohif/core project

We've just merged support for DICOM Structured Reports. Today, support
for this feature lives in the @ohif/viewer project in it's lib folder.
Ideally, it should be moved to @ohif/core and given a clear public API
and unit tests.

Closes: #1282

* Update imports

* CR Update: Update imports
This commit is contained in:
Igor Octaviano authored and Danny Brown committed 2019-12-18 13:25:53 -05:00
1 parent 73a3f07e2b
commit 695ad732e1
15 files changed
+73 -35

No files matched your search

@@ -1,9 +1,8 @@
import { connect } from 'react-redux';
import { MeasurementTable } from '@ohif/ui';
import OHIF from '@ohif/core';
import OHIF, { DICOMSR } from '@ohif/core';
import moment from 'moment';
import cornerstone from 'cornerstone-core';
import DICOMSR from './../../lib/DICOMSR';
import jumpToRowItem from './jumpToRowItem.js';
@@ -32,9 +31,7 @@ function groupBy(list, props) {
*/
function getAllTools(toolGroups = []) {
let tools = [];
toolGroups.forEach(
toolGroup => (tools = tools.concat(toolGroup.childTools))
);
toolGroups.forEach(toolGroup => (tools = tools.concat(toolGroup.childTools)));
return tools;
}