From b124c91d8fa0def262d1fee8f105295b02864129 Mon Sep 17 00:00:00 2001 From: Michael Andersen <32403382+Michael-Andersen@users.noreply.github.com> Date: Tue, 21 May 2024 19:39:44 -0400 Subject: [PATCH] fix(HangingProtocol): fix hp when unsupported series load first (#4145) Co-authored-by: Michael Andersen Co-authored-by: Bill Wallace --- extensions/default/src/getHangingProtocolModule.js | 1 - platform/core/src/utils/isLowPriorityModality.js | 5 ----- platform/core/src/utils/isLowPriorityModality.ts | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 platform/core/src/utils/isLowPriorityModality.js diff --git a/extensions/default/src/getHangingProtocolModule.js b/extensions/default/src/getHangingProtocolModule.js index f9ad9bbbb31..596e3031d07 100644 --- a/extensions/default/src/getHangingProtocolModule.js +++ b/extensions/default/src/getHangingProtocolModule.js @@ -14,7 +14,6 @@ const defaultProtocol = { editableBy: {}, protocolMatchingRules: [], toolGroupIds: ['default'], - hpInitiationCriteria: { minSeriesLoaded: 1 }, // -1 would be used to indicate active only, whereas other values are // the number of required priors referenced - so 0 means active with // 0 or more priors. diff --git a/platform/core/src/utils/isLowPriorityModality.js b/platform/core/src/utils/isLowPriorityModality.js deleted file mode 100644 index 54024d5a051..00000000000 --- a/platform/core/src/utils/isLowPriorityModality.js +++ /dev/null @@ -1,5 +0,0 @@ -const LOW_PRIORITY_MODALITIES = Object.freeze(['SEG', 'KO', 'PR', 'SR', 'RTSTRUCT']); - -export default function isLowPriorityModality(Modality) { - return LOW_PRIORITY_MODALITIES.includes(Modality); -} diff --git a/platform/core/src/utils/isLowPriorityModality.ts b/platform/core/src/utils/isLowPriorityModality.ts index 54024d5a051..cfcee34e40e 100644 --- a/platform/core/src/utils/isLowPriorityModality.ts +++ b/platform/core/src/utils/isLowPriorityModality.ts @@ -1,4 +1,4 @@ -const LOW_PRIORITY_MODALITIES = Object.freeze(['SEG', 'KO', 'PR', 'SR', 'RTSTRUCT']); +const LOW_PRIORITY_MODALITIES = Object.freeze(['SEG', 'KO', 'PR', 'SR', 'RTSTRUCT', 'RTDOSE', 'RTPLAN', 'RTRECORD', 'REG']); export default function isLowPriorityModality(Modality) { return LOW_PRIORITY_MODALITIES.includes(Modality);