Commit f3521f4 1 parent f012320 commit f3521f4 Copy full SHA for f3521f4
File tree 1 file changed +5
-7
lines changed
src/GuppyDataExplorer/ExplorerTable
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,11 @@ class ExplorerTable extends React.Component {
113
113
114
114
// if this field is the `dicomViewerId`, convert the value to a link to the DICOM viewer
115
115
if ( this . props . tableConfig . dicomViewerId && this . props . tableConfig . dicomViewerId === field && valueStr ) {
116
+ let dicomViewerLink = `${ hostname } dicom-viewer/viewer/${ valueStr } ` ; // default: v2 ohif viewer url format
116
117
if ( this . props . tableConfig . dicomViewerUrl ) {
117
- dicomViewerUrl = this . props . tableConfig . dicomViewerUrl ;
118
- } else {
119
- dicomViewerUrl = "dicom-viewer" ;
118
+ // v3 ohif viewer url format
119
+ dicomViewerLink = `${ hostname } ${ this . props . tableConfig . dicomViewerUrl } /viewer?StudyInstanceUIDs=${ valueStr } ` ;
120
120
}
121
- let dicomViewerLink = `${ hostname } ${ dicomViewerUrl } /viewer/${ valueStr } ` ;
122
121
if ( row . original . has_dicom_images !== undefined && ! row . original . has_dicom_images ) {
123
122
dicomViewerLink = undefined ;
124
123
}
@@ -248,11 +247,10 @@ class ExplorerTable extends React.Component {
248
247
if ( haveField . length === this . props . rawData . length ) {
249
248
this . setState ( { loading : true } ) ;
250
249
// eslint-disable-next-line array-callback-return
251
-
250
+
251
+ let dicomServerURL = "dicom-server" ;
252
252
if ( this . props . tableConfig . dicomServerURL ) {
253
253
dicomServerURL = this . props . tableConfig . dicomServerURL ;
254
- } else {
255
- dicomServerURL = "dicom-server" ;
256
254
}
257
255
258
256
Promise . all ( this . props . rawData . map ( ( x ) => {
You can’t perform that action at this time.
0 commit comments