InstitutionName Appear to the right of each study in study list
- Is it possible to make the InstitutionName from the Tag Browser of the Study list?.
- Which OHIF version you are using? v3.7.0
What steps can we follow to reproduce the bug? InstitutionName does not appear.
-
First step:
customizations: [
{
id: ‘studyList.columns’,
value: {
columns: [
{ id: ‘PatientName’, title: ‘Patient Name’, selector: (d) => d.PatientName },
{ id: ‘PatientID’, title: ‘MRN’, selector: (d) => d.PatientID },
{ id: ‘StudyDate’, title: ‘Study Date’, selector: (d) => d.StudyDate },
{
id: ‘InstitutionName’,
title: ‘Facility’,
selector: (d) => d.InstitutionName || d[‘00080080’] || ‘’,
sortable: true,
},
{ id: ‘StudyDescription’, title: ‘Description’, selector: (d) => d.StudyDescription },
{ id: ‘ModalitiesInStudy’, title: ‘Modality’, selector: (d) => d.ModalitiesInStudy },
{ id: ‘instances’, title: ‘Instances’, selector: (d) => d.instances },
],
},
},
{
id: ‘studyList.filters’,
value: {
filters: [
{ id: ‘PatientName’, title: ‘Patient Name’, type: ‘text’ },
{ id: ‘PatientID’, title: ‘MRN’, type: ‘text’ },
{ id: ‘InstitutionName’, title: ‘Facility’, type: ‘text’ },
{ id: ‘StudyDescription’, title: ‘Description’, type: ‘text’ },
{ id: ‘ModalitiesInStudy’, title: ‘Modality’, type: ‘text’ },
],
},
},
{
id: ‘studyBrowser.thumbnailMenuItems’,
value: [
{
id: ‘deleteThumbnail’,
label: ‘Delete’,
iconName: ‘content-cut’,
commands: ‘deleteThumbnail’,
},
],
},
],
}, -
Second step
customizationService: [
{
id: ‘viewportOverlay.topLeft’,
inheritsFrom: ‘ohif.overlayItem.topleft’,
content: [
{
id: ‘InstitutionName’,
inheritsFrom: ‘ohif.overlayItem’,
label: ‘Inst:’, // Optional label
title: ‘Institution Name’,
// The DICOM tag (0008,0080) is usually mapped to this key
value: ‘InstitutionName’,
},
// … existing items like patient name, etc.
],
},
],
}; -
…
Please use code blocks to show formatted errors or code snippets