feat: Ultrasound Pleura B-line Annotation Mode & Extension (#5061)

This commit is contained in:
rodrigobasilio2022 authored and GitHub committed 2025-06-24 12:50:48 -04:00
1 parent 9b8eef9474
commit 226f9b0773
46 files changed
+7123 -3660

No files matched your search

@@ -0,0 +1,11 @@
/**
* Retrieves the DICOM instance associated with a specific imageId
* @param services - The OHIF services object
* @param imageId - The image ID to find the instance for
* @returns The DICOM instance object or undefined if not found
*/
export default function getInstanceByImageId(services: AppTypes.Services, imageId: string) {
const activeDisplaySets = services.displaySetService.getActiveDisplaySets();
const displaySet = activeDisplaySets.find(displaySet => displaySet?.imageIds?.includes(imageId));
return displaySet?.instance;
}