fix(wado-proxy): Use wado proxy to retrieve images if enabled in configuration
This commit is contained in:
parent
46ed339579
commit
7ff9a87b6e
@ -433,8 +433,8 @@ async function resultDataToStudyMetadata(server, studyInstanceUid, resultData) {
|
||||
contrastBolusAgent: DICOMWeb.getString(instance['00180010']),
|
||||
radiopharmaceuticalInfo: getRadiopharmaceuticalInfo(instance),
|
||||
baseWadoRsUri: baseWadoRsUri,
|
||||
wadouri: wadouri,
|
||||
wadorsuri: wadorsuri,
|
||||
wadouri: WADOProxy.convertURL(wadouri, server),
|
||||
wadorsuri: WADOProxy.convertURL(wadorsuri, server),
|
||||
imageRendering: server.imageRendering,
|
||||
thumbnailRendering: server.thumbnailRendering
|
||||
};
|
||||
|
||||
@ -11,6 +11,10 @@ WADOProxy.convertURL = (url, serverConfiguration) => {
|
||||
}
|
||||
|
||||
const { settings } = WADOProxy;
|
||||
if (!settings.enabled) {
|
||||
return url;
|
||||
}
|
||||
|
||||
const serverId = serverConfiguration._id;
|
||||
const query = queryString.stringify({url, serverId});
|
||||
|
||||
|
||||
@ -50,5 +50,8 @@
|
||||
"studyListFunctionsEnabled": true,
|
||||
"studyListDateFilterNumDays": 1
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,5 +30,8 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"proxy": {
|
||||
"enabled": true
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user