-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
WIP fix(SR): Fix/sr SCOORD3D not loading #3631
WIP fix(SR): Fix/sr SCOORD3D not loading #3631
Conversation
…into fix/SRNotLoading
…into fix/SRNotLoading
…into fix/SRNotLoading
…into fix/SRNotLoading
✅ Deploy Preview for ohif-platform-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for ohif-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #3631 +/- ##
==========================================
- Coverage 46.23% 45.57% -0.67%
==========================================
Files 78 79 +1
Lines 1276 1299 +23
Branches 312 319 +7
==========================================
+ Hits 590 592 +2
- Misses 548 562 +14
- Partials 138 145 +7
Continue to review full report in Codecov by Sentry.
|
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.
Code Review boostrap
extensions/cornerstone-dicom-sr/src/utils/getClosestInstanceInfo.ts
Outdated
Show resolved
Hide resolved
extensions/cornerstone-dicom-sr/src/utils/convertAnnotations.ts
Outdated
Show resolved
Hide resolved
extensions/cornerstone-dicom-sr/src/getSopClassHandlerModule.ts
Outdated
Show resolved
Hide resolved
I would like to have a test instance of this PR with OHIF that can be pointed to a Google DICOM store, before this is merged. |
In my tests I am doing exactly that. |
Very good. In this case I hope it should be easy to create a setup where I would be able to do it as well. |
I will talk to @igoroctaviano so I can create something like the https://ohif-v3.web.app/ |
…into fix/SRNotLoading
The reason I would like to do this is because I want to confirm it works not only for the test samples, but also for the similar annotations we create. In the past, with v2, the implementation was not working the way we expected. I don't think there is any urgency to merge this PR, it is more important to confirm it works as expected first. |
@sedghi can't we have something like https://github.com/OHIF/Viewers/blob/v2-legacy/extensions/cornerstone/src/tools/DICOMSRDisplayTool.js for v3/cornerstone3d? This way we have a generic cs tool that renders any kind of scoord3d graphic type. |
@igoroctaviano Don't we have it already in OHIF in measurement tracking? |
@rodrigobasilio2022 please check if we could use this tool then. |
It already has. The problem is that it doesnt enable measure jump and, of course, it didn't open the any of these SR examples |
Can we make it work then? what we can do to fix the jump and the support? |
|
…into fix/SRNotLoading
…022/Viewers into fix/SRNotLoading
@igoroctaviano is this ready for review? have you done your pass? |
No this is not ready for review, as we need to add the functionality described in the issue, maybe creating a new MeasurementTable |
You mean on the SR view, you want measurement panel to show annotations? but right now we only show for hydrated? |
@rodrigobasilio2022 before the code review, I would like to have access to a test instance to confirm it works as intended. |
@rodrigobasilio2022 whats the status of this PR based on our last iteration? Have you made the changes? I think you doing it its going to be a lot faster than handing it off. Let me know what you think. |
Context
This PR is related to IDC issue #1215 and wants to enable OHIF to support SCOORD3D annotations and SR polyline annotations in IDC that didnt follow the OHIF / Cornerstone standards. It introduces the idea to customize the dicomSr extension by checking if 'dicomSrExtensionCustomizations' id is defined in a modeCustomization. If yes it checks if a convertAnnotation function is defined and execute it if it exists. This function will be responsible for converting the non conformant SRs to OHIF/Cornerstone compatible ones by rewriting the SR metadata. An example of such function is defined in here. ImagingDataCommons/ohif-idc-mode#3
Changes & Results
This PR adds checking inside dicomsr extension to use, if defined a function called converAnnotations that should perform the proper and necessary converstions to support non conformant SRs, in this case SCOORD3D point annotations and polyline annotations.
The changes only affect modes that register the dicomSRExtensionCustomizations in customizationServices.
Testing
To test it, one should create a new mode or modify the longitudinal mode following this PR ImagingDataCommons/ohif-idc-mode#3.
And need to setup a local dicomweb server and add the studies in the following dropbox link:
https://www.dropbox.com/s/98rylgt25b2sm9r/planar_annotations.zip?dl=0
And open the respective studies. Once opened, just click in the SR series, that originally has only two annotations, but one will see that ten new arrow annotations were added in the measurements tabel, were one can jump to all of them.
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment