UNPKG

dicomweb-proxy

Version:

A proxy to translate between dicomweb and dimse

2 lines 12.6 kB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[934,4759,5674,8402],{75183:(e,t,i)=>{var o;i.d(t,{A:()=>a}),function(e){e.Interaction="Interaction",e.HandlesUpdated="HandlesUpdated",e.StatsUpdated="StatsUpdated",e.InitialSetup="InitialSetup",e.Completed="Completed",e.InterpolationUpdated="InterpolationUpdated",e.History="History",e.MetadataReferenceModified="MetadataReferenceModified",e.LabelChange="LabelChange"}(o||(o={}));const a=o},94021:(e,t,i)=>{var o;i.d(t,{A:()=>a}),function(e){e.TOOL_ACTIVATED="CORNERSTONE_TOOLS_TOOL_ACTIVATED",e.TOOLGROUP_VIEWPORT_ADDED="CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_ADDED",e.TOOLGROUP_VIEWPORT_REMOVED="CORNERSTONE_TOOLS_TOOLGROUP_VIEWPORT_REMOVED",e.TOOL_MODE_CHANGED="CORNERSTONE_TOOLS_TOOL_MODE_CHANGED",e.CROSSHAIR_TOOL_CENTER_CHANGED="CORNERSTONE_TOOLS_CROSSHAIR_TOOL_CENTER_CHANGED",e.ANNOTATION_ADDED="CORNERSTONE_TOOLS_ANNOTATION_ADDED",e.ANNOTATION_COMPLETED="CORNERSTONE_TOOLS_ANNOTATION_COMPLETED",e.ANNOTATION_MODIFIED="CORNERSTONE_TOOLS_ANNOTATION_MODIFIED",e.ANNOTATION_REMOVED="CORNERSTONE_TOOLS_ANNOTATION_REMOVED",e.ANNOTATION_SELECTION_CHANGE="CORNERSTONE_TOOLS_ANNOTATION_SELECTION_CHANGE",e.ANNOTATION_LOCK_CHANGE="CORNERSTONE_TOOLS_ANNOTATION_LOCK_CHANGE",e.ANNOTATION_VISIBILITY_CHANGE="CORNERSTONE_TOOLS_ANNOTATION_VISIBILITY_CHANGE",e.ANNOTATION_RENDERED="CORNERSTONE_TOOLS_ANNOTATION_RENDERED",e.ANNOTATION_INTERPOLATION_PROCESS_COMPLETED="CORNERSTONE_TOOLS_ANNOTATION_INTERPOLATION_PROCESS_COMPLETED",e.INTERPOLATED_ANNOTATIONS_REMOVED="CORNERSTONE_TOOLS_INTERPOLATED_ANNOTATIONS_REMOVED",e.SEGMENTATION_MODIFIED="CORNERSTONE_TOOLS_SEGMENTATION_MODIFIED",e.SEGMENTATION_RENDERED="CORNERSTONE_TOOLS_SEGMENTATION_RENDERED",e.SEGMENTATION_REPRESENTATION_ADDED="CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_ADDED",e.SEGMENTATION_ADDED="CORNERSTONE_TOOLS_SEGMENTATION_ADDED",e.SEGMENTATION_REPRESENTATION_MODIFIED="CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_MODIFIED",e.SEGMENTATION_REMOVED="CORNERSTONE_TOOLS_SEGMENTATION_REMOVED",e.SEGMENTATION_REPRESENTATION_REMOVED="CORNERSTONE_TOOLS_SEGMENTATION_REPRESENTATION_REMOVED",e.SEGMENTATION_DATA_MODIFIED="CORNERSTONE_TOOLS_SEGMENTATION_DATA_MODIFIED",e.HISTORY_UNDO="CORNERSTONE_TOOLS_HISTORY_UNDO",e.HISTORY_REDO="CORNERSTONE_TOOLS_HISTORY_REDO",e.KEY_DOWN="CORNERSTONE_TOOLS_KEY_DOWN",e.KEY_UP="CORNERSTONE_TOOLS_KEY_UP",e.MOUSE_DOWN="CORNERSTONE_TOOLS_MOUSE_DOWN",e.MOUSE_UP="CORNERSTONE_TOOLS_MOUSE_UP",e.MOUSE_DOWN_ACTIVATE="CORNERSTONE_TOOLS_MOUSE_DOWN_ACTIVATE",e.MOUSE_DRAG="CORNERSTONE_TOOLS_MOUSE_DRAG",e.MOUSE_MOVE="CORNERSTONE_TOOLS_MOUSE_MOVE",e.MOUSE_CLICK="CORNERSTONE_TOOLS_MOUSE_CLICK",e.MOUSE_DOUBLE_CLICK="CORNERSTONE_TOOLS_MOUSE_DOUBLE_CLICK",e.MOUSE_WHEEL="CORNERSTONE_TOOLS_MOUSE_WHEEL",e.TOUCH_START="CORNERSTONE_TOOLS_TOUCH_START",e.TOUCH_START_ACTIVATE="CORNERSTONE_TOOLS_TOUCH_START_ACTIVATE",e.TOUCH_PRESS="CORNERSTONE_TOOLS_TOUCH_PRESS",e.TOUCH_DRAG="CORNERSTONE_TOOLS_TOUCH_DRAG",e.TOUCH_END="CORNERSTONE_TOOLS_TOUCH_END",e.TOUCH_TAP="CORNERSTONE_TOOLS_TAP",e.TOUCH_SWIPE="CORNERSTONE_TOOLS_SWIPE"}(o||(o={}));const a=o},18682:(e,t,i)=>{var o;i.d(t,{A:()=>a}),function(e){e.Labelmap="Labelmap",e.Contour="Contour",e.Surface="Surface"}(o||(o={}));const a=o},84093:(e,t,i)=>{var o;i.d(t,{A:()=>a}),function(e){e.OnInteractionStart="onInteractionStart",e.OnInteractionEnd="onInteractionEnd",e.Preview="preview",e.RejectPreview="rejectPreview",e.AcceptPreview="acceptPreview",e.Fill="fill",e.Interpolate="interpolate",e.StrategyFunction="strategyFunction",e.CreateIsInThreshold="createIsInThreshold",e.Initialize="initialize",e.INTERNAL_setValue="setValue",e.AddPreview="addPreview",e.ComputeInnerCircleRadius="computeInnerCircleRadius",e.GetStatistics="getStatistics",e.EnsureImageVolumeFor3DManipulation="ensureImageVolumeFor3DManipulation",e.EnsureSegmentationVolumeFor3DManipulation="ensureSegmentationVolumeFor3DManipulation"}(o||(o={}));const a=o},66452:(e,t,i)=>{var o,a;i.d(t,{i:()=>o,q:()=>a}),function(e){e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.Primary_And_Secondary=3]="Primary_And_Secondary",e[e.Auxiliary=4]="Auxiliary",e[e.Primary_And_Auxiliary=5]="Primary_And_Auxiliary",e[e.Secondary_And_Auxiliary=6]="Secondary_And_Auxiliary",e[e.Primary_And_Secondary_And_Auxiliary=7]="Primary_And_Secondary_And_Auxiliary",e[e.Fourth_Button=8]="Fourth_Button",e[e.Fifth_Button=16]="Fifth_Button",e[e.Wheel=524288]="Wheel",e[e.Wheel_Primary=524289]="Wheel_Primary"}(o||(o={})),function(e){e[e.Shift=16]="Shift",e[e.Ctrl=17]="Ctrl",e[e.Alt=18]="Alt",e[e.Meta=91]="Meta",e[e.ShiftCtrl=1617]="ShiftCtrl",e[e.ShiftAlt=1618]="ShiftAlt",e[e.ShiftMeta=1691]="ShiftMeta",e[e.CtrlAlt=1718]="CtrlAlt",e[e.CtrlMeta=1791]="CtrlMeta",e[e.AltMeta=1891]="AltMeta"}(a||(a={}))},49892:(e,t,i)=>{var o;i.d(t,{A:()=>a}),function(e){e.Active="Active",e.Passive="Passive",e.Enabled="Enabled",e.Disabled="Disabled"}(o||(o={}));const a=o},10401:(e,t,i)=>{var o;i.d(t,{H:()=>o}),function(e){e.UP="UP",e.DOWN="DOWN",e.LEFT="LEFT",e.RIGHT="RIGHT"}(o||(o={}))},99737:(e,t,i)=>{i.r(t),i.d(t,{AnnotationStyleStates:()=>O,ChangeTypes:()=>l.A,Events:()=>s.A,KeyboardBindings:()=>a.q,MouseBindings:()=>a.i,SegmentationRepresentations:()=>S.A,StrategyCallbacks:()=>T.A,Swipe:()=>E.H,ToolModes:()=>n.A,WorkerTypes:()=>d});var o,a=i(66452),n=i(49892);!function(e){e.Default="",e.Highlighted="Highlighted",e.Selected="Selected",e.Locked="Locked",e.AutoGenerated="AutoGenerated"}(o||(o={}));const O=o;var r,s=i(94021),S=i(18682),E=i(10401),T=i(84093),l=i(75183);!function(e){e.POLYSEG_CONTOUR_TO_LABELMAP="Converting Contour to Labelmap",e.POLYSEG_SURFACE_TO_LABELMAP="Converting Surfaces to Labelmap",e.POLYSEG_CONTOUR_TO_SURFACE="Converting Contour to Surface",e.POLYSEG_LABELMAP_TO_SURFACE="Converting Labelmap to Surface",e.SURFACE_CLIPPING="Clipping Surfaces",e.COMPUTE_STATISTICS="Computing Statistics",e.INTERPOLATE_LABELMAP="Interpolating Labelmap",e.COMPUTE_LARGEST_BIDIRECTIONAL="Computing Largest Bidirectional",e.GENERATE_CONTOUR_SETS="Generating Contour Sets"}(r||(r={}));const d=r},94285:(e,t,i)=>{i.r(t),i.d(t,{default:()=>C});const o=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"}]},O={viewportOptions:{viewportId:"viewportC",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:2,id:"defaultDisplaySetId"}]},r={viewportOptions:{viewportId:"viewportD",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:3,id:"defaultDisplaySetId"}]},s={viewportOptions:{viewportId:"viewportA",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:3,id:"defaultDisplaySetId"}]},S={viewportOptions:{viewportId:"viewportB",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:2,id:"defaultDisplaySetId"}]},E={viewportOptions:{viewportId:"viewportC",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:1,id:"defaultDisplaySetId"}]},T={viewportOptions:{viewportId:"viewportD",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:0,id:"defaultDisplaySetId"}]},l={layoutType:"grid",properties:{rows:2,columns:2}},d={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:20,constraint:{equals:!0}}]}},defaultViewport:{viewportOptions:{viewportType:"stack",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{id:"defaultDisplaySetId",matchedDisplaySetsIndex:-1}]},stages:[{name:"2x2 0a1b2c3d",viewportStructure:l,viewports:[a,n,O,r]},{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"}]},O,r,{viewportOptions:{viewportId:"viewportF",toolGroupId:"default",allowUnmatchedView:!0},displaySets:[{matchedDisplaySetsIndex:5,id:"defaultDisplaySetId"}]}]},{name:"2x2 1c0d3a2b",viewportStructure:l,viewports:[E,T,s,S]},{name:"2x2 3a2b1c0d",viewportStructure:l,viewports:[s,S,E,T]}],numberOfPriorsReferenced:-1},_={codingValues:{"SCT:69536005":{text:"Head",type:"site",style:{color:"red"}},"SCT:45048000":{text:"Neck",type:"site",style:{color:"blue"}},"SCT:818981001":{text:"Abdomen",type:"site",style:{color:"orange"}},"SCT:816092008":{text:"Pelvis",type:"site",style:{color:"cyan"}},"SCT:371861004":{text:"Mild intimal coronary irregularities",style:{color:"green"}},"SCT:194983005":{text:"Aortic insufficiency",style:{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"}}},N={"@ohif/contextMenuAnnotationCode":{$transform:function(e){const{code:t}=this;if(!t)throw new Error(`item ${this} has no code ref`);const i=e.getCustomization("codingValues")[t];return{...this,codeRef:t,code:{ref:t,...i},label:this.label||i.text||t,commands:[{commandName:"updateMeasurement"}]}}}},u={measurementsContextMenu:{$set:{inheritsFrom:"ohif.contextMenu",menus:[{selector:({nearbyToolData:e})=>!!e,items:[{label:"Site",actionType:"ShowSubMenu",subMenu:"siteSelectionSubMenu"},{label:"Finding",actionType:"ShowSubMenu",subMenu:"findingSelectionSubMenu"},{label:"Delete Measurement",commands:[{commandName:"removeMeasurement"}]},{label:"Add Label",commands:[{commandName:"setMeasurementLabel"}]},{label:"IncludeSubMenu",selector:({protocol:e})=>"@ohif/mnGrid"===e?.id,delegating:!0,subMenu:"orientationSelectionSubMenu"}]},{id:"orientationSelectionSubMenu",selector:({nearbyToolData:e})=>!!e,items:[{inheritsFrom:"@ohif/contextMenuAnnotationCode",code:"SCT:24422004"},{inheritsFrom:"@ohif/contextMenuAnnotationCode",code:"SCT:81654009"}]},{id:"findingSelectionSubMenu",selector:({nearbyToolData:e})=>!!e,items:[{inheritsFrom:"@ohif/contextMenuAnnotationCode",code:"SCT:371861004"},{inheritsFrom:"@ohif/contextMenuAnnotationCode",code:"SCT:194983005"}]},{id:"siteSelectionSubMenu",selector:({nearbyToolData:e})=>!!e,items:[{inheritsFrom:"@ohif/contextMenuAnnotationCode",code:"SCT:69536005"},{inheritsFrom:"@ohif/contextMenuAnnotationCode",code:"SCT:45048000"}]}]}}};function c(e,t){const{sameAttribute:i,sameDisplaySetId:o}=this;if(!i)return console.log("sameAttribute not defined in",this),`sameAttribute not defined in ${this.id}`;if(!o)return console.log("sameDisplaySetId not defined in",this),`sameDisplaySetId not defined in ${this.id}`;const{displaySetMatchDetails:a,displaySets:n}=t,O=a.get(o);if(!O)return console.log("No match for display set",o),!1;const{displaySetInstanceUID:r}=O,s=n.find((e=>e.displaySetInstanceUID==r));if(!s)return console.log("No display set found with",r,"in",n),!1;return s[i]===e[i]}const A=(e,t)=>t?.displaySets?.length,I=(e,t)=>Math.max(...t?.displaySets?.map?.((e=>e.numImageFrames??0))||[0]);var p=i(86326),R=i(7241);const C={id:o,preRegistration:({servicesManager:e})=>{const{hangingProtocolService:t}=e.services;t.addCustomAttribute("numberOfDisplaySets","Number of displays sets",A),t.addCustomAttribute("maxNumImageFrames","Maximum of number of image frames",I),t.addCustomAttribute("sameAs","Match an attribute in an existing display set",c)},getCustomizationModule:function(){return[{name:"custom-context-menu",value:{..._,...N,...u}},{name:"contextMenuCodeItem",value:{...N}}]},getPanelModule:function({commandsManager:e,servicesManager:t,extensionManager:i}){const o={commandsManager:e,servicesManager:t,extensionManager:i};return[{name:"panelMeasurementSeries",iconName:"tool-freehand-roi",iconLabel:"Measure Series",label:"Measurement Series",component:()=>p.createElement(R.PanelMeasurement,o,p.createElement(R.StudyMeasurements,null,p.createElement(R.SeriesMeasurements,null)))}]},getHangingProtocolModule:()=>[{name:d.id,protocol:d}]}}}]); //# sourceMappingURL=934.bundle.7c09df708d3eb07d0d83.js.map