feat: Ultrasound Pleura B-line Annotation Mode & Extension (#5061)
This commit is contained in:
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;
|
||||
}
|
||||
Reference in new issue
Block a user