cod-dicomweb-server 1.3.2 → 1.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -313,7 +313,7 @@ class CodDicomWebServer {
|
|
|
313
313
|
}
|
|
314
314
|
parseMetadata(metadata, type, sopInstanceUID) {
|
|
315
315
|
if (type === Enums.RequestType.INSTANCE_METADATA) {
|
|
316
|
-
return Object.
|
|
316
|
+
return Object.entries(metadata.cod.instances).find(([key, instance]) => key === sopInstanceUID)?.[1].metadata;
|
|
317
317
|
}
|
|
318
318
|
else {
|
|
319
319
|
return Object.values(metadata.cod.instances).map((instance) => instance.metadata);
|
|
@@ -58,7 +58,7 @@ export function getFrameDetailsFromMetadata(seriesMetadata, sopInstanceUID, fram
|
|
|
58
58
|
const thumbnailGsUtilUri = seriesMetadata.thumbnail.uri;
|
|
59
59
|
thumbnailUrl = `${domain}/${thumbnailGsUtilUri.split('gs://')[1]}`;
|
|
60
60
|
}
|
|
61
|
-
const instanceFound = Object.
|
|
61
|
+
const instanceFound = Object.entries(seriesMetadata.cod.instances).find(([key, instance]) => key === sopInstanceUID)?.[1];
|
|
62
62
|
if (!instanceFound) {
|
|
63
63
|
return { thumbnailUrl };
|
|
64
64
|
}
|
package/package.json
CHANGED