Пример #1
0
    def openSeriesImages(self):
        ctrl = PACS_OrthancServerCtrl()
        index = self.pacs_view.selectedIndexes()
        self.stage_chain['series'] = self.pacs_view.model().itemData(index[0])[0]
        instances = ctrl.find_instance(self.stage_chain['series'])
        path = PACS_MainCtrl.get_serie(instances)

        self.pacs_view.clearSelection()
        self.dcm_to_browser.emit(path + '/')
Пример #2
0
 def setSeriesModel(self):
     ctrl = PACS_OrthancServerCtrl()
     try:
         index = self.pacs_view.selectedIndexes()
         self.stage_chain['study'] = self.pacs_view.model().itemData(index[0])[0]
     finally:
         series = ctrl.find_series(self.stage_chain['study'])
         self.pacs_model = PACS_SeriesTabModel(series)
         self.pacs_view.setModel(self.pacs_model)
Пример #3
0
    def setStudiesModel(self):
        ctrl = PACS_OrthancServerCtrl()
        if self.stage_chain['patient'] is None:
            index = self.pacs_view.selectedIndexes()
            self.stage_chain['patient'] = self.pacs_view.model().itemData(index[0])[0]

        studies = ctrl.find_study(self.stage_chain['patient'])
        self.pacs_model = PACS_SeriesTabModel(studies)
        self.pacs_view.setModel(self.pacs_model)
Пример #4
0
 def setPatientsModel(self):
     ctrl = PACS_OrthancServerCtrl()
     self.pacs_model = PACS_PatientsTabModel([''])
     if ctrl.isConnect():
         try:
             patients = ctrl.find()
             self.pacs_model.update(patients)
         except Exception as e:
             QMessageBox.warning(self, 'Problem', 'Error on loading patients list: {0}'.format(e))
         finally:
             self.pacs_view.setModel(self.pacs_model)
Пример #5
0
    def initUI(self):
        self.pacs_ctrl: PACS_ServerCtrl = PACS_OrthancServerCtrl()
        self.setGeometry(self.left, self.top, self.width, self.height)

        self.pacs_widget = PACS_MainWidget()
        self.dicom_widget = Dicom_Browser()
        # self.liver_support_widget = LiverSupportWidget()
        self.button_bar = MenuLeftPane()

        topLayout = QVBoxLayout()
        topLayout.setAlignment(Qt.AlignTop)
        topLayout.addWidget(self.button_bar)

        self.mainWidget = QDockWidget()
        self.mainWidget.setFeatures(QDockWidget.NoDockWidgetFeatures)
        self.mainWidget.setTitleBarWidget(QWidget())
        self.mainWidget.setWidget(self.dicom_widget)

        mainLayout = QHBoxLayout(self)
        mainLayout.setContentsMargins(QMargins(0, 0, 0, 0))
        mainLayout.addLayout(topLayout)
        mainLayout.addWidget(self.mainWidget)

        self.button_bar.pacs_btn.clicked.connect(self.show_PACSWidget)
        self.button_bar.dcm_btn.clicked.connect(self.show_DICOMBrowser)
        # self.button_bar.liv_support_btn.clicked.connect(self.show_liverSupport)
        self.pacs_widget.dcm_to_browser.connect(self.send_file_to_browser)

        self.show_PACSWidget()
Пример #6
0
 def __init__(self, parent=None):
     super().__init__()
     self.setWindowTitle('PACS loading files')
     self.pacs_ctrl: PACS_ServerCtrl = PACS_OrthancServerCtrl()
     self.initUI()
Пример #7
0
 def __init__(self, **kwargs):
     self.__check_dicom_path()
     self.pacs_server = kwargs.get('serwer', PACS_OrthancServerCtrl())