Skip to content

Commit

Permalink
Change 'Modality' to 'Modalities' in study table
Browse files Browse the repository at this point in the history
Change 'Modality' to 'Modalities' in study table (DICOM tag name is `Modalities in Study`).
  • Loading branch information
vanossj authored Aug 26, 2022
1 parent 7bd6b32 commit 3cb3041
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions DICOMwebBrowser/DICOMwebBrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def setup(self):
self.studiesTableWidget = qt.QTableWidget()
self.studiesTableWidget.setCornerButtonEnabled(True)
self.studiesModel = qt.QStandardItemModel()
self.studiesTableHeaderLabels = ['Study instance UID', 'Patient name', 'Patient ID', 'Modality', 'Study date', 'Study description']
self.studiesTableHeaderLabels = ['Study instance UID', 'Patient name', 'Patient ID', 'Modalities', 'Study date', 'Study description']
self.studiesTableWidget.setColumnCount(len(self.studiesTableHeaderLabels))
self.studiesTableWidget.sortingEnabled = True
self.studiesTableWidget.hideColumn(0)
Expand Down Expand Up @@ -919,13 +919,13 @@ def populateStudiesTableWidget(self, studies):
rowIndex = self.studiesTableRowCount
table.setRowCount(rowIndex + len(studies))


for study in studies:
widget, value = self.setTableCellTextFromDICOM(table, self.studiesTableHeaderLabels, study, rowIndex, 'Study instance UID', '0020000D')
self.studyInstanceUIDWidgets.append(widget)
self.setTableCellTextFromDICOM(table, tableColumns, study, rowIndex, 'Patient name', '00100010')
self.setTableCellTextFromDICOM(table, tableColumns, study, rowIndex, 'Patient ID', '00100020')
self.setTableCellTextFromDICOM(table, tableColumns, study, rowIndex, 'Modality', '00080061')
self.setTableCellTextFromDICOM(table, tableColumns, study, rowIndex, 'Modalities', '00080061') # Modalities in Study
self.setTableCellTextFromDICOM(table, tableColumns, study, rowIndex, 'Study date', '00080020')
self.setTableCellTextFromDICOM(table, tableColumns, study, rowIndex, 'Study description', '00081030')
rowIndex += 1
Expand All @@ -947,8 +947,8 @@ def populateSeriesTableWidget(self, studyUID, series):
rowIndex = self.seriesTableRowCount
table.setRowCount(rowIndex + len(series))

import dicomweb_client

import dicomweb_client
for serieJson in series:
serie = pydicom.dataset.Dataset.from_json(serieJson)
if hasattr(serie, 'SeriesInstanceUID'):
Expand Down Expand Up @@ -1091,8 +1091,8 @@ def onCancel(self):
class GoogleCloudPlatform(object):

def gcloud(self, subcommand):
import shutil

import shutil
args = [shutil.which('gcloud')]
if (None in args):
logging.error(f"Unable to locate gcloud, please install the Google Cloud SDK")
Expand Down

0 comments on commit 3cb3041

Please sign in to comment.