-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path164.bundle.e022deb8cee90310535a.js
2 lines (2 loc) · 6.04 KB
/
164.bundle.e022deb8cee90310535a.js
1
2
"use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[164],{164:(e,t,o)=>{o.r(t),o.d(t,{default:()=>b});const i=JSON.parse('{"UU":"@ohif/extension-test"}').UU,a={viewportOptions:{viewportId:"viewportA",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{id:"defaultDisplaySetId"}]},n={viewportOptions:{viewportId:"viewportB",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:1,id:"defaultDisplaySetId"}]},s={viewportOptions:{viewportId:"viewportC",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:2,id:"defaultDisplaySetId"}]},d={viewportOptions:{viewportId:"viewportD",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:3,id:"defaultDisplaySetId"}]},l={viewportOptions:{viewportId:"viewportA",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:3,id:"defaultDisplaySetId"}]},r={viewportOptions:{viewportId:"viewportB",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:2,id:"defaultDisplaySetId"}]},u={viewportOptions:{viewportId:"viewportC",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:1,id:"defaultDisplaySetId"}]},p={viewportOptions:{viewportId:"viewportD",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:0,id:"defaultDisplaySetId"}]},c={layoutType:"grid",properties:{rows:2,columns:2}},m={hasUpdatedPriorsInformation:!1,id:"@ohif/mnTestSwitch",description:"Has various hanging protocol grid layouts",name:"Test Switch",protocolMatchingRules:[{id:"OneOrMoreSeries",weight:25,attribute:"numberOfDisplaySetsWithImages",constraint:{greaterThan:0}}],toolGroupIds:["default"],displaySetSelectors:{defaultDisplaySetId:{seriesMatchingRules:[{attribute:"numImageFrames",constraint:{greaterThan:{value:0}}},{attribute:"isDisplaySetFromUrl",weight:10,constraint:{equals:!0}}]}},defaultViewport:{viewportOptions:{viewportType:"stack",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{id:"defaultDisplaySetId",matchedDisplaySetsIndex:-1}]},stages:[{name:"2x2 0a1b2c3d",viewportStructure:c,viewports:[a,n,s,d]},{name:"3x2 0a1b4e2c3d5f",viewportStructure:{layoutType:"grid",properties:{rows:2,columns:3}},viewports:[a,n,{viewportOptions:{viewportId:"viewportE",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:4,id:"defaultDisplaySetId"}]},s,d,{viewportOptions:{viewportId:"viewportF",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:5,id:"defaultDisplaySetId"}]}]},{name:"2x2 1c0d3a2b",viewportStructure:c,viewports:[u,p,l,r]},{name:"2x2 3a2b1c0d",viewportStructure:c,viewports:[l,r,u,p]}],numberOfPriorsReferenced:-1},S={id:"codingValues","SCT:69536005":{text:"Head",type:"site"},"SCT:45048000":{text:"Neck",type:"site"},"SCT:818981001":{text:"Abdomen",type:"site"},"SCT:816092008":{text:"Pelvis",type:"site"},"SCT:371861004":{text:"Mild intimal coronary irregularities",color:"green"},"SCT:194983005":{text:"Aortic insufficiency",color:"darkred"},"SCT:399232001":{text:"2-chamber"},"SCT:103340004":{text:"SAX"},"SCT:91134007":{text:"MV"},"SCT:122972007":{text:"PV"},"SCT:24422004":{text:"Axial",color:"#000000",type:"orientation"},"SCT:81654009":{text:"Coronal",color:"#000000",type:"orientation"},"SCT:30730003":{text:"Sagittal",color:"#000000",type:"orientation"}},y={id:"@ohif/contextMenuAnnotationCode",transform:function(e){const{code:t}=this;if(!t)throw new Error(`item ${this} has no code ref`);const o=e.get("codingValues")[t];return{...this,codeRef:t,code:{ref:t,...o},label:o.text,commands:[{commandName:"updateMeasurement"}]}}},w={id:"measurementsContextMenu",customizationType:"ohif.contextMenu",menus:[{id:"forExistingMeasurement",selector:({nearbyToolData:e})=>!!e,items:[{customizationType:"ohif.contextSubMenu",label:"Site",actionType:"ShowSubMenu",subMenu:"siteSelectionSubMenu"},{customizationType:"ohif.contextSubMenu",label:"Finding",actionType:"ShowSubMenu",subMenu:"findingSelectionSubMenu"},{label:"Delete Measurement",commands:[{commandName:"deleteMeasurement"}]},{label:"Add Label",commands:[{commandName:"setMeasurementLabel"}]},{label:"IncludeSubMenu",selector:({protocol:e})=>"@ohif/mnGrid"===e?.id,delegating:!0,subMenu:"orientationSelectionSubMenu"}]},{id:"orientationSelectionSubMenu",selector:({nearbyToolData:e})=>!1,items:[{customizationType:"@ohif/contextMenuAnnotationCode",code:"SCT:24422004"},{customizationType:"@ohif/contextMenuAnnotationCode",code:"SCT:81654009"}]},{id:"findingSelectionSubMenu",selector:({nearbyToolData:e})=>!1,items:[{customizationType:"@ohif/contextMenuAnnotationCode",code:"SCT:371861004"},{customizationType:"@ohif/contextMenuAnnotationCode",code:"SCT:194983005"}]},{id:"siteSelectionSubMenu",selector:({nearbyToolData:e})=>!!e,items:[{customizationType:"@ohif/contextMenuAnnotationCode",code:"SCT:69536005"},{customizationType:"@ohif/contextMenuAnnotationCode",code:"SCT:45048000"}]}]};function f(e,t){const{sameAttribute:o,sameDisplaySetId:i}=this;if(!o)return console.log("sameAttribute not defined in",this),`sameAttribute not defined in ${this.id}`;if(!i)return console.log("sameDisplaySetId not defined in",this),`sameDisplaySetId not defined in ${this.id}`;const{displaySetMatchDetails:a,displaySets:n}=t,s=a.get(i);if(!s)return console.log("No match for display set",i),!1;const{displaySetInstanceUID:d}=s,l=n.find((e=>e.displaySetInstanceUID==d));if(!l)return console.log("No display set found with",d,"in",n),!1;return l[o]===e[o]}const h=(e,t)=>t?.displaySets?.length,I=(e,t)=>Math.max(...t?.displaySets?.map?.((e=>e.numImageFrames??0))||[0]),b={id:i,preRegistration:({servicesManager:e})=>{const{hangingProtocolService:t}=e.services;t.addCustomAttribute("numberOfDisplaySets","Number of displays sets",h),t.addCustomAttribute("maxNumImageFrames","Maximum of number of image frames",I),t.addCustomAttribute("sameAs","Match an attribute in an existing display set",f)},getCustomizationModule:function(){return[{name:"custom-context-menu",value:[S,y,w]}]},getHangingProtocolModule:()=>[{name:m.id,protocol:m}]}}}]);
//# sourceMappingURL=164.bundle.e022deb8cee90310535a.js.map