@@ -107,7 +107,8 @@ const initializeHealthlakeFetch = (healthlake) => {
107
107
* @param {bool } lazyLoadStudy - "enableStudyLazyLoad"; Request series meta async instead of blocking
108
108
* @param {string|bool } singlepart - indicates of the retrieves can fetch singlepart. Options are bulkdata, video, image or boolean true
109
109
*/
110
- function createDicomWebTreeApi ( dicomWebConfig , UserAuthenticationService ) {
110
+ function createDicomWebTreeApi ( dicomWebConfig , servicesManager ) {
111
+ const { userAuthenticationService } = servicesManager . services ;
111
112
const {
112
113
qidoRoot,
113
114
wadoRoot,
@@ -123,7 +124,7 @@ function createDicomWebTreeApi(dicomWebConfig, UserAuthenticationService) {
123
124
staticWado,
124
125
healthlake,
125
126
singlepart,
126
- headers : UserAuthenticationService . getAuthorizationHeader ( ) ,
127
+ headers : userAuthenticationService . getAuthorizationHeader ( ) ,
127
128
errorInterceptor : errorHandler . getHTTPErrorHandler ( ) ,
128
129
} ;
129
130
@@ -132,7 +133,7 @@ function createDicomWebTreeApi(dicomWebConfig, UserAuthenticationService) {
132
133
singlepart,
133
134
staticWado,
134
135
healthlake,
135
- headers : UserAuthenticationService . getAuthorizationHeader ( ) ,
136
+ headers : userAuthenticationService . getAuthorizationHeader ( ) ,
136
137
errorInterceptor : errorHandler . getHTTPErrorHandler ( ) ,
137
138
} ;
138
139
@@ -160,7 +161,7 @@ function createDicomWebTreeApi(dicomWebConfig, UserAuthenticationService) {
160
161
studies : {
161
162
mapParams : mapParams . bind ( ) ,
162
163
search : async function ( origParams ) {
163
- const headers = UserAuthenticationService . getAuthorizationHeader ( ) ;
164
+ const headers = userAuthenticationService . getAuthorizationHeader ( ) ;
164
165
if ( headers ) {
165
166
qidoDicomWebClient . headers = headers ;
166
167
}
@@ -207,7 +208,7 @@ function createDicomWebTreeApi(dicomWebConfig, UserAuthenticationService) {
207
208
series : {
208
209
// mapParams: mapParams.bind(),
209
210
search : async function ( studyInstanceUid ) {
210
- const headers = UserAuthenticationService . getAuthorizationHeader ( ) ;
211
+ const headers = userAuthenticationService . getAuthorizationHeader ( ) ;
211
212
if ( headers ) {
212
213
qidoDicomWebClient . headers = headers ;
213
214
}
@@ -240,7 +241,7 @@ function createDicomWebTreeApi(dicomWebConfig, UserAuthenticationService) {
240
241
241
242
instances : {
242
243
search : ( studyInstanceUid , queryParameters ) => {
243
- const headers = UserAuthenticationService . getAuthorizationHeader ( ) ;
244
+ const headers = userAuthenticationService . getAuthorizationHeader ( ) ;
244
245
if ( headers ) {
245
246
qidoDicomWebClient . headers = headers ;
246
247
}
@@ -342,7 +343,7 @@ function createDicomWebTreeApi(dicomWebConfig, UserAuthenticationService) {
342
343
sortFunction,
343
344
madeInClient = false ,
344
345
} ) => {
345
- const headers = UserAuthenticationService . getAuthorizationHeader ( ) ;
346
+ const headers = userAuthenticationService . getAuthorizationHeader ( ) ;
346
347
if ( headers ) {
347
348
wadoDicomWebClient . headers = headers ;
348
349
}
@@ -368,7 +369,7 @@ function createDicomWebTreeApi(dicomWebConfig, UserAuthenticationService) {
368
369
store : {
369
370
dicom : async dataset => {
370
371
// remove
371
- const headers = UserAuthenticationService . getAuthorizationHeader ( ) ;
372
+ const headers = userAuthenticationService . getAuthorizationHeader ( ) ;
372
373
if ( headers ) {
373
374
wadoDicomWebClient . headers = headers ;
374
375
}
0 commit comments