Exemple #1
0
 def onSendClicked(self):
   """Perform a dicom store of slicer data to a peer"""
   # TODO: this should migrate to ctk for a more complete implementation
   # - just the basics for now
   uid = self.selection.data(self.dicomModelUIDRole)
   role = self.dicomModelTypes[self.selection.data(self.dicomModelTypeRole)]
   studies = []
   if role == "Patient":
     studies = slicer.dicomDatabase.studiesForPatient(uid)
   if role == "Study":
     studies = [uid]
   series = []
   if role == "Series":
     series = [uid]
   else:
     for study in studies:
       series += slicer.dicomDatabase.seriesForStudy(study)
   files = []
   for serie in series:
     files += slicer.dicomDatabase.filesForSeries(serie)
   sendDialog = DICOMLib.DICOMSendDialog(files)
   sendDialog.open()
Exemple #2
0
 def onSend(self, fileList):
     if len(fileList):
         sendDialog = DICOMLib.DICOMSendDialog(fileList, self)