Skip to content

Conversation

@nithin-trenser
Copy link
Contributor

@nithin-trenser nithin-trenser commented Dec 1, 2025

Context

Resolved the console error that occurred after generating the SR report using the updated structure introduced in the dcmjs PR. This error was present earlier but surfaced only with the recent SR report modifications.

Changes & Results

chrome_0LEUunrk6R.mp4

Testing

  1. Link the dcmjs branch - https://github.com/abhijith-trenser/dcmjs/tree/feat/save-additional-metrics-to-sr
  2. Link the cornerstone3D branch - https://github.com/abhijith-trenser/cornerstone3D/tree/feat/save-additional-metrics-to-sr
  3. Load the dataset
  4. Generate an SR report
  5. Check the browser console

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:

@netlify
Copy link

netlify bot commented Dec 1, 2025

Deploy Preview for ohif-dev ready!

Name Link
🔨 Latest commit 430e959
🔍 Latest deploy log https://app.netlify.com/projects/ohif-dev/deploys/692fc95cd737540008bb0aac
😎 Deploy Preview https://deploy-preview-5600--ohif-dev.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 project configuration.

@nithin-trenser nithin-trenser changed the title [draft]: fix: Console error on loading SR report fix: Console error on loading SR report Dec 1, 2025

const { ValueType } = ContentSequence;
if (!ValueType === 'SCOORD') {
if (ValueType !== 'SCOORD') {
Copy link
Member

Choose a reason for hiding this comment

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

@igoroctaviano what do you think

Copy link
Contributor

Choose a reason for hiding this comment

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

@sedghi We do support both SCOORD3D and SCOORD. Maybe we need to update to only return if not both?

Copy link
Contributor Author

@nithin-trenser nithin-trenser Dec 8, 2025

Choose a reason for hiding this comment

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

@igoroctaviano Code updated to support both SCOORD3D and SCOORD.


const { ValueType } = ContentSequence;
if (!ValueType === 'SCOORD') {
if (ValueType !== 'SCOORD') {
Copy link
Contributor

Choose a reason for hiding this comment

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

@sedghi We do support both SCOORD3D and SCOORD. Maybe we need to update to only return if not both?

@sedghi sedghi merged commit ba140a0 into OHIF:master Dec 11, 2025
6 of 7 checks passed
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.

3 participants