fix: hanging protocol for the tmtv (#2882)
This commit is contained in:
parent
df6ddf1572
commit
2639d90e5e
@ -24,8 +24,11 @@ const DEFAULT_MEATADATA = {
|
|||||||
*/
|
*/
|
||||||
export default function PanelPetSUV({ servicesManager, commandsManager }) {
|
export default function PanelPetSUV({ servicesManager, commandsManager }) {
|
||||||
const { t } = useTranslation('PanelSUV');
|
const { t } = useTranslation('PanelSUV');
|
||||||
const { DisplaySetService, ToolGroupService, ToolBarService } =
|
const {
|
||||||
servicesManager.services;
|
DisplaySetService,
|
||||||
|
ToolGroupService,
|
||||||
|
ToolBarService,
|
||||||
|
} = servicesManager.services;
|
||||||
const [metadata, setMetadata] = useState(DEFAULT_MEATADATA);
|
const [metadata, setMetadata] = useState(DEFAULT_MEATADATA);
|
||||||
const [ptDisplaySet, setPtDisplaySet] = useState(null);
|
const [ptDisplaySet, setPtDisplaySet] = useState(null);
|
||||||
|
|
||||||
@ -210,7 +213,7 @@ export default function PanelPetSUV({ servicesManager, commandsManager }) {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Input
|
<Input
|
||||||
label={t('Injection Time (Seconds)')}
|
label={t('Injection Time (s)')}
|
||||||
labelClassName="text-white"
|
labelClassName="text-white"
|
||||||
className="mt-1 mb-2 bg-black border-primary-main"
|
className="mt-1 mb-2 bg-black border-primary-main"
|
||||||
type="text"
|
type="text"
|
||||||
@ -228,7 +231,7 @@ export default function PanelPetSUV({ servicesManager, commandsManager }) {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Input
|
<Input
|
||||||
label={t('Acquisition Time (Seconds)')}
|
label={t('Acquisition Time (s)')}
|
||||||
labelClassName="text-white"
|
labelClassName="text-white"
|
||||||
className="mt-1 mb-2 bg-black border-primary-main"
|
className="mt-1 mb-2 bg-black border-primary-main"
|
||||||
type="text"
|
type="text"
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
const ptCT = {
|
const ptCT = {
|
||||||
id: 'test',
|
id: 'tmtv-pt-ct',
|
||||||
locked: true,
|
locked: true,
|
||||||
hasUpdatedPriorsInformation: false,
|
hasUpdatedPriorsInformation: false,
|
||||||
name: 'Default',
|
name: 'Default',
|
||||||
@ -15,17 +15,6 @@ const ptCT = {
|
|||||||
],
|
],
|
||||||
imageLoadStrategy: 'interleaveTopToBottom', // "default" , "interleaveTopToBottom", "interleaveCenter"
|
imageLoadStrategy: 'interleaveTopToBottom', // "default" , "interleaveTopToBottom", "interleaveCenter"
|
||||||
protocolMatchingRules: [
|
protocolMatchingRules: [
|
||||||
{
|
|
||||||
id: 'wauZK2QNEfDPwcAQo',
|
|
||||||
weight: 1,
|
|
||||||
attribute: 'StudyInstanceUID',
|
|
||||||
constraint: {
|
|
||||||
contains: {
|
|
||||||
value: '1.3.6.1.4.',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
required: false,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
id: 'wauZK2QNEfDPwcAQo',
|
id: 'wauZK2QNEfDPwcAQo',
|
||||||
weight: 1,
|
weight: 1,
|
||||||
|
|||||||
@ -186,7 +186,7 @@ function modeFactory({ modeConfiguration }) {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
extensions: extensionDependencies,
|
extensions: extensionDependencies,
|
||||||
hangingProtocols: [ohif.hangingProtocols, tmtv.hangingProtocols],
|
hangingProtocols: [tmtv.hangingProtocols],
|
||||||
sopClassHandlers: [ohif.sopClassHandler],
|
sopClassHandlers: [ohif.sopClassHandler],
|
||||||
hotkeys: [...hotkeys.defaults.hotkeyBindings],
|
hotkeys: [...hotkeys.defaults.hotkeyBindings],
|
||||||
};
|
};
|
||||||
|
|||||||
@ -116,12 +116,15 @@ export default class ProtocolEngine {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// If no matches were found, select the default protocol
|
// If no matches were found, select the default protocol if provided
|
||||||
|
// if not select the first protocol in the list
|
||||||
if (!matched.length) {
|
if (!matched.length) {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
score: 1,
|
score: 1,
|
||||||
protocol: this.protocols.find(protocol => protocol.id === 'default'),
|
protocol:
|
||||||
|
this.protocols.find(protocol => protocol.id === 'default') ??
|
||||||
|
this.protocols[0],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user