Skip to content
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

fix: Having sop instance in a per-frame or shared attribute breaks load #4560

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

wayfarer3130
Copy link
Contributor

@wayfarer3130 wayfarer3130 commented Nov 29, 2024

aent### Context

Some PACS systems combine single frame into multi-frame and then record the original SOPInstanceUID in the per frame attribute sequence. This PR simply omits such per frame instances.

Changes & Results

Uses a shared object for the parent series/instance data rather than merging, and avoid over-riding anything containing a SOP instance UID.
This addresses #4551
It also addresses the issue from Jagan Vijayaraghavan in slack, for which he provided the study below.
StudyWithSOPInFrameSequence.zip

The issue is that a shared functional groups sequence contains an original SOP instance UID for another object, and that SOP ends up replacing the correct SOP/Series UIDs, causing the wrong UIDs to be used.

Testing

Load the study with the per-frame data from the cornerstone chat

Checklist

PR

  • [] My Pull Request title is descriptive, accurate and follows the
    semantic-release format and guidelines.

Code

  • [] My code has been well-documented (function documentation, inline comments,
    etc.)

Public Documentation Updates

  • [] The documentation page has been updated as necessary for any public API
    additions or removals.

Tested Environment

  • [] OS:
  • [] Node version:
  • [] Browser:

@wayfarer3130 wayfarer3130 requested a review from sedghi November 29, 2024 16:14
Copy link

netlify bot commented Nov 29, 2024

Deploy Preview for ohif-platform-docs ready!

Name Link
🔨 Latest commit a3c36e9
🔍 Latest deploy log https://app.netlify.com/sites/ohif-platform-docs/deploys/67800a50929a1c000831d060
😎 Deploy Preview https://deploy-preview-4560--ohif-platform-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Nov 29, 2024

Deploy Preview for ohif-dev canceled.

Name Link
🔨 Latest commit a3c36e9
🔍 Latest deploy log https://app.netlify.com/sites/ohif-dev/deploys/67800a505fbfdb00084fef6d

// During a resize, the slice index should remain unchanged. This is a temporary fix for
// a larger issue regarding the definition of slice index with slab thickness.
// We need to revisit this to make it more robust and understandable.
delete presentation.viewReference.sliceIndex;
if (presentation?.viewReference) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still an issue entering MPR mode, but at least it doesn't throw

Copy link

cypress bot commented Nov 29, 2024

Viewers    Run #4646

Run Properties:  status check passed Passed #4646  •  git commit a3c36e9f8b: Merge branch 'master' into fix/sop-instance-in-per-frame
Project Viewers
Branch Review fix/sop-instance-in-per-frame
Run status status check passed Passed #4646
Run duration 02m 21s
Commit git commit a3c36e9f8b: Merge branch 'master' into fix/sop-instance-in-per-frame
Committer Bill Wallace
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 44
View all changes introduced in this branch ↗︎

Copy link
Member

@sedghi sedghi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is broken now after this PR, it does not go MPR, it was working before

datscan upside down.zip

@sedghi
Copy link
Member

sedghi commented Jan 9, 2025

@wayfarer3130 can you upload an anonymized study that does not work right now or bug report issue number

@wayfarer3130
Copy link
Contributor Author

@sedghi - could you check the uploaded study? That study works correctly now, but I don't understand why your MPR issue breaks. I tried looking at that, but if you could help debug that with me sometime I'd appreciate it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants