-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
feat(MeasurementService): add rendering of unmapped measurements #5416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for ohif-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Viewers
|
Project |
Viewers
|
Branch Review |
feat/display-unmapped-measurements
|
Run status |
|
Run duration | 02m 36s |
Commit |
|
Committer | Bill Wallace |
View all properties for this run ↗︎ |
Test results | |
---|---|
|
0
|
|
0
|
|
0
|
|
0
|
|
37
|
View all changes introduced in this branch ↗︎ |
@sedghi this PR is the follow up on our desperate attempts to fix point/contour SR annotation rendering for the past 5 years. Appreciate your support to get this merged. |
platform/ui-next/src/components/MeasurementTable/MeasurementTable.tsx
Outdated
Show resolved
Hide resolved
platform/core/src/services/MeasurementService/MeasurementService.ts
Outdated
Show resolved
Hide resolved
platform/core/src/services/MeasurementService/MeasurementService.ts
Outdated
Show resolved
Hide resolved
extensions/cornerstone-dicom-sr/src/getSopClassHandlerModule.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see my comments
extensions/cornerstone-dicom-sr/src/getSopClassHandlerModule.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see my comment please
platform/ui-next/src/components/MeasurementTable/MeasurementTable.tsx
Outdated
Show resolved
Hide resolved
@jbocce can you check/help Igor why tests are failing? then we merge |
It looks like only one test is failing: ![]() I will let you decide whether this is expected or not. 😊 |
@jbocce, thx for pointing it out. The screenshot should look like this? hard to read |
@igoroctaviano , that is the diff of the expected versus actual. Here is the expected... ![]() And this is the actual (i.e. with your changes in this PR)... ![]() |
} | ||
|
||
export const DataRow: React.FC<DataRowProps> = ({ | ||
const DataRowComponent: React.FC<DataRowProps> = ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please export it - having this sort of thing exported allows for re-use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@igoroctaviano can you address this one last comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's being exported as you can see at the bottom:
const DataRow = DataRowComponent as React.FC<DataRowProps> & {
Status: typeof Status;
};
DataRow.Status = Status;
export default DataRow;
export { DataRow };
@fedorov Thanks for your team's contribution. Just a friendly reminder that we need to add tests for these so that it does not get broken again |
@sedghi thank you! I completely agree. Issue created, and we will address this. |
@fedorov Do you have such data at IDC? |
Unfortunately, there are still issues:
@deepakri201 will add details to #5081 / #5082. |
I added a screenshot to this issue with the bounding boxes rendered and displayed in the right panel. Please share the dataset you are using. |
Context
This PR addresses the issue where DICOM SR (Structured Report) measurements that cannot be mapped to existing measurement tools were not being displayed in the measurement panels. Previously, unmapped measurements were silently ignored, making them invisible to users even though the data existed in the DICOM SR.
The changes ensure that all measurements from DICOM SR files are visible to users, with clear visual indicators when measurements cannot be properly mapped to standard measurement tools.
Changes & Results
Changes Made:
getSopClassHandlerModule.ts
to use proper TypeScript types and consistent formattinguseMeasurements
to include unmapped measurements in the displayResults:
Testing
To test these changes:
Load a DICOM SR file with measurements that don't map to standard tools:
Verify unmapped measurements are displayed:
Test measurement interactions:
Check JSDoc improvements:
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment