From 187ab5a8b1fec6a6f969393dd09e1edfc50d0c21 Mon Sep 17 00:00:00 2001 From: Ibrahim Date: Fri, 29 Nov 2024 10:39:41 -0500 Subject: [PATCH] update --- .../src/utils/hydrateStructuredReport.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extensions/cornerstone-dicom-sr/src/utils/hydrateStructuredReport.ts b/extensions/cornerstone-dicom-sr/src/utils/hydrateStructuredReport.ts index 874f2fe2dc..4c07edbee8 100644 --- a/extensions/cornerstone-dicom-sr/src/utils/hydrateStructuredReport.ts +++ b/extensions/cornerstone-dicom-sr/src/utils/hydrateStructuredReport.ts @@ -200,7 +200,10 @@ export default function hydrateStructuredReport( const activeViewportId = viewportGridService.getActiveViewportId(); const cornerstoneViewport = cornerstoneViewportService.getCornerstoneViewport(activeViewportId); - const viewRef = cornerstoneViewport.getViewReference({ referenceImageId: imageId }); + const imageIds = cornerstoneViewport.getImageIds(); + const viewRef = cornerstoneViewport.getViewReference({ + sliceIndex: imageIds.indexOf(imageId), + }); const annotation = { annotationUID: toolData.annotation.annotationUID,