-
Notifications
You must be signed in to change notification settings - Fork 398
fix: Ensure FOR is stored when required and cachedStats created #2237
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
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.
This change just avoids needing to merge version.ts all the time. It will get recreated from package.json
@@ -80,9 +80,6 @@ export default class Length extends BaseAdapter3D { | |||
trackingIdentifierTextValue: this.trackingIdentifierTextValue, | |||
finding, | |||
findingSites: findingSites || [], | |||
ReferencedFrameOfReferenceUID: is3DMeasurement |
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.
This is moved to MeasurementReport.ts
@@ -185,6 +185,10 @@ export default class MeasurementReport { | |||
is3DMeasurement | |||
); | |||
args.ReferencedSOPSequence = ReferencedSOPSequence; | |||
if (args.use3DSpatialCoordinates) { |
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.
This fixes the load of MPR measurements generally.
@@ -328,6 +332,7 @@ export default class MeasurementReport { | |||
annotation: { | |||
data: { | |||
annotationUID, | |||
cachedStats: {}, |
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.
This fixes missing cachedStats generally.
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.
Recreated from package.json on each build.
Context
Some of the annotation adapters weren't storing referenced frame of reference uid, nor were they creating cached stats.
Add both items automatically when appropriate.
Changes & Results
Add Ref FOR for 3d measurements
Add cached stats always
Testing
Link into OHIF and save 3d annotations.
Checklist
PR
semantic-release format and guidelines.
Code
etc.)
Public Documentation Updates
additions or removals.
Tested Environment