diff --git a/extensions/default/src/getHangingProtocolModule.js b/extensions/default/src/getHangingProtocolModule.js index f7fde44eb..6673bbc4e 100644 --- a/extensions/default/src/getHangingProtocolModule.js +++ b/extensions/default/src/getHangingProtocolModule.js @@ -42,6 +42,7 @@ const defaultProtocol = { // Try to match series with images by default, to prevent weird display // on SEG/SR containing studies { + weight: 10, attribute: 'numImageFrames', constraint: { greaterThan: { value: 0 }, @@ -106,11 +107,6 @@ function getHangingProtocolModule() { name: defaultProtocol.id, protocol: defaultProtocol, }, - // Create a MxN hanging protocol available by default - { - name: hpMNGrid.id, - protocol: hpMNGrid, - }, // Create a MxN comparison hanging protocol available by default { name: hpMNCompare.id, @@ -124,6 +120,11 @@ function getHangingProtocolModule() { name: hpScale.id, protocol: hpScale, }, + // Create a MxN hanging protocol available by default + { + name: hpMNGrid.id, + protocol: hpMNGrid, + }, ]; } diff --git a/extensions/default/src/hangingprotocols/hpScale.ts b/extensions/default/src/hangingprotocols/hpScale.ts index ee2a1e13a..651413c24 100644 --- a/extensions/default/src/hangingprotocols/hpScale.ts +++ b/extensions/default/src/hangingprotocols/hpScale.ts @@ -32,6 +32,7 @@ const hpScale: Types.HangingProtocol.Protocol = { defaultDisplaySetId: { seriesMatchingRules: [ { + weight: 1, attribute: 'numImageFrames', constraint: { greaterThan: { value: 0 }, diff --git a/modes/segmentation/src/index.tsx b/modes/segmentation/src/index.tsx index 07de91a82..a37e61763 100644 --- a/modes/segmentation/src/index.tsx +++ b/modes/segmentation/src/index.tsx @@ -156,7 +156,9 @@ function modeFactory({ modeConfiguration }) { /** List of extensions that are used by the mode */ extensions: extensionDependencies, /** HangingProtocol used by the mode */ - hangingProtocol: ['@ohif/mnGrid'], + // Commented out to just use the most applicable registered hanging protocol + // The example is used for a grid layout to specify that as a preferred layout + // hangingProtocol: ['@ohif/mnGrid'], /** SopClassHandlers used by the mode */ sopClassHandlers: [ohif.sopClassHandler, segmentation.sopClassHandler], /** hotkeys for mode */