feat: Group findings table values with custom components/grouping functions (#4712)
This commit is contained in:
1 parent
0522d58d9b
commit
df8efba82c
48 files changed
+1256
-631
No files matched your search
@@ -0,0 +1,36 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
PanelMeasurement,
|
||||
SeriesMeasurements,
|
||||
StudyMeasurements,
|
||||
} from '@ohif/extension-cornerstone';
|
||||
|
||||
export default function getPanelModule({
|
||||
commandsManager,
|
||||
servicesManager,
|
||||
extensionManager,
|
||||
}: withAppTypes) {
|
||||
const childProps = {
|
||||
commandsManager,
|
||||
servicesManager,
|
||||
extensionManager,
|
||||
};
|
||||
const wrappedPanelMeasurementSeries = () => {
|
||||
return (
|
||||
<PanelMeasurement {...childProps}>
|
||||
<StudyMeasurements>
|
||||
<SeriesMeasurements />
|
||||
</StudyMeasurements>
|
||||
</PanelMeasurement>
|
||||
);
|
||||
};
|
||||
return [
|
||||
{
|
||||
name: 'panelMeasurementSeries',
|
||||
iconName: 'tool-freehand-roi',
|
||||
iconLabel: 'Measure Series',
|
||||
label: 'Measurement Series',
|
||||
component: wrappedPanelMeasurementSeries,
|
||||
},
|
||||
];
|
||||
}
|
||||
@@ -8,6 +8,7 @@ import getCustomizationModule from './getCustomizationModule';
|
||||
import sameAs from './custom-attribute/sameAs';
|
||||
import numberOfDisplaySets from './custom-attribute/numberOfDisplaySets';
|
||||
import maxNumImageFrames from './custom-attribute/maxNumImageFrames';
|
||||
import getPanelModule from './getPanelModule';
|
||||
|
||||
/**
|
||||
* The test extension provides additional behavior for testing various
|
||||
@@ -50,6 +51,8 @@ const testExtension: Types.Extensions.Extension = {
|
||||
/** Registers some customizations */
|
||||
getCustomizationModule,
|
||||
|
||||
getPanelModule,
|
||||
|
||||
getHangingProtocolModule: () => {
|
||||
return [
|
||||
// Create a MxN hanging protocol available by default
|
||||
|
||||
Reference in new issue
Block a user