Hello, how can I visualize a tag in the Viewport Overlay, I tried many ways but without success. The tag I want to visualize is for L1-2-3 …
(0020,4000)
LT
ImageComments
Automatic Result
I tried with the following code but to no avail please help.
customizationService: [
{
'viewportOverlay.bottomLeft': {
$push: [
{
id: 'ImageCommentsOverlay', // Уникален идентификатор
inheritsFrom: 'ohif.overlayItem', // Наследяване от базов overlay item
label: '', // Без етикет, само стойността ще се показва
title: 'Image Comments', // Заглавие за удобство
attribute: 'ImageComments', // Назначаване на атрибут
condition: ({ instance }) =>
instance && instance['0020,4000'], // Проверка за наличие на (0020,4000)
contentF: ({ instance }) =>
instance?.['0020,4000'] || 'No comments available', // Показване на стойността на (0020,4000)
},
],
},
},
],
FIX IT contentF: ({ instance }) => {
return instance?.ImageComments || ‘No comments available’;
},
This work