-
Notifications
You must be signed in to change notification settings - Fork 58
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
Adjust abnormal flag mapping #7903
Conversation
abnormalFlag.setCode(ABNORMAL_FLAG_NORMAL.code()); | ||
abnormalFlag.setDisplay(ABNORMAL_FLAG_NORMAL.displayName()); | ||
} else { | ||
log.info("Unsupported SNOMED result code: {}", resultCode); |
Check failure
Code scanning / CodeQL
Log Injection High
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.
fixed to Encode.forJava(resultCode))
😅
ec12f6f
to
30aa28d
Compare
30aa28d
to
770ac2f
Compare
} else { | ||
log.info("Unsupported SNOMED result code: {}", Encode.forJava(resultCode)); | ||
return null; |
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.
I think it also makes sense to adjust this bit to not add the interpretation that the abnormal flag coding lives inside. (otherwise it will just be an empty interpretation)
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.
+1 agree that makes sense to omit the interpretation if it'll be empty anyway
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.
OO good catch -- thank you!
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.
LGTM! Nice work!
8d3a944
to
f1d0934
Compare
Quality Gate passedIssues Measures |
@fzhao99 @DanielSass @mpbrown Ready for re-review! |
about this bit - is this an issue with how we are handling the response (in other words, do we need to do work to convey info we're getting from RS back to the user)? Definitely out of scope for this PR, just something to think about as we look at the next story for updating the bulk upload file validation |
This is an example of a FHIR bundle with a nonsensical SNOMED (search "111") -- no abnormal/normal flag is added |
BACKEND PULL REQUEST
Related Issue
Changes Proposed
Abnormal
andNormal
coding only when they match a defined list of SNOMED codes that we supportnull
instead of setting the code toNormal
Additional Information
RS CSV API Error 400 Response:
Testing
DEV3_EX.csv