diff --git a/platform/ui/index.js b/platform/ui/index.js index 6f2a2c63b..df6706cf9 100644 --- a/platform/ui/index.js +++ b/platform/ui/index.js @@ -52,6 +52,7 @@ export { ToolbarButton, Tooltip, Typography, + Viewport, ViewportActionBar, ViewportGrid, } from './src/components'; diff --git a/platform/ui/src/components/Viewport/Viewport.jsx b/platform/ui/src/components/Viewport/Viewport.jsx new file mode 100644 index 000000000..e847f85d0 --- /dev/null +++ b/platform/ui/src/components/Viewport/Viewport.jsx @@ -0,0 +1,38 @@ +import React from 'react'; +import { ViewportActionBar, Notification, Button } from '@ohif/ui'; + +const Viewport = ({ + viewportIndex, + onSeriesChange, + studyData, + isTracked, + studyDate, + modality, + currentSeries, + patientInformation, + activeViewportIndex, + children, +}) => { + return ( +
+ + + {/* TODO: NOTIFICATION API DEFINITION - OHIF-112 */} + + + + +
+ } + /> + + ); +}; + +export default Viewport; diff --git a/platform/ui/src/components/Viewport/Viewport.mdx b/platform/ui/src/components/Viewport/Viewport.mdx new file mode 100644 index 000000000..e69de29bb diff --git a/platform/ui/src/components/Viewport/index.js b/platform/ui/src/components/Viewport/index.js new file mode 100644 index 000000000..e4d9f860e --- /dev/null +++ b/platform/ui/src/components/Viewport/index.js @@ -0,0 +1,2 @@ +import Viewport from './Viewport'; +export default Viewport; diff --git a/platform/ui/src/components/index.js b/platform/ui/src/components/index.js index 2eec5aa5a..bf9f590aa 100644 --- a/platform/ui/src/components/index.js +++ b/platform/ui/src/components/index.js @@ -38,6 +38,7 @@ import Toolbar from './Toolbar'; import ToolbarButton from './ToolbarButton'; import Tooltip from './Tooltip'; import Typography from './Typography'; +import Viewport from './Viewport'; import ViewportActionBar from './ViewportActionBar'; import ViewportGrid from './ViewportGrid'; @@ -82,6 +83,7 @@ export { ToolbarButton, Tooltip, Typography, + Viewport, ViewportActionBar, ViewportGrid, }; diff --git a/platform/ui/src/views/Viewer/Viewer.mdx b/platform/ui/src/views/Viewer/Viewer.mdx index 47ddcc4f9..ea17e8e04 100644 --- a/platform/ui/src/views/Viewer/Viewer.mdx +++ b/platform/ui/src/views/Viewer/Viewer.mdx @@ -19,6 +19,7 @@ import { ViewportActionBar, ViewportGrid, Notification, + Viewport, } from '@ohif/ui'; import Header from './components/Header'; @@ -77,25 +78,45 @@ import { tabs } from './studyBrowserMockData'; rows={1} cols={2} viewportContents={[ -
- - - - - -
- } - /> - , -
- -
, + {}} + studyData={{ + isTracked: false, + studyDate: '07-Sep-2010', + currentSeries: 1, + modality: 'CT', + patientInformation: { + patientName: 'Smith, Jane', + patientSex: 'F', + patientAge: '59', + MRN: '10000001', + thickness: '5.0mm', + spacing: '1.25mm', + scanner: 'Aquilion', + }, + }} + isTracked={false} + activeViewportIndex={activeViewportIndex} + />, + {}} + studyData={{ + isTracked: false, + studyDate: '07-Sep-2010', + currentSeries: 1, + modality: 'CT', + patientInformation: { + patientName: 'Smith, Jane', + patientSex: 'F', + patientAge: '59', + MRN: '10000001', + }, + }} + isTracked={false} + activeViewportIndex={activeViewportIndex} + />, ]} setActiveViewportIndex={setActiveViewportIndex} activeViewportIndex={activeViewportIndex}