feat IDC #2797: add support for SR qualitative annotation per instance (#2822)

This commit is contained in:
Davide Punzo authored and GitHub committed 2022-06-14 14:12:27 +02:00
1 parent c59d66412f
commit b04e186274
16 files changed
+463 -99

No files matched your search

@@ -238,10 +238,20 @@ class OHIFCornerstoneViewport extends Component {
};
const warningsOverlay = props => {
const displaySet = this.props.viewportData.displaySet;
let filteredSRLabels;
if (displaySet.SRLabels && displaySet.SRLabels.length !== 0) {
filteredSRLabels = displaySet.SRLabels.filter(
SRLabel =>
SRLabel.ReferencedSOPInstanceUID === displaySet.SOPInstanceUID
);
}
return (
<OHIFCornerstoneViewportOverlay
{...props}
inconsistencyWarnings={inconsistencyWarnings}
SRLabels={filteredSRLabels}
/>
);
};