feat: explicit layout apply via HangingProtocolService (#2936)

* feat: add more types to HP service

* change hp to have apply protocol

* feat: mpr initial work

* apply protocol by id

* feat: mode should be able to apply protocol directly

* fix: wrong inheritance for viewports drag and drop

* apply review comments
This commit is contained in:
Alireza authored and GitHub committed 2022-09-20 23:40:26 -04:00
1 parent fb9744a817
commit 5f480ff746
28 files changed
+705 -226

No files matched your search

@@ -1,5 +1,5 @@
const ptCT = {
id: 'tmtv-pt-ct',
id: 'ptCT',
locked: true,
hasUpdatedPriorsInformation: false,
name: 'Default',
@@ -15,6 +15,15 @@ const ptCT = {
],
imageLoadStrategy: 'interleaveTopToBottom', // "default" , "interleaveTopToBottom", "interleaveCenter"
protocolMatchingRules: [
{
id: 'wauZK2QNEfDPwcAQo',
weight: 1,
attribute: 'ModalitiesInStudy',
constraint: {
contains: ['CT', 'PT'],
},
required: false,
},
{
id: 'wauZK2QNEfDPwcAQo',
weight: 1,
@@ -632,8 +641,8 @@ const ptCT = {
function getHangingProtocolModule() {
return [
{
name: 'ptCT',
protocols: [ptCT],
id: ptCT.id,
protocol: ptCT,
},
];
}