fix: Use correct external URL for rendered responses with relative URI (#4236)
This commit is contained in:
1 parent
6fc4390645
commit
d8f6991dbe
9 files changed
+182
-24
No files matched your search
@@ -17,7 +17,12 @@ const createRenderedRetrieve = (config, params) => {
|
||||
const { wadoRoot } = config;
|
||||
const { instance, tag = 'PixelData' } = params;
|
||||
const { StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID } = instance;
|
||||
const value = instance[tag];
|
||||
|
||||
if (value?.BulkDataURI?.indexOf('?') !== -1) {
|
||||
// The value instance has parameters, so it should not revert to the rendered
|
||||
return;
|
||||
}
|
||||
if (tag === 'PixelData' || tag === 'EncapsulatedDocument') {
|
||||
return `${wadoRoot}/studies/${StudyInstanceUID}/series/${SeriesInstanceUID}/instances/${SOPInstanceUID}/rendered`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user