fix(wado-proxy): Use wado proxy to retrieve images if enabled in configuration

This commit is contained in:
Evren Ozkan committed 2019-05-01 11:27:53 -04:00
1 parent 46ed339579
commit 7ff9a87b6e
4 files changed
+12 -2

No files matched your search

@@ -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});
+3
View File
@@ -50,5 +50,8 @@
"studyListFunctionsEnabled": true,
"studyListDateFilterNumDays": 1
}
},
"proxy": {
"enabled": true
}
}
+3
View File
@@ -30,5 +30,8 @@
}
]
}
},
"proxy": {
"enabled": true
}
}