Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fab122dd8f | ||
|
|
42803b0ae8 | ||
|
|
5a78da8ff6 | ||
|
|
0ef88e88eb | ||
|
|
a7b5f1847a | ||
|
|
5cb6e63b88 | ||
|
|
48eb4a9ec3 | ||
|
|
d9231fd431 |
No files matched your search
@@ -3,6 +3,22 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [0.1.5](https://github.com/OHIF/Viewers/compare/@ohif/extension-debugging@0.1.4...@ohif/extension-debugging@0.1.5) (2020-09-17)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-debugging
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [0.1.4](https://github.com/OHIF/Viewers/compare/@ohif/extension-debugging@0.1.3...@ohif/extension-debugging@0.1.4) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-debugging
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 0.1.3 (2020-09-03)
|
## 0.1.3 (2020-09-03)
|
||||||
|
|
||||||
**Note:** Version bump only for package @ohif/extension-debugging
|
**Note:** Version bump only for package @ohif/extension-debugging
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/extension-debugging",
|
"name": "@ohif/extension-debugging",
|
||||||
"version": "0.1.3",
|
"version": "0.1.5",
|
||||||
"description": "OHIF extension for debugging.",
|
"description": "OHIF extension for debugging.",
|
||||||
"author": "OHIF",
|
"author": "OHIF",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -2,3 +2,8 @@
|
|||||||
padding: 10px 0 10px;
|
padding: 10px 0 10px;
|
||||||
color: var(--active-color);
|
color: var(--active-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.debug-report-modal-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
@@ -1,22 +1,108 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { detect } from 'detect-browser';
|
import { detect } from 'detect-browser';
|
||||||
import './DebugReportModal.css';
|
import './DebugReportModal.css';
|
||||||
|
import { ToolbarButton } from '@ohif/ui';
|
||||||
|
|
||||||
const DubugReportModal = ({
|
const DubugReportModal = ({
|
||||||
viewports,
|
viewports,
|
||||||
studies,
|
studies,
|
||||||
servers,
|
servers,
|
||||||
extensionManager,
|
extensionManager,
|
||||||
|
mailTo,
|
||||||
}) => {
|
}) => {
|
||||||
|
const mailToFunction = () => {
|
||||||
|
const StudyInstanceUID = Object.keys(studies.studyData)[0];
|
||||||
|
|
||||||
|
const subject = encodeURI(`Issue with Study: ${StudyInstanceUID}`);
|
||||||
|
|
||||||
|
let body = `Enter the description of your problem here: \n\n\n`;
|
||||||
|
|
||||||
|
body += `============= SESSION INFO =============\n\n`;
|
||||||
|
|
||||||
|
// App version
|
||||||
|
|
||||||
|
body += '== App ==\n';
|
||||||
|
body += `version\t${window.version}\n\n`;
|
||||||
|
|
||||||
|
// Extensions Versions
|
||||||
|
|
||||||
|
body += '== Extensions Versions ==\n';
|
||||||
|
|
||||||
|
const { registeredExtensionVesions } = extensionManager;
|
||||||
|
|
||||||
|
Object.keys(registeredExtensionVesions).forEach(extensionId => {
|
||||||
|
const version = registeredExtensionVesions[extensionId];
|
||||||
|
|
||||||
|
body += `${extensionId}\t${version}\n`;
|
||||||
|
});
|
||||||
|
|
||||||
|
body += '\n';
|
||||||
|
|
||||||
|
// Browser Info
|
||||||
|
|
||||||
|
const browser = detect();
|
||||||
|
|
||||||
|
const { name, os, type, version } = browser;
|
||||||
|
|
||||||
|
body += '== Browser Info ==\n';
|
||||||
|
body += `name\t ${name}\n`;
|
||||||
|
body += `os\t ${os}\n`;
|
||||||
|
body += `type\t ${type}\n`;
|
||||||
|
body += `version\t ${version}\n\n`;
|
||||||
|
|
||||||
|
// Study URL
|
||||||
|
body += '== URL ==\n';
|
||||||
|
body += `URL\t ${window.location.href}\n\n`;
|
||||||
|
|
||||||
|
// Layout
|
||||||
|
|
||||||
|
const { numRows, numColumns, viewportSpecificData } = viewports;
|
||||||
|
|
||||||
|
body += '== Viewport Layout ==\n';
|
||||||
|
body += `Rows\t${numRows}\n`;
|
||||||
|
body += `Columns\t${numColumns}\n\n`;
|
||||||
|
|
||||||
|
body += '== Viewports ==\n';
|
||||||
|
|
||||||
|
Object.keys(viewportSpecificData).forEach(viewportIndex => {
|
||||||
|
const vsd = viewportSpecificData[viewportIndex];
|
||||||
|
|
||||||
|
const [row, column] = _viewportIndexToViewportPosition(
|
||||||
|
viewportIndex,
|
||||||
|
numColumns
|
||||||
|
);
|
||||||
|
|
||||||
|
body += `[${row},${column}]\t${vsd.SeriesInstanceUID}\n`;
|
||||||
|
});
|
||||||
|
|
||||||
|
// TODO Text dump of rest of stuff.
|
||||||
|
|
||||||
|
body = encodeURI(body);
|
||||||
|
|
||||||
|
window.location.href = `mailto:${mailTo}?subject=${subject}&body=${body}`;
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="debug-report-modal-container">
|
||||||
<table>
|
{mailTo ? (
|
||||||
{getAppVersion()}
|
<div>
|
||||||
{getExtensionVersions(extensionManager)}
|
<ToolbarButton
|
||||||
{getBrowserInfo()}
|
label={'Send Bug Report'}
|
||||||
{getCurrentStudyUrl()}
|
onClick={mailToFunction}
|
||||||
{getLayout(viewports)}
|
icon={'envelope-square'}
|
||||||
</table>
|
isActive={false}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
<div>
|
||||||
|
<table>
|
||||||
|
{getAppVersion()}
|
||||||
|
{getExtensionVersions(extensionManager)}
|
||||||
|
{getBrowserInfo()}
|
||||||
|
{getCurrentStudyUrl()}
|
||||||
|
{getLayout(viewports)}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@@ -39,7 +125,7 @@ const getCurrentStudyUrl = () => {
|
|||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<tr>
|
<tr>
|
||||||
<th className="debugReportModalHeader">App</th>
|
<th className="debugReportModalHeader">URL</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>URL</td>
|
<td>URL</td>
|
||||||
@@ -131,8 +217,6 @@ const getBrowserInfo = () => {
|
|||||||
const getSeriesInstanceUIDsPerRow = viewports => {
|
const getSeriesInstanceUIDsPerRow = viewports => {
|
||||||
const { viewportSpecificData, numColumns } = viewports;
|
const { viewportSpecificData, numColumns } = viewports;
|
||||||
|
|
||||||
debugger;
|
|
||||||
|
|
||||||
// NOTE viewportSpecificData is actually an object with numerical keys.
|
// NOTE viewportSpecificData is actually an object with numerical keys.
|
||||||
return Object.keys(viewportSpecificData).map(viewportIndex => {
|
return Object.keys(viewportSpecificData).map(viewportIndex => {
|
||||||
const vsd = viewportSpecificData[viewportIndex];
|
const vsd = viewportSpecificData[viewportIndex];
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ import _downloadAndZip, { downloadInstances } from './downloadAndZip';
|
|||||||
import DebugReportModal from './DebugReportModal';
|
import DebugReportModal from './DebugReportModal';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
|
import state from './state';
|
||||||
|
|
||||||
const {
|
const {
|
||||||
utils: { Queue },
|
utils: { Queue },
|
||||||
} = OHIF;
|
} = OHIF;
|
||||||
@@ -99,6 +101,7 @@ export function getCommands(context, servicesManager, extensionManager) {
|
|||||||
studies={studies}
|
studies={studies}
|
||||||
servers={servers}
|
servers={servers}
|
||||||
extensionManager={extensionManager}
|
extensionManager={extensionManager}
|
||||||
|
mailTo={state.mailTo}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import { getDicomWebClientFromConfig } from './utils';
|
|||||||
import { getCommands } from './commandsModule';
|
import { getCommands } from './commandsModule';
|
||||||
import { version } from '../package.json';
|
import { version } from '../package.json';
|
||||||
import toolbarModule from './toolbarModule';
|
import toolbarModule from './toolbarModule';
|
||||||
|
import state from './state';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constants
|
* Constants
|
||||||
@@ -29,11 +30,15 @@ export default {
|
|||||||
* LIFECYCLE HOOKS
|
* LIFECYCLE HOOKS
|
||||||
*/
|
*/
|
||||||
|
|
||||||
preRegistration({ appConfig }) {
|
preRegistration({ appConfig, configuration }) {
|
||||||
const dicomWebClient = getDicomWebClientFromConfig(appConfig);
|
const dicomWebClient = getDicomWebClientFromConfig(appConfig);
|
||||||
if (dicomWebClient) {
|
if (dicomWebClient) {
|
||||||
sharedContext.dicomWebClient = dicomWebClient;
|
sharedContext.dicomWebClient = dicomWebClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (configuration && configuration.mailTo) {
|
||||||
|
state.mailTo = configuration.mailTo;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
const state = { mailTo: undefined };
|
||||||
|
|
||||||
|
export default state;
|
||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.2.8](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-html@1.2.7...@ohif/extension-dicom-html@1.2.8) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-dicom-html
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.2.7](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-html@1.2.6...@ohif/extension-dicom-html@1.2.7) (2020-09-03)
|
## [1.2.7](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-html@1.2.6...@ohif/extension-dicom-html@1.2.7) (2020-09-03)
|
||||||
|
|
||||||
**Note:** Version bump only for package @ohif/extension-dicom-html
|
**Note:** Version bump only for package @ohif/extension-dicom-html
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/extension-dicom-html",
|
"name": "@ohif/extension-dicom-html",
|
||||||
"version": "1.2.7",
|
"version": "1.2.8",
|
||||||
"description": "OHIF extension for rendering structured reports to HTML",
|
"description": "OHIF extension for rendering structured reports to HTML",
|
||||||
"author": "OHIF",
|
"author": "OHIF",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -22,11 +22,13 @@ const OHIFDicomHtmlSopClassHandler = {
|
|||||||
getDisplaySetFromSeries(series, study, dicomWebClient, authorizationHeaders) {
|
getDisplaySetFromSeries(series, study, dicomWebClient, authorizationHeaders) {
|
||||||
const instance = series.getFirstInstance();
|
const instance = series.getFirstInstance();
|
||||||
|
|
||||||
|
const metadata = instance.getData().metadata;
|
||||||
const {
|
const {
|
||||||
|
SeriesDescription,
|
||||||
|
SeriesNumber,
|
||||||
SeriesDate,
|
SeriesDate,
|
||||||
SeriesTime,
|
SeriesTime,
|
||||||
SeriesNumber,
|
} = metadata;
|
||||||
} = instance._instance.metadata;
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
plugin: 'html',
|
plugin: 'html',
|
||||||
@@ -37,6 +39,8 @@ const OHIFDicomHtmlSopClassHandler = {
|
|||||||
SOPInstanceUID: instance.getSOPInstanceUID(),
|
SOPInstanceUID: instance.getSOPInstanceUID(),
|
||||||
SeriesInstanceUID: series.getSeriesInstanceUID(),
|
SeriesInstanceUID: series.getSeriesInstanceUID(),
|
||||||
StudyInstanceUID: study.getStudyInstanceUID(),
|
StudyInstanceUID: study.getStudyInstanceUID(),
|
||||||
|
SeriesDescription,
|
||||||
|
metadata,
|
||||||
SeriesDate,
|
SeriesDate,
|
||||||
SeriesTime,
|
SeriesTime,
|
||||||
SeriesNumber,
|
SeriesNumber,
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [0.51.3](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-microscopy@0.51.2...@ohif/extension-dicom-microscopy@0.51.3) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.51.2](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-microscopy@0.51.1...@ohif/extension-dicom-microscopy@0.51.2) (2020-09-03)
|
## [0.51.2](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-microscopy@0.51.1...@ohif/extension-dicom-microscopy@0.51.2) (2020-09-03)
|
||||||
|
|
||||||
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
|
**Note:** Version bump only for package @ohif/extension-dicom-microscopy
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/extension-dicom-microscopy",
|
"name": "@ohif/extension-dicom-microscopy",
|
||||||
"version": "0.51.2",
|
"version": "0.51.3",
|
||||||
"description": "OHIF extension for Dicom Microscopy",
|
"description": "OHIF extension for Dicom Microscopy",
|
||||||
"author": "OHIF",
|
"author": "OHIF",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -12,11 +12,13 @@ const DicomMicroscopySopClassHandler = {
|
|||||||
getDisplaySetFromSeries(series, study, dicomWebClient) {
|
getDisplaySetFromSeries(series, study, dicomWebClient) {
|
||||||
const instance = series.getFirstInstance();
|
const instance = series.getFirstInstance();
|
||||||
|
|
||||||
|
const metadata = instance.getData().metadata;
|
||||||
const {
|
const {
|
||||||
|
SeriesDescription,
|
||||||
|
SeriesNumber,
|
||||||
ContentDate,
|
ContentDate,
|
||||||
ContentTime,
|
ContentTime,
|
||||||
SeriesNumber,
|
} = metadata;
|
||||||
} = instance._instance.metadata;
|
|
||||||
|
|
||||||
// Note: We are passing the dicomweb client into each viewport!
|
// Note: We are passing the dicomweb client into each viewport!
|
||||||
|
|
||||||
@@ -28,9 +30,11 @@ const DicomMicroscopySopClassHandler = {
|
|||||||
SOPInstanceUID: instance.getSOPInstanceUID(),
|
SOPInstanceUID: instance.getSOPInstanceUID(),
|
||||||
SeriesInstanceUID: series.getSeriesInstanceUID(),
|
SeriesInstanceUID: series.getSeriesInstanceUID(),
|
||||||
StudyInstanceUID: study.getStudyInstanceUID(),
|
StudyInstanceUID: study.getStudyInstanceUID(),
|
||||||
|
SeriesDescription,
|
||||||
SeriesDate: ContentDate, // Map ContentDate/Time to SeriesTime for series list sorting.
|
SeriesDate: ContentDate, // Map ContentDate/Time to SeriesTime for series list sorting.
|
||||||
SeriesTime: ContentTime,
|
SeriesTime: ContentTime,
|
||||||
SeriesNumber,
|
SeriesNumber,
|
||||||
|
metadata,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.0.6](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.0.5...@ohif/extension-dicom-pdf@1.0.6) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.0.5](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.0.4...@ohif/extension-dicom-pdf@1.0.5) (2020-09-03)
|
## [1.0.5](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-pdf@1.0.4...@ohif/extension-dicom-pdf@1.0.5) (2020-09-03)
|
||||||
|
|
||||||
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
**Note:** Version bump only for package @ohif/extension-dicom-pdf
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/extension-dicom-pdf",
|
"name": "@ohif/extension-dicom-pdf",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"description": "OHIF extension for Dicom PDF",
|
"description": "OHIF extension for Dicom PDF",
|
||||||
"author": "OHIF",
|
"author": "OHIF",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -12,11 +12,13 @@ const OHIFDicomPDFSopClassHandler = {
|
|||||||
getDisplaySetFromSeries(series, study, dicomWebClient, authorizationHeaders) {
|
getDisplaySetFromSeries(series, study, dicomWebClient, authorizationHeaders) {
|
||||||
const instance = series.getFirstInstance();
|
const instance = series.getFirstInstance();
|
||||||
|
|
||||||
|
const metadata = instance.getData().metadata;
|
||||||
const {
|
const {
|
||||||
ContentDate,
|
ContentDate,
|
||||||
ContentTime,
|
ContentTime,
|
||||||
|
SeriesDescription,
|
||||||
SeriesNumber,
|
SeriesNumber,
|
||||||
} = instance._instance.metadata;
|
} = metadata;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
plugin: 'pdf',
|
plugin: 'pdf',
|
||||||
@@ -27,9 +29,11 @@ const OHIFDicomPDFSopClassHandler = {
|
|||||||
SOPInstanceUID: instance.getSOPInstanceUID(),
|
SOPInstanceUID: instance.getSOPInstanceUID(),
|
||||||
SeriesInstanceUID: series.getSeriesInstanceUID(),
|
SeriesInstanceUID: series.getSeriesInstanceUID(),
|
||||||
StudyInstanceUID: study.getStudyInstanceUID(),
|
StudyInstanceUID: study.getStudyInstanceUID(),
|
||||||
|
SeriesDescription,
|
||||||
SeriesDate: ContentDate, // Map ContentDate/Time to SeriesTime for series list sorting.
|
SeriesDate: ContentDate, // Map ContentDate/Time to SeriesTime for series list sorting.
|
||||||
SeriesTime: ContentTime,
|
SeriesTime: ContentTime,
|
||||||
SeriesNumber,
|
SeriesNumber,
|
||||||
|
metadata,
|
||||||
authorizationHeaders: authorizationHeaders,
|
authorizationHeaders: authorizationHeaders,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,6 +3,22 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [0.4.5](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-rt@0.4.4...@ohif/extension-dicom-rt@0.4.5) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-dicom-rt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [0.4.4](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-rt@0.4.3...@ohif/extension-dicom-rt@0.4.4) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-dicom-rt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.4.3](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-rt@0.4.2...@ohif/extension-dicom-rt@0.4.3) (2020-09-03)
|
## [0.4.3](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-rt@0.4.2...@ohif/extension-dicom-rt@0.4.3) (2020-09-03)
|
||||||
|
|
||||||
**Note:** Version bump only for package @ohif/extension-dicom-rt
|
**Note:** Version bump only for package @ohif/extension-dicom-rt
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/extension-dicom-rt",
|
"name": "@ohif/extension-dicom-rt",
|
||||||
"version": "0.4.3",
|
"version": "0.4.5",
|
||||||
"description": "OHIF extension for rendering DICOM RTSTRUCTs on top of cornerstone images.",
|
"description": "OHIF extension for rendering DICOM RTSTRUCTs on top of cornerstone images.",
|
||||||
"author": "OHIF",
|
"author": "OHIF",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ const OHIFDicomRTStructSopClassHandler = {
|
|||||||
SeriesTime,
|
SeriesTime,
|
||||||
SeriesNumber,
|
SeriesNumber,
|
||||||
SeriesDescription,
|
SeriesDescription,
|
||||||
|
metadata,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!metadata.ReferencedSeriesSequence) {
|
if (!metadata.ReferencedSeriesSequence) {
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ import StructureSetItem from '../StructureSetItem/StructureSetItem';
|
|||||||
import RTPanelSettings from '../RTSettings/RTSettings';
|
import RTPanelSettings from '../RTSettings/RTSettings';
|
||||||
import PanelSection from '../PanelSection/PanelSection';
|
import PanelSection from '../PanelSection/PanelSection';
|
||||||
import LoadingIndicator from '../LoadingIndicator/LoadingIndicator';
|
import LoadingIndicator from '../LoadingIndicator/LoadingIndicator';
|
||||||
|
import TOOL_NAMES from '../../utils/toolNames';
|
||||||
|
|
||||||
|
const { RTSTRUCT_DISPLAY_TOOL } = TOOL_NAMES;
|
||||||
|
|
||||||
const { studyMetadataManager } = utils;
|
const { studyMetadataManager } = utils;
|
||||||
|
|
||||||
@@ -144,13 +147,16 @@ const RTPanel = ({
|
|||||||
if (isCornerstone()) {
|
if (isCornerstone()) {
|
||||||
const enabledElements = cornerstone.getEnabledElements();
|
const enabledElements = cornerstone.getEnabledElements();
|
||||||
const element = enabledElements[activeIndex].element;
|
const element = enabledElements[activeIndex].element;
|
||||||
const toolState = cornerstoneTools.getToolState(element, 'stack');
|
const stackToolState = cornerstoneTools.getToolState(
|
||||||
|
element,
|
||||||
|
'stack'
|
||||||
|
);
|
||||||
|
|
||||||
if (!toolState) {
|
if (!stackToolState) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const imageIds = toolState.data[0].imageIds;
|
const imageIds = stackToolState.data[0].imageIds;
|
||||||
|
|
||||||
const module = cornerstoneTools.getModule('rtstruct');
|
const module = cornerstoneTools.getModule('rtstruct');
|
||||||
const imageId = module.getters.imageIdOfCenterFrameOfROIContour(
|
const imageId = module.getters.imageIdOfCenterFrameOfROIContour(
|
||||||
@@ -159,6 +165,18 @@ const RTPanel = ({
|
|||||||
imageIds
|
imageIds
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const toolState = cornerstoneTools.globalImageIdSpecificToolStateManager.saveToolState();
|
||||||
|
const imageIdSpecificToolState = toolState[imageId];
|
||||||
|
|
||||||
|
const rtstructData =
|
||||||
|
imageIdSpecificToolState[RTSTRUCT_DISPLAY_TOOL];
|
||||||
|
|
||||||
|
const specificData = rtstructData.data.find(
|
||||||
|
rtData => rtData.ROINumber === ROINumber
|
||||||
|
);
|
||||||
|
|
||||||
|
specificData.highlight = true;
|
||||||
|
|
||||||
const frameIndex = imageIds.indexOf(imageId);
|
const frameIndex = imageIds.indexOf(imageId);
|
||||||
const SOPInstanceUID = cornerstone.metaData.get(
|
const SOPInstanceUID = cornerstone.metaData.get(
|
||||||
'SOPInstanceUID',
|
'SOPInstanceUID',
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { importInternal, getToolState, toolColors } from 'cornerstone-tools';
|
import { importInternal, getToolState, toolColors } from 'cornerstone-tools';
|
||||||
|
|
||||||
import TOOL_NAMES from '../utils/toolNames';
|
import TOOL_NAMES from '../utils/toolNames';
|
||||||
|
import drawCanvasCrosshairs from '../utils/drawCanvasCrosshairs';
|
||||||
|
|
||||||
// Cornerstone 3rd party dev kit imports
|
// Cornerstone 3rd party dev kit imports
|
||||||
const draw = importInternal('drawing/draw');
|
const draw = importInternal('drawing/draw');
|
||||||
@@ -37,11 +37,17 @@ export default class RTStructDisplayTool extends BaseTool {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { lineWidth, opacity } = rtstructModule.configuration;
|
const {
|
||||||
|
lineWidth,
|
||||||
|
opacity,
|
||||||
|
highlightOpacity,
|
||||||
|
} = rtstructModule.configuration;
|
||||||
|
|
||||||
// We have tool data for this element - iterate over each one and draw it
|
// We have tool data for this element - iterate over each one and draw it
|
||||||
const context = getNewContext(eventData.canvasContext.canvas);
|
const context = getNewContext(eventData.canvasContext.canvas);
|
||||||
|
|
||||||
|
let crossHairCenter;
|
||||||
|
|
||||||
for (let i = 0; i < toolState.data.length; i++) {
|
for (let i = 0; i < toolState.data.length; i++) {
|
||||||
const data = toolState.data[i];
|
const data = toolState.data[i];
|
||||||
|
|
||||||
@@ -75,27 +81,51 @@ export default class RTStructDisplayTool extends BaseTool {
|
|||||||
colorArray[2]
|
colorArray[2]
|
||||||
},${opacity})`;
|
},${opacity})`;
|
||||||
|
|
||||||
|
let highlight = data.highlight;
|
||||||
|
const options = { color, lineWidth };
|
||||||
|
|
||||||
|
if (highlight) {
|
||||||
|
crossHairCenter = { x: 0, y: 0 };
|
||||||
|
|
||||||
|
points.forEach(point => {
|
||||||
|
crossHairCenter.x += point.x;
|
||||||
|
crossHairCenter.y += point.y;
|
||||||
|
});
|
||||||
|
|
||||||
|
crossHairCenter.x /= points.length;
|
||||||
|
crossHairCenter.y /= points.length;
|
||||||
|
|
||||||
|
// TODO: Disabling hightlight for now, it'd be good to bring it back
|
||||||
|
// when we have a good way of doing this for SEG.
|
||||||
|
|
||||||
|
// options.fillStyle = color = `rgba(${colorArray[0]},${colorArray[1]},${
|
||||||
|
// colorArray[2]
|
||||||
|
// },${highlightOpacity})`;
|
||||||
|
|
||||||
|
// Draw highlight lines.
|
||||||
|
|
||||||
|
delete data.highlight; // Don't highlight on next render.
|
||||||
|
}
|
||||||
|
|
||||||
switch (data.type) {
|
switch (data.type) {
|
||||||
case 'CLOSED_PLANAR':
|
case 'CLOSED_PLANAR':
|
||||||
this._renderClosedPlanar(context, eventData.element, points, {
|
this._renderClosedPlanar(context, eventData.element, points, options);
|
||||||
color,
|
|
||||||
lineWidth,
|
|
||||||
});
|
|
||||||
break;
|
break;
|
||||||
case 'POINT':
|
case 'POINT':
|
||||||
this._renderPoint(context, eventData.element, points, {
|
this._renderPoint(context, eventData.element, points, options);
|
||||||
color,
|
|
||||||
lineWidth,
|
|
||||||
});
|
|
||||||
break;
|
break;
|
||||||
case 'OPEN_PLANAR':
|
case 'OPEN_PLANAR':
|
||||||
this._renderOpenPlanar(context, eventData.element, points, {
|
this._renderOpenPlanar(context, eventData.element, points, options);
|
||||||
color,
|
|
||||||
lineWidth,
|
|
||||||
});
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (crossHairCenter) {
|
||||||
|
drawCanvasCrosshairs(eventData, crossHairCenter, {
|
||||||
|
color: toolColors.getActiveColor(),
|
||||||
|
lineWidth: 1,
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_renderClosedPlanar(context, element, points, options) {
|
_renderClosedPlanar(context, element, points, options) {
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ function refreshViewport() {
|
|||||||
|
|
||||||
const configuration = {
|
const configuration = {
|
||||||
lineWidth: 3,
|
lineWidth: 3,
|
||||||
opacity: 1.0,
|
opacity: 0.75,
|
||||||
|
highlightOpacity: 0.5,
|
||||||
};
|
};
|
||||||
|
|
||||||
const state = {
|
const state = {
|
||||||
|
|||||||
@@ -0,0 +1,56 @@
|
|||||||
|
import cornerstone from 'cornerstone-core';
|
||||||
|
import cornerstoneTools from 'cornerstone-tools';
|
||||||
|
|
||||||
|
const { importInternal } = cornerstoneTools;
|
||||||
|
const draw = importInternal('drawing/draw');
|
||||||
|
const drawLine = importInternal('drawing/drawLine');
|
||||||
|
const getNewContext = importInternal('drawing/getNewContext');
|
||||||
|
|
||||||
|
export default function _drawCanvasCrosshairs(eventData, center, options) {
|
||||||
|
const context = getNewContext(eventData.canvasContext.canvas);
|
||||||
|
const { element } = eventData;
|
||||||
|
|
||||||
|
const centerCanvas = cornerstone.pixelToCanvas(element, center);
|
||||||
|
|
||||||
|
const { clientWidth: width, clientHeight: height } = element;
|
||||||
|
|
||||||
|
const offset = 10;
|
||||||
|
|
||||||
|
draw(context, context => {
|
||||||
|
drawLine(
|
||||||
|
context,
|
||||||
|
element,
|
||||||
|
{ x: centerCanvas.x + offset, y: centerCanvas.y },
|
||||||
|
{ x: width, y: centerCanvas.y },
|
||||||
|
options,
|
||||||
|
'canvas'
|
||||||
|
);
|
||||||
|
|
||||||
|
drawLine(
|
||||||
|
context,
|
||||||
|
element,
|
||||||
|
{ x: centerCanvas.x - offset, y: centerCanvas.y },
|
||||||
|
{ x: 0, y: centerCanvas.y },
|
||||||
|
options,
|
||||||
|
'canvas'
|
||||||
|
);
|
||||||
|
|
||||||
|
drawLine(
|
||||||
|
context,
|
||||||
|
element,
|
||||||
|
{ x: centerCanvas.x, y: centerCanvas.y + offset },
|
||||||
|
{ x: centerCanvas.x, y: height },
|
||||||
|
options,
|
||||||
|
'canvas'
|
||||||
|
);
|
||||||
|
|
||||||
|
drawLine(
|
||||||
|
context,
|
||||||
|
element,
|
||||||
|
{ x: centerCanvas.x, y: centerCanvas.y - offset },
|
||||||
|
{ x: centerCanvas.x, y: 0 },
|
||||||
|
options,
|
||||||
|
'canvas'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -3,6 +3,22 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [0.4.5](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-segmentation@0.4.4...@ohif/extension-dicom-segmentation@0.4.5) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-dicom-segmentation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [0.4.4](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-segmentation@0.4.3...@ohif/extension-dicom-segmentation@0.4.4) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-dicom-segmentation
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [0.4.3](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-segmentation@0.4.2...@ohif/extension-dicom-segmentation@0.4.3) (2020-09-03)
|
## [0.4.3](https://github.com/OHIF/Viewers/compare/@ohif/extension-dicom-segmentation@0.4.2...@ohif/extension-dicom-segmentation@0.4.3) (2020-09-03)
|
||||||
|
|
||||||
**Note:** Version bump only for package @ohif/extension-dicom-segmentation
|
**Note:** Version bump only for package @ohif/extension-dicom-segmentation
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/extension-dicom-segmentation",
|
"name": "@ohif/extension-dicom-segmentation",
|
||||||
"version": "0.4.3",
|
"version": "0.4.5",
|
||||||
"description": "OHIF extension for viewing segmentations in the 2D MPR view",
|
"description": "OHIF extension for viewing segmentations in the 2D MPR view",
|
||||||
"author": "OHIF",
|
"author": "OHIF",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import cornerstone from 'cornerstone-core';
|
|||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { utils, log } from '@ohif/core';
|
import { utils, log } from '@ohif/core';
|
||||||
import { ScrollableArea, TableList, Icon } from '@ohif/ui';
|
import { ScrollableArea, TableList, Icon } from '@ohif/ui';
|
||||||
|
import DICOMSegTempCrosshairsTool from '../../tools/DICOMSegTempCrosshairsTool';
|
||||||
|
|
||||||
import setActiveLabelmap from '../../utils/setActiveLabelMap';
|
import setActiveLabelmap from '../../utils/setActiveLabelMap';
|
||||||
import refreshViewports from '../../utils/refreshViewports';
|
import refreshViewports from '../../utils/refreshViewports';
|
||||||
@@ -334,6 +335,12 @@ const SegmentationPanel = ({
|
|||||||
imageId
|
imageId
|
||||||
);
|
);
|
||||||
|
|
||||||
|
DICOMSegTempCrosshairsTool.addCrosshair(
|
||||||
|
element,
|
||||||
|
imageId,
|
||||||
|
segmentNumber
|
||||||
|
);
|
||||||
|
|
||||||
onSegmentItemClick({
|
onSegmentItemClick({
|
||||||
StudyInstanceUID,
|
StudyInstanceUID,
|
||||||
SOPInstanceUID,
|
SOPInstanceUID,
|
||||||
|
|||||||
@@ -28,12 +28,12 @@ export default function getSopClassHandlerModule({ servicesManager }) {
|
|||||||
const {
|
const {
|
||||||
SeriesDate,
|
SeriesDate,
|
||||||
SeriesTime,
|
SeriesTime,
|
||||||
SeriesNumber,
|
|
||||||
SeriesDescription,
|
SeriesDescription,
|
||||||
FrameOfReferenceUID,
|
FrameOfReferenceUID,
|
||||||
SOPInstanceUID,
|
SOPInstanceUID,
|
||||||
SeriesInstanceUID,
|
SeriesInstanceUID,
|
||||||
StudyInstanceUID,
|
StudyInstanceUID,
|
||||||
|
SeriesNumber,
|
||||||
} = metadata;
|
} = metadata;
|
||||||
|
|
||||||
const segDisplaySet = {
|
const segDisplaySet = {
|
||||||
@@ -55,6 +55,7 @@ export default function getSopClassHandlerModule({ servicesManager }) {
|
|||||||
SeriesTime,
|
SeriesTime,
|
||||||
SeriesNumber,
|
SeriesNumber,
|
||||||
SeriesDescription,
|
SeriesDescription,
|
||||||
|
metadata,
|
||||||
};
|
};
|
||||||
|
|
||||||
segDisplaySet.getSourceDisplaySet = function(studies) {
|
segDisplaySet.getSourceDisplaySet = function(studies) {
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import csTools from 'cornerstone-tools';
|
import csTools from 'cornerstone-tools';
|
||||||
|
import DICOMSegTempCrosshairsTool from './tools/DICOMSegTempCrosshairsTool';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
@@ -17,4 +18,6 @@ export default function init({ servicesManager, configuration = {} }) {
|
|||||||
alwaysEraseOnClick: true,
|
alwaysEraseOnClick: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
csTools.addTool(DICOMSegTempCrosshairsTool);
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,127 @@
|
|||||||
|
import cornerstoneTools, {
|
||||||
|
importInternal,
|
||||||
|
getToolState,
|
||||||
|
toolColors,
|
||||||
|
getModule,
|
||||||
|
globalImageIdSpecificToolStateManager,
|
||||||
|
} from 'cornerstone-tools';
|
||||||
|
import cornerstone from 'cornerstone-core';
|
||||||
|
import drawCanvasCrosshairs from '../utils/drawCanvasCrosshairs';
|
||||||
|
import TOOL_NAMES from './TOOL_NAMES';
|
||||||
|
|
||||||
|
const { DICOM_SEG_TEMP_CROSSHAIRS_TOOL } = TOOL_NAMES;
|
||||||
|
const { getters } = getModule('segmentation');
|
||||||
|
|
||||||
|
// Cornerstone 3rd party dev kit imports
|
||||||
|
const BaseTool = importInternal('base/BaseTool');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @class RTStructDisplayTool - Renders RTSTRUCT data in a read only manner (i.e. as an overlay).
|
||||||
|
* @extends cornerstoneTools.BaseTool
|
||||||
|
*/
|
||||||
|
export default class DICOMSegTempCrosshairsTool extends BaseTool {
|
||||||
|
constructor(props = {}) {
|
||||||
|
const defaultProps = {
|
||||||
|
mixins: ['enabledOrDisabledBinaryTool'],
|
||||||
|
name: DICOM_SEG_TEMP_CROSSHAIRS_TOOL,
|
||||||
|
};
|
||||||
|
|
||||||
|
const initialProps = Object.assign(defaultProps, props);
|
||||||
|
|
||||||
|
super(initialProps);
|
||||||
|
|
||||||
|
this._rtStructModule = cornerstoneTools.getModule('rtstruct');
|
||||||
|
}
|
||||||
|
|
||||||
|
renderToolData(evt) {
|
||||||
|
const eventData = evt.detail;
|
||||||
|
const { element } = eventData;
|
||||||
|
const toolState = getToolState(evt.currentTarget, this.name);
|
||||||
|
|
||||||
|
if (!toolState) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// We have tool data for this element - iterate over each one and draw it
|
||||||
|
|
||||||
|
for (let i = 0; i < toolState.data.length; i++) {
|
||||||
|
const data = toolState.data[i];
|
||||||
|
const crossHairCenter = data.center;
|
||||||
|
|
||||||
|
drawCanvasCrosshairs(eventData, crossHairCenter, {
|
||||||
|
color: toolColors.getActiveColor(),
|
||||||
|
lineWidth: 1,
|
||||||
|
});
|
||||||
|
|
||||||
|
// Remove the crosshairs, we only render them for one redraw.
|
||||||
|
toolState.data.pop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
DICOMSegTempCrosshairsTool.addCrosshair = (element, imageId, segmentNumber) => {
|
||||||
|
const labelmap3D = getters.labelmap3D(element);
|
||||||
|
const stackToolState = cornerstoneTools.getToolState(element, 'stack');
|
||||||
|
const enabledElement = cornerstone.getEnabledElement(element);
|
||||||
|
|
||||||
|
const { rows, columns } = enabledElement.image;
|
||||||
|
|
||||||
|
if (!stackToolState) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
const imageIds = stackToolState.data[0].imageIds;
|
||||||
|
const imageIdIndex = imageIds.findIndex(imgId => imgId === imageId);
|
||||||
|
|
||||||
|
const labelmap2D = labelmap3D.labelmaps2D[imageIdIndex];
|
||||||
|
const { pixelData } = labelmap2D;
|
||||||
|
|
||||||
|
let xCenter = 0;
|
||||||
|
let yCenter = 0;
|
||||||
|
|
||||||
|
let count = 0;
|
||||||
|
|
||||||
|
for (let y = 0; y < rows; y++) {
|
||||||
|
for (let x = 0; x < columns; x++) {
|
||||||
|
if (pixelData[y * columns + x] === segmentNumber) {
|
||||||
|
count++;
|
||||||
|
xCenter += x + 0.5;
|
||||||
|
yCenter += y + 0.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
xCenter /= count;
|
||||||
|
yCenter /= count;
|
||||||
|
|
||||||
|
const globalToolState = globalImageIdSpecificToolStateManager.saveToolState();
|
||||||
|
|
||||||
|
if (!globalToolState[imageId]) {
|
||||||
|
globalToolState[imageId] = {};
|
||||||
|
}
|
||||||
|
|
||||||
|
const imageIdSpecificToolState = globalToolState[imageId];
|
||||||
|
|
||||||
|
if (!imageIdSpecificToolState[DICOM_SEG_TEMP_CROSSHAIRS_TOOL]) {
|
||||||
|
imageIdSpecificToolState[DICOM_SEG_TEMP_CROSSHAIRS_TOOL] = { data: [] };
|
||||||
|
} else if (!imageIdSpecificToolState[DICOM_SEG_TEMP_CROSSHAIRS_TOOL].data) {
|
||||||
|
imageIdSpecificToolState[DICOM_SEG_TEMP_CROSSHAIRS_TOOL].data = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
const toolSpecificData =
|
||||||
|
imageIdSpecificToolState[DICOM_SEG_TEMP_CROSSHAIRS_TOOL].data;
|
||||||
|
|
||||||
|
toolSpecificData.push({ center: { x: xCenter, y: yCenter }, segmentNumber });
|
||||||
|
|
||||||
|
// Enable the tool if not enabled for the element.
|
||||||
|
|
||||||
|
const tool = cornerstoneTools.getToolForElement(
|
||||||
|
element,
|
||||||
|
DICOM_SEG_TEMP_CROSSHAIRS_TOOL
|
||||||
|
);
|
||||||
|
|
||||||
|
if (tool.mode !== 'enabled') {
|
||||||
|
// If not already active or passive, set passive so contours render.
|
||||||
|
cornerstoneTools.setToolEnabled(DICOM_SEG_TEMP_CROSSHAIRS_TOOL);
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
const TOOL_NAMES = {
|
||||||
|
DICOM_SEG_TEMP_CROSSHAIRS_TOOL: 'DICOMSegTempCrosshairsTool',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default TOOL_NAMES;
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
import cornerstone from 'cornerstone-core';
|
||||||
|
import cornerstoneTools from 'cornerstone-tools';
|
||||||
|
|
||||||
|
const { importInternal } = cornerstoneTools;
|
||||||
|
const draw = importInternal('drawing/draw');
|
||||||
|
const drawLine = importInternal('drawing/drawLine');
|
||||||
|
const getNewContext = importInternal('drawing/getNewContext');
|
||||||
|
|
||||||
|
export default function _drawCanvasCrosshairs(eventData, center, options) {
|
||||||
|
const context = getNewContext(eventData.canvasContext.canvas);
|
||||||
|
const { element } = eventData;
|
||||||
|
|
||||||
|
const centerCanvas = cornerstone.pixelToCanvas(element, center);
|
||||||
|
|
||||||
|
const { clientWidth: width, clientHeight: height } = element;
|
||||||
|
|
||||||
|
const offset = 10;
|
||||||
|
|
||||||
|
draw(context, context => {
|
||||||
|
drawLine(
|
||||||
|
context,
|
||||||
|
element,
|
||||||
|
{ x: centerCanvas.x + offset, y: centerCanvas.y },
|
||||||
|
{ x: width, y: centerCanvas.y },
|
||||||
|
options,
|
||||||
|
'canvas'
|
||||||
|
);
|
||||||
|
|
||||||
|
drawLine(
|
||||||
|
context,
|
||||||
|
element,
|
||||||
|
{ x: centerCanvas.x - offset, y: centerCanvas.y },
|
||||||
|
{ x: 0, y: centerCanvas.y },
|
||||||
|
options,
|
||||||
|
'canvas'
|
||||||
|
);
|
||||||
|
|
||||||
|
drawLine(
|
||||||
|
context,
|
||||||
|
element,
|
||||||
|
{ x: centerCanvas.x, y: centerCanvas.y + offset },
|
||||||
|
{ x: centerCanvas.x, y: height },
|
||||||
|
options,
|
||||||
|
'canvas'
|
||||||
|
);
|
||||||
|
|
||||||
|
drawLine(
|
||||||
|
context,
|
||||||
|
element,
|
||||||
|
{ x: centerCanvas.x, y: centerCanvas.y - offset },
|
||||||
|
{ x: centerCanvas.x, y: 0 },
|
||||||
|
options,
|
||||||
|
'canvas'
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
const path = require('path');
|
||||||
|
const webpackCommon = require('./../../../.webpack/webpack.commonjs.js');
|
||||||
|
const SRC_DIR = path.join(__dirname, '../src');
|
||||||
|
const DIST_DIR = path.join(__dirname, '../dist');
|
||||||
|
|
||||||
|
module.exports = (env, argv) => {
|
||||||
|
return webpackCommon(env, argv, { SRC_DIR, DIST_DIR });
|
||||||
|
};
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
const merge = require('webpack-merge');
|
||||||
|
const path = require('path');
|
||||||
|
const webpackCommon = require('./../../../.webpack/webpack.commonjs.js');
|
||||||
|
const pkg = require('./../package.json');
|
||||||
|
|
||||||
|
const ROOT_DIR = path.join(__dirname, './..');
|
||||||
|
const SRC_DIR = path.join(__dirname, '../src');
|
||||||
|
const DIST_DIR = path.join(__dirname, '../dist');
|
||||||
|
|
||||||
|
module.exports = (env, argv) => {
|
||||||
|
const commonConfig = webpackCommon(env, argv, { SRC_DIR, DIST_DIR });
|
||||||
|
|
||||||
|
return merge(commonConfig, {
|
||||||
|
devtool: 'source-map',
|
||||||
|
stats: {
|
||||||
|
colors: true,
|
||||||
|
hash: true,
|
||||||
|
timings: true,
|
||||||
|
assets: true,
|
||||||
|
chunks: false,
|
||||||
|
chunkModules: false,
|
||||||
|
modules: false,
|
||||||
|
children: false,
|
||||||
|
warnings: true,
|
||||||
|
},
|
||||||
|
optimization: {
|
||||||
|
minimize: true,
|
||||||
|
sideEffects: true,
|
||||||
|
},
|
||||||
|
output: {
|
||||||
|
path: ROOT_DIR,
|
||||||
|
library: 'OHIFExtDicomP10Downloader',
|
||||||
|
libraryTarget: 'umd',
|
||||||
|
libraryExport: 'default',
|
||||||
|
filename: pkg.main,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# Change Log
|
||||||
|
|
||||||
|
All notable changes to this project will be documented in this file.
|
||||||
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## 0.0.2 (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-dicom-tag-browser
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2018 Open Health Imaging Foundation
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# @ohif/extension-dicom-tag-browser
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"name": "@ohif/extension-dicom-tag-browser",
|
||||||
|
"version": "0.0.2",
|
||||||
|
"description": "OHIF extension for checking DICOM headers.",
|
||||||
|
"author": "OHIF",
|
||||||
|
"license": "MIT",
|
||||||
|
"repository": "OHIF/Viewers",
|
||||||
|
"main": "dist/index.umd.js",
|
||||||
|
"module": "src/index.js",
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=10",
|
||||||
|
"npm": ">=6",
|
||||||
|
"yarn": ">=1.16.0"
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"dist",
|
||||||
|
"README.md"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"dev": "cross-env NODE_ENV=development webpack --config .webpack/webpack.dev.js --watch --debug --output-pathinfo",
|
||||||
|
"build": "cross-env NODE_ENV=production webpack --config .webpack/webpack.prod.js",
|
||||||
|
"build:package": "yarn run build",
|
||||||
|
"prepublishOnly": "yarn run build",
|
||||||
|
"start": "yarn run dev"
|
||||||
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"@ohif/core": "^2.6.0",
|
||||||
|
"dcmjs": "0.16.0",
|
||||||
|
"react": "^16.8.6"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": "^7.5.5",
|
||||||
|
"dicomweb-client": "^0.6.0",
|
||||||
|
"moment": "2.24.0",
|
||||||
|
"react-select": "^3.0.8"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import Select from 'react-select';
|
||||||
|
|
||||||
|
const DicomBrowserSelect = ({ value, formatOptionLabel, options }) => (
|
||||||
|
<Select
|
||||||
|
value={value}
|
||||||
|
formatOptionLabel={formatOptionLabel}
|
||||||
|
styles={dicomBrowserSelectStyles}
|
||||||
|
options={options}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
|
||||||
|
const computedstyle = getComputedStyle(document.body);
|
||||||
|
const uiGrayDarker = computedstyle.getPropertyValue('--ui-gray-darker');
|
||||||
|
const activeColor = computedstyle.getPropertyValue('--active-color');
|
||||||
|
const defaultColor = computedstyle.getPropertyValue('--default-color');
|
||||||
|
const uiGrayDark = computedstyle.getPropertyValue('--ui-gray-dark');
|
||||||
|
|
||||||
|
const dicomBrowserSelectStyles = {
|
||||||
|
singleValue: (base, state) => ({
|
||||||
|
...base,
|
||||||
|
width: '100%',
|
||||||
|
}),
|
||||||
|
control: (base, state) => ({
|
||||||
|
...base,
|
||||||
|
cursor: 'pointer',
|
||||||
|
background: uiGrayDarker,
|
||||||
|
borderRadius: state.isFocused ? '5px 5px 5px 5px' : 5,
|
||||||
|
borderColor: state.isFocused ? activeColor : defaultColor,
|
||||||
|
minHeight: '50px',
|
||||||
|
'&:hover': {
|
||||||
|
borderColor: activeColor,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
menu: base => ({
|
||||||
|
...base,
|
||||||
|
borderRadius: 5,
|
||||||
|
background: uiGrayDarker,
|
||||||
|
}),
|
||||||
|
option: (base, state) => ({
|
||||||
|
...base,
|
||||||
|
cursor: 'pointer',
|
||||||
|
'&:first-of-type': {
|
||||||
|
borderTopLeftRadius: 5,
|
||||||
|
borderTopRightRadius: 5,
|
||||||
|
},
|
||||||
|
'&:last-of-type': {
|
||||||
|
borderBottomLeftRadius: 5,
|
||||||
|
borderBottomRightRadius: 5,
|
||||||
|
},
|
||||||
|
background: state.isSelected ? uiGrayDark : uiGrayDarker,
|
||||||
|
'&:hover': {
|
||||||
|
background: uiGrayDark,
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
};
|
||||||
|
|
||||||
|
export default DicomBrowserSelect;
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
.dcmseg-segmentation-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: start;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dcmseg-segmentation-item .segmentation-meta {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
flex-grow: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dcmseg-segmentation-item .segmentation-meta-title {
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: white;
|
||||||
|
max-width: calc(100% - 30px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dcmseg-segmentation-item .segmentation-meta-description {
|
||||||
|
font-size: 12px;
|
||||||
|
color: var(--text-secondary-color);
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import PropTypes from 'prop-types';
|
||||||
|
|
||||||
|
import './DicomBrowserSelectItem.css';
|
||||||
|
|
||||||
|
const DicomBrowserSelectItem = ({ onClick, title, description }) => {
|
||||||
|
return (
|
||||||
|
<li className="dcmseg-segmentation-item" onClick={onClick}>
|
||||||
|
<div className="segmentation-meta">
|
||||||
|
<div className="segmentation-meta-title">{title}</div>
|
||||||
|
<div className="segmentation-meta-description">{description}</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
DicomBrowserSelectItem.propTypes = {
|
||||||
|
onClick: PropTypes.func.isRequired,
|
||||||
|
title: PropTypes.string.isRequired,
|
||||||
|
description: PropTypes.string.isRequired,
|
||||||
|
};
|
||||||
|
|
||||||
|
DicomBrowserSelectItem.defaultProps = {
|
||||||
|
description: '',
|
||||||
|
};
|
||||||
|
|
||||||
|
export default DicomBrowserSelectItem;
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
.dicom-tag-browser-table {
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dicom-tag-browser-table td {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
color: var(--table-text-primary-color);
|
||||||
|
border-top: 1px solid #ddd;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dicom-tag-browser-table td.dicom-tag-browser-table-center {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dicom-tag-browser-table th {
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
text-align: center;
|
||||||
|
color: var(--active-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dicom-tag-browser-table th.dicom-tag-browser-table-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
@@ -0,0 +1,228 @@
|
|||||||
|
import React, { useState } from 'react';
|
||||||
|
import { classes } from '@ohif/core';
|
||||||
|
import dcmjs from 'dcmjs';
|
||||||
|
import DicomBrowserSelect from './DicomBrowserSelect';
|
||||||
|
import moment from 'moment';
|
||||||
|
import './DicomTagBrowser.css';
|
||||||
|
import DicomBrowserSelectItem from './DicomBrowserSelectItem';
|
||||||
|
|
||||||
|
const { ImageSet } = classes;
|
||||||
|
const { DicomMetaDictionary } = dcmjs.data;
|
||||||
|
const { nameMap } = DicomMetaDictionary;
|
||||||
|
|
||||||
|
const DicomTagBrowser = ({ displaySets, displaySetInstanceUID }) => {
|
||||||
|
const [
|
||||||
|
activeDisplaySetInstanceUID,
|
||||||
|
setActiveDisplaySetInstanceUID,
|
||||||
|
] = useState(displaySetInstanceUID);
|
||||||
|
const [activeInstance, setActiveInstance] = useState(0);
|
||||||
|
|
||||||
|
const activeDisplaySet = displaySets.find(
|
||||||
|
ds => ds.displaySetInstanceUID === activeDisplaySetInstanceUID
|
||||||
|
);
|
||||||
|
|
||||||
|
const displaySetList = displaySets.map(displaySet => {
|
||||||
|
const {
|
||||||
|
displaySetInstanceUID,
|
||||||
|
SeriesDate,
|
||||||
|
SeriesTime,
|
||||||
|
SeriesNumber,
|
||||||
|
SeriesDescription,
|
||||||
|
Modality,
|
||||||
|
} = displaySet;
|
||||||
|
|
||||||
|
/* Map to display representation */
|
||||||
|
const dateStr = `${SeriesDate}:${SeriesTime}`.split('.')[0];
|
||||||
|
const date = moment(dateStr, 'YYYYMMDD:HHmmss');
|
||||||
|
const displayDate = date.format('ddd, MMM Do YYYY');
|
||||||
|
|
||||||
|
return {
|
||||||
|
value: displaySetInstanceUID,
|
||||||
|
title: `${SeriesNumber} (${Modality}): ${SeriesDescription}`,
|
||||||
|
description: displayDate,
|
||||||
|
onClick: () => {
|
||||||
|
setActiveDisplaySetInstanceUID(displaySetInstanceUID);
|
||||||
|
setActiveInstance(0);
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
let metadata;
|
||||||
|
const isImageStack = activeDisplaySet instanceof ImageSet;
|
||||||
|
|
||||||
|
let selectedInstanceValue;
|
||||||
|
let instanceList;
|
||||||
|
|
||||||
|
if (isImageStack) {
|
||||||
|
const { images } = activeDisplaySet;
|
||||||
|
const image = images[activeInstance];
|
||||||
|
|
||||||
|
instanceList = images.map((image, index) => {
|
||||||
|
const metadata = image.getData().metadata;
|
||||||
|
|
||||||
|
const { InstanceNumber } = metadata;
|
||||||
|
|
||||||
|
return {
|
||||||
|
value: index,
|
||||||
|
title: `Instance Number: ${InstanceNumber}`,
|
||||||
|
description: '',
|
||||||
|
onClick: () => {
|
||||||
|
setActiveInstance(index);
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
|
selectedInstanceValue = instanceList[activeInstance];
|
||||||
|
|
||||||
|
metadata = image.getData().metadata;
|
||||||
|
} else {
|
||||||
|
metadata = activeDisplaySet.metadata;
|
||||||
|
}
|
||||||
|
|
||||||
|
const selectedDisplaySetValue = displaySetList.find(
|
||||||
|
ds => ds.value === activeDisplaySetInstanceUID
|
||||||
|
);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<DicomBrowserSelect
|
||||||
|
value={selectedDisplaySetValue}
|
||||||
|
formatOptionLabel={DicomBrowserSelectItem}
|
||||||
|
options={displaySetList}
|
||||||
|
/>
|
||||||
|
{isImageStack ? (
|
||||||
|
<DicomBrowserSelect
|
||||||
|
value={selectedInstanceValue}
|
||||||
|
formatOptionLabel={DicomBrowserSelectItem}
|
||||||
|
options={instanceList}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
|
<DicomTagTable instanceMetadata={metadata}></DicomTagTable>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
function DicomTagTable({ instanceMetadata }) {
|
||||||
|
const rows = getRows(instanceMetadata);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<table className="dicom-tag-browser-table">
|
||||||
|
<tr>
|
||||||
|
<th className="dicom-tag-browser-table-left">Tag</th>
|
||||||
|
<th className="dicom-tag-browser-table-left">Value Representation</th>
|
||||||
|
<th className="dicom-tag-browser-table-left">Keyword</th>
|
||||||
|
<th className="dicom-tag-browser-table-left">Value</th>
|
||||||
|
</tr>
|
||||||
|
{rows.map(row => (
|
||||||
|
<tr>
|
||||||
|
<td>{row[0]}</td>
|
||||||
|
<td>{row[1]}</td>
|
||||||
|
<td>{row[2]}</td>
|
||||||
|
<td>{row[3]}</td>
|
||||||
|
</tr>
|
||||||
|
))}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function getRows(metadata, depth = 0) {
|
||||||
|
// Tag, Type, Value, Keyword
|
||||||
|
|
||||||
|
const keywords = Object.keys(metadata);
|
||||||
|
|
||||||
|
let tagIndent = '';
|
||||||
|
|
||||||
|
for (let i = 0; i < depth; i++) {
|
||||||
|
tagIndent += '>';
|
||||||
|
}
|
||||||
|
|
||||||
|
const rows = [];
|
||||||
|
|
||||||
|
for (let i = 0; i < keywords.length; i++) {
|
||||||
|
let keyword = keywords[i];
|
||||||
|
|
||||||
|
if (keyword === '_vrMap') {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const tagInfo = nameMap[keyword];
|
||||||
|
|
||||||
|
let value = metadata[keyword];
|
||||||
|
|
||||||
|
if (tagInfo && tagInfo.vr === 'SQ') {
|
||||||
|
const sequenceAsArray = toArray(value);
|
||||||
|
|
||||||
|
// Push line defining the sequence
|
||||||
|
rows.push([`${tagIndent}${tagInfo.tag}`, tagInfo.vr, keyword, '']);
|
||||||
|
|
||||||
|
if (value === null) {
|
||||||
|
// Type 2 Sequence
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
sequenceAsArray.forEach(item => {
|
||||||
|
const sequenceRows = getRows(item, depth + 1);
|
||||||
|
|
||||||
|
sequenceRows.forEach(row => {
|
||||||
|
rows.push(row);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (Array.isArray(value)) {
|
||||||
|
value = value.join('\\');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof value === 'number') {
|
||||||
|
value = value.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof value !== 'string') {
|
||||||
|
if (value === null) {
|
||||||
|
value = ' ';
|
||||||
|
} else {
|
||||||
|
if (typeof value === 'object') {
|
||||||
|
if (value.InlineBinary) {
|
||||||
|
value = 'Inline Binary';
|
||||||
|
} else if (value.BulkDataURI) {
|
||||||
|
value = `Bulk Data URI`; //: ${value.BulkDataURI}`;
|
||||||
|
} else if (value.Alphabetic) {
|
||||||
|
value = value.Alphabetic;
|
||||||
|
} else {
|
||||||
|
console.error('Unrecognised Value for element:');
|
||||||
|
console.error(value);
|
||||||
|
value = ' ';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.error('Unrecognised Value for element:');
|
||||||
|
console.error(value);
|
||||||
|
value = ' ';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove retired tags
|
||||||
|
keyword = keyword.replace('RETIRED_', '');
|
||||||
|
|
||||||
|
if (tagInfo) {
|
||||||
|
rows.push([`${tagIndent}${tagInfo.tag}`, tagInfo.vr, keyword, value]);
|
||||||
|
} else {
|
||||||
|
// Private tag
|
||||||
|
const tag = `(${keyword.substring(0, 4)},${keyword.substring(4, 8)})`;
|
||||||
|
|
||||||
|
rows.push([`${tagIndent}${tag}`, '', 'Private Tag', value]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return rows;
|
||||||
|
}
|
||||||
|
|
||||||
|
function toArray(objectOrArray) {
|
||||||
|
return Array.isArray(objectOrArray) ? objectOrArray : [objectOrArray];
|
||||||
|
}
|
||||||
|
|
||||||
|
export default DicomTagBrowser;
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
import { utils } from '@ohif/core';
|
||||||
|
import React from 'react';
|
||||||
|
import DicomTagBrowser from './components/DicomTagBrowser';
|
||||||
|
|
||||||
|
const { studyMetadataManager } = utils;
|
||||||
|
|
||||||
|
export default function getCommandsModule(servicesManager) {
|
||||||
|
const actions = {
|
||||||
|
openDICOMTagViewer({ viewports }) {
|
||||||
|
const { activeViewportIndex, viewportSpecificData } = viewports;
|
||||||
|
const activeViewportSpecificData =
|
||||||
|
viewportSpecificData[activeViewportIndex];
|
||||||
|
|
||||||
|
const {
|
||||||
|
StudyInstanceUID,
|
||||||
|
displaySetInstanceUID,
|
||||||
|
} = activeViewportSpecificData;
|
||||||
|
|
||||||
|
const studyMetadata = studyMetadataManager.get(StudyInstanceUID);
|
||||||
|
const displaySets = studyMetadata.getDisplaySets();
|
||||||
|
|
||||||
|
const { UIModalService } = servicesManager.services;
|
||||||
|
|
||||||
|
const WrappedDicomTagBrowser = function() {
|
||||||
|
return (
|
||||||
|
<DicomTagBrowser
|
||||||
|
displaySets={displaySets}
|
||||||
|
displaySetInstanceUID={displaySetInstanceUID}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
UIModalService.show({
|
||||||
|
content: WrappedDicomTagBrowser,
|
||||||
|
title: `DICOM Tag Browser`,
|
||||||
|
fullscreen: true,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
const definitions = {
|
||||||
|
openDICOMTagViewer: {
|
||||||
|
commandFn: actions.openDICOMTagViewer,
|
||||||
|
storeContexts: ['servers', 'viewports'],
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
return {
|
||||||
|
actions,
|
||||||
|
definitions,
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import getCommandsModule from './getCommandsModule';
|
||||||
|
import toolbarModule from './toolbarModule';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constants
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Extension
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
/**
|
||||||
|
* Only required property. Should be a unique value across all extensions.
|
||||||
|
*/
|
||||||
|
id: 'dicom-tag-browser',
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MODULE GETTERS
|
||||||
|
*/
|
||||||
|
getCommandsModule({ servicesManager }) {
|
||||||
|
return getCommandsModule(servicesManager);
|
||||||
|
},
|
||||||
|
getToolbarModule() {
|
||||||
|
return toolbarModule;
|
||||||
|
},
|
||||||
|
};
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
const TOOLBAR_BUTTON_TYPES = {
|
||||||
|
COMMAND: 'command',
|
||||||
|
};
|
||||||
|
|
||||||
|
const definitions = [
|
||||||
|
{
|
||||||
|
id: 'TagBrowser',
|
||||||
|
label: 'Tag Browser',
|
||||||
|
icon: 'list',
|
||||||
|
//
|
||||||
|
type: TOOLBAR_BUTTON_TYPES.COMMAND,
|
||||||
|
commandName: 'openDICOMTagViewer',
|
||||||
|
context: 'VIEWER',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export default {
|
||||||
|
definitions,
|
||||||
|
defaultContext: 'VIEWER',
|
||||||
|
};
|
||||||
@@ -3,6 +3,22 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.7.7](https://github.com/OHIF/Viewers/compare/@ohif/extension-vtk@1.7.6...@ohif/extension-vtk@1.7.7) (2020-09-17)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-vtk
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [1.7.6](https://github.com/OHIF/Viewers/compare/@ohif/extension-vtk@1.7.5...@ohif/extension-vtk@1.7.6) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/extension-vtk
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.7.5](https://github.com/OHIF/Viewers/compare/@ohif/extension-vtk@1.7.4...@ohif/extension-vtk@1.7.5) (2020-09-03)
|
## [1.7.5](https://github.com/OHIF/Viewers/compare/@ohif/extension-vtk@1.7.4...@ohif/extension-vtk@1.7.5) (2020-09-03)
|
||||||
|
|
||||||
**Note:** Version bump only for package @ohif/extension-vtk
|
**Note:** Version bump only for package @ohif/extension-vtk
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/extension-vtk",
|
"name": "@ohif/extension-vtk",
|
||||||
"version": "1.7.5",
|
"version": "1.7.7",
|
||||||
"description": "OHIF extension for VTK.js",
|
"description": "OHIF extension for VTK.js",
|
||||||
"author": "OHIF",
|
"author": "OHIF",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -53,8 +53,8 @@
|
|||||||
"react-vtkjs-viewport": "^0.10.4"
|
"react-vtkjs-viewport": "^0.10.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@ohif/core": "^2.10.4",
|
"@ohif/core": "^2.10.5",
|
||||||
"@ohif/ui": "^1.5.3",
|
"@ohif/ui": "^1.5.5",
|
||||||
"cornerstone-tools": "^4.20.1",
|
"cornerstone-tools": "^4.20.1",
|
||||||
"cornerstone-wado-image-loader": "^3.1.0",
|
"cornerstone-wado-image-loader": "^3.1.0",
|
||||||
"dicom-parser": "^1.8.3",
|
"dicom-parser": "^1.8.3",
|
||||||
|
|||||||
@@ -3,6 +3,14 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [2.10.5](https://github.com/OHIF/Viewers/compare/@ohif/core@2.10.4...@ohif/core@2.10.5) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/core
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [2.10.4](https://github.com/OHIF/Viewers/compare/@ohif/core@2.10.3...@ohif/core@2.10.4) (2020-09-03)
|
## [2.10.4](https://github.com/OHIF/Viewers/compare/@ohif/core@2.10.3...@ohif/core@2.10.4) (2020-09-03)
|
||||||
|
|
||||||
**Note:** Version bump only for package @ohif/core
|
**Note:** Version bump only for package @ohif/core
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/core",
|
"name": "@ohif/core",
|
||||||
"version": "2.10.4",
|
"version": "2.10.5",
|
||||||
"description": "Generic business logic for web-based medical imaging applications",
|
"description": "Generic business logic for web-based medical imaging applications",
|
||||||
"author": "OHIF Core Team",
|
"author": "OHIF Core Team",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ function _show({
|
|||||||
onClose = null,
|
onClose = null,
|
||||||
closeButton = true,
|
closeButton = true,
|
||||||
title = null,
|
title = null,
|
||||||
|
fullscreen = false,
|
||||||
customClassName = null,
|
customClassName = null,
|
||||||
}) {
|
}) {
|
||||||
return serviceImplementation._show({
|
return serviceImplementation._show({
|
||||||
@@ -48,6 +49,7 @@ function _show({
|
|||||||
onClose,
|
onClose,
|
||||||
closeButton,
|
closeButton,
|
||||||
title,
|
title,
|
||||||
|
fullscreen,
|
||||||
customClassName,
|
customClassName,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,22 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [1.5.5](https://github.com/OHIF/Viewers/compare/@ohif/ui@1.5.4...@ohif/ui@1.5.5) (2020-09-17)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/ui
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [1.5.4](https://github.com/OHIF/Viewers/compare/@ohif/ui@1.5.3...@ohif/ui@1.5.4) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/ui
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [1.5.3](https://github.com/OHIF/Viewers/compare/@ohif/ui@1.5.2...@ohif/ui@1.5.3) (2020-07-23)
|
## [1.5.3](https://github.com/OHIF/Viewers/compare/@ohif/ui@1.5.2...@ohif/ui@1.5.3) (2020-07-23)
|
||||||
|
|
||||||
**Note:** Version bump only for package @ohif/ui
|
**Note:** Version bump only for package @ohif/ui
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/ui",
|
"name": "@ohif/ui",
|
||||||
"version": "1.5.3",
|
"version": "1.5.5",
|
||||||
"description": "A set of React components for Medical Imaging Viewers",
|
"description": "A set of React components for Medical Imaging Viewers",
|
||||||
"author": "OHIF Contributors",
|
"author": "OHIF Contributors",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ const OHIFModal = ({
|
|||||||
closeButton,
|
closeButton,
|
||||||
shouldCloseOnEsc,
|
shouldCloseOnEsc,
|
||||||
isOpen,
|
isOpen,
|
||||||
|
fullscreen,
|
||||||
title,
|
title,
|
||||||
onClose,
|
onClose,
|
||||||
children,
|
children,
|
||||||
@@ -41,9 +42,13 @@ const OHIFModal = ({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const classes = fullscreen
|
||||||
|
? classNames('OHIFModal', className, 'OHIFModal-fullscreen')
|
||||||
|
: classNames('OHIFModal', className);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
className={classNames('OHIFModal', className)}
|
className={classes}
|
||||||
data-cy="modal"
|
data-cy="modal"
|
||||||
shouldCloseOnEsc={shouldCloseOnEsc}
|
shouldCloseOnEsc={shouldCloseOnEsc}
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
|
|||||||
@@ -18,9 +18,17 @@
|
|||||||
@media (min-width: 768px)
|
@media (min-width: 768px)
|
||||||
width: 600px
|
width: 600px
|
||||||
|
|
||||||
|
&.OHIFModal-fullscreen
|
||||||
|
width: 95%
|
||||||
|
|
||||||
@media (min-width: 992px)
|
@media (min-width: 992px)
|
||||||
width: 900px
|
width: 900px
|
||||||
|
|
||||||
|
&.OHIFModal-fullscreen
|
||||||
|
width: 95%
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
&__content
|
&__content
|
||||||
padding: 20px
|
padding: 20px
|
||||||
max-height: 90vh;
|
max-height: 90vh;
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ const ModalProvider = ({ children, modal: Modal, service }) => {
|
|||||||
closeButton: true,
|
closeButton: true,
|
||||||
title: null,
|
title: null,
|
||||||
customClassName: '',
|
customClassName: '',
|
||||||
|
fullscreen: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
const [options, setOptions] = useState(DEFAULT_OPTIONS);
|
const [options, setOptions] = useState(DEFAULT_OPTIONS);
|
||||||
@@ -78,6 +79,7 @@ const ModalProvider = ({ children, modal: Modal, service }) => {
|
|||||||
title,
|
title,
|
||||||
customClassName,
|
customClassName,
|
||||||
shouldCloseOnEsc,
|
shouldCloseOnEsc,
|
||||||
|
fullscreen,
|
||||||
closeButton,
|
closeButton,
|
||||||
} = options;
|
} = options;
|
||||||
|
|
||||||
@@ -89,6 +91,7 @@ const ModalProvider = ({ children, modal: Modal, service }) => {
|
|||||||
shouldCloseOnEsc={shouldCloseOnEsc}
|
shouldCloseOnEsc={shouldCloseOnEsc}
|
||||||
isOpen={isOpen}
|
isOpen={isOpen}
|
||||||
title={title}
|
title={title}
|
||||||
|
fullscreen={fullscreen}
|
||||||
closeButton={closeButton}
|
closeButton={closeButton}
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
if (onClose) {
|
if (onClose) {
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ import user from './icons/user.svg';
|
|||||||
import youtube from './icons/youtube.svg';
|
import youtube from './icons/youtube.svg';
|
||||||
import eye from './icons/eye.svg';
|
import eye from './icons/eye.svg';
|
||||||
import eyeClosed from './icons/eye-closed.svg';
|
import eyeClosed from './icons/eye-closed.svg';
|
||||||
|
import envelopeSquare from './icons/envelope-square.svg';
|
||||||
|
|
||||||
const ICONS = {
|
const ICONS = {
|
||||||
eye,
|
eye,
|
||||||
@@ -176,6 +177,7 @@ const ICONS = {
|
|||||||
lung,
|
lung,
|
||||||
liver,
|
liver,
|
||||||
save: saveRegular,
|
save: saveRegular,
|
||||||
|
'envelope-square': envelopeSquare,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
viewBox="0 0 448 512"
|
||||||
|
aria-labelledby="envelope-square"
|
||||||
|
width="1em"
|
||||||
|
height="1em"
|
||||||
|
fill="currentColor"
|
||||||
|
>
|
||||||
|
<path d="M400 32H48C21.49 32 0 53.49 0 80v352c0 26.51 21.49 48 48 48h352c26.51 0 48-21.49 48-48V80c0-26.51-21.49-48-48-48zM178.117 262.104C87.429 196.287 88.353 196.121 64 177.167V152c0-13.255 10.745-24 24-24h272c13.255 0 24 10.745 24 24v25.167c-24.371 18.969-23.434 19.124-114.117 84.938-10.5 7.655-31.392 26.12-45.883 25.894-14.503.218-35.367-18.227-45.883-25.895zM384 217.775V360c0 13.255-10.745 24-24 24H88c-13.255 0-24-10.745-24-24V217.775c13.958 10.794 33.329 25.236 95.303 70.214 14.162 10.341 37.975 32.145 64.694 32.01 26.887.134 51.037-22.041 64.72-32.025 61.958-44.965 81.325-59.406 95.283-70.199z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 811 B |
@@ -3,6 +3,38 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||||
|
|
||||||
|
## [4.5.10](https://github.com/OHIF/Viewers/compare/@ohif/viewer@4.5.9...@ohif/viewer@4.5.10) (2020-09-17)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/viewer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [4.5.9](https://github.com/OHIF/Viewers/compare/@ohif/viewer@4.5.8...@ohif/viewer@4.5.9) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/viewer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [4.5.8](https://github.com/OHIF/Viewers/compare/@ohif/viewer@4.5.7...@ohif/viewer@4.5.8) (2020-09-10)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/viewer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## [4.5.7](https://github.com/OHIF/Viewers/compare/@ohif/viewer@4.5.6...@ohif/viewer@4.5.7) (2020-09-09)
|
||||||
|
|
||||||
|
**Note:** Version bump only for package @ohif/viewer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## [4.5.6](https://github.com/OHIF/Viewers/compare/@ohif/viewer@4.5.5...@ohif/viewer@4.5.6) (2020-09-03)
|
## [4.5.6](https://github.com/OHIF/Viewers/compare/@ohif/viewer@4.5.5...@ohif/viewer@4.5.6) (2020-09-03)
|
||||||
|
|
||||||
**Note:** Version bump only for package @ohif/viewer
|
**Note:** Version bump only for package @ohif/viewer
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@ohif/viewer",
|
"name": "@ohif/viewer",
|
||||||
"version": "4.5.6",
|
"version": "4.5.10",
|
||||||
"description": "OHIF Viewer",
|
"description": "OHIF Viewer",
|
||||||
"author": "OHIF Contributors",
|
"author": "OHIF Contributors",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -48,18 +48,18 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.5.5",
|
"@babel/runtime": "^7.5.5",
|
||||||
"@ohif/core": "^2.10.4",
|
"@ohif/core": "^2.10.5",
|
||||||
"@ohif/extension-cornerstone": "^2.9.4",
|
"@ohif/extension-cornerstone": "^2.9.4",
|
||||||
"@ohif/extension-debugging": "^0.1.3",
|
"@ohif/extension-debugging": "^0.1.5",
|
||||||
"@ohif/extension-dicom-html": "^1.2.7",
|
"@ohif/extension-dicom-html": "^1.2.8",
|
||||||
"@ohif/extension-dicom-microscopy": "^0.51.2",
|
"@ohif/extension-dicom-microscopy": "^0.51.3",
|
||||||
"@ohif/extension-dicom-pdf": "^1.0.5",
|
"@ohif/extension-dicom-pdf": "^1.0.6",
|
||||||
"@ohif/extension-dicom-rt": "^0.4.3",
|
"@ohif/extension-dicom-rt": "^0.4.5",
|
||||||
"@ohif/extension-dicom-segmentation": "^0.4.3",
|
"@ohif/extension-dicom-segmentation": "^0.4.5",
|
||||||
"@ohif/extension-lesion-tracker": "^0.2.1",
|
"@ohif/extension-lesion-tracker": "^0.2.1",
|
||||||
"@ohif/extension-vtk": "^1.7.5",
|
"@ohif/extension-vtk": "^1.7.7",
|
||||||
"@ohif/i18n": "^0.52.8",
|
"@ohif/i18n": "^0.52.8",
|
||||||
"@ohif/ui": "^1.5.3",
|
"@ohif/ui": "^1.5.5",
|
||||||
"@tanem/react-nprogress": "^1.1.25",
|
"@tanem/react-nprogress": "^1.1.25",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"core-js": "^3.2.1",
|
"core-js": "^3.2.1",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ window.config = function(props) {
|
|||||||
disableMeasurementPanel: true,
|
disableMeasurementPanel: true,
|
||||||
routerBasename: '/',
|
routerBasename: '/',
|
||||||
enableGoogleCloudAdapter: true,
|
enableGoogleCloudAdapter: true,
|
||||||
|
splitQueryParameterCalls: true, // Allows the user to split QIDO SeriesInstanceUID filters into multiple calls, if the server does not support multi-valued query parameters.
|
||||||
enableGoogleCloudAdapterUI: false,
|
enableGoogleCloudAdapterUI: false,
|
||||||
showStudyList: true,
|
showStudyList: true,
|
||||||
filterQueryParam: true,
|
filterQueryParam: true,
|
||||||
|
|||||||
@@ -341,7 +341,10 @@ function ViewerRetrieveStudyData({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (appConfig.enableGoogleCloudAdapter) {
|
if (
|
||||||
|
appConfig.splitQueryParameterCalls ||
|
||||||
|
appConfig.enableGoogleCloudAdapter
|
||||||
|
) {
|
||||||
retrieveParams.push(true); // Seperate SeriesInstanceUID filter calls.
|
retrieveParams.push(true); // Seperate SeriesInstanceUID filter calls.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ import OHIFDicomSegmentationExtension from '@ohif/extension-dicom-segmentation';
|
|||||||
import OHIFDicomRtExtension from '@ohif/extension-dicom-rt';
|
import OHIFDicomRtExtension from '@ohif/extension-dicom-rt';
|
||||||
import OHIFDicomMicroscopyExtension from '@ohif/extension-dicom-microscopy';
|
import OHIFDicomMicroscopyExtension from '@ohif/extension-dicom-microscopy';
|
||||||
import OHIFDicomPDFExtension from '@ohif/extension-dicom-pdf';
|
import OHIFDicomPDFExtension from '@ohif/extension-dicom-pdf';
|
||||||
|
import OHIFDicomTagBrowserExtension from '@ohif/extension-dicom-tag-browser';
|
||||||
// Add this for Debugging purposes:
|
// Add this for Debugging purposes:
|
||||||
//import OHIFDebuggingExtension from '@ohif/extension-debugging';
|
//import OHIFDebuggingExtension from '@ohif/extension-debugging';
|
||||||
import { version } from '../package.json';
|
import { version } from '../package.json';
|
||||||
@@ -53,7 +54,8 @@ const appProps = {
|
|||||||
OHIFDicomPDFExtension,
|
OHIFDicomPDFExtension,
|
||||||
OHIFDicomSegmentationExtension,
|
OHIFDicomSegmentationExtension,
|
||||||
OHIFDicomRtExtension,
|
OHIFDicomRtExtension,
|
||||||
//OHIFDebuggingExtension,
|
//[OHIFDebuggingExtension, { mailTo: 'support@canceridc.dev' }],
|
||||||
|
//OHIFDicomTagBrowserExtension,
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user