-
Notifications
You must be signed in to change notification settings - Fork 9
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
Cherry-Pick: Eliminate Warning Messages #1663
Conversation
…meter refactor, fix logic for existence of practitioner
… check in getObr16ExtensionPractitioner
…lue, refactor PID-3.4 testing into discrete unit tests
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
||
when: | ||
HapiHelper.setPID3_4Value(bundle, pid3_4) | ||
HapiHelper.setPID3_4Value(bundle, pid3_4Value) |
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.
Consider adding assertions before the action in the test 'setPID3_4Value updates correctly when patient has a PID-3 identifier' to ensure that the state before the action is as expected. This will make the test more robust and clear. [important]
HapiHelper.setPID3_4Value(bundle, pid3_4Value) | ||
|
||
when: | ||
HapiHelper.setPID3_4Value(bundle, 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.
In the test 'setPID3_4Value updates correctly when patient has a PID-3 identifier and the new value is null', consider verifying the initial state of pid3Identifier
before setting it to null. This ensures that the test covers the changes thoroughly. [important]
|
||
when: | ||
HapiHelper.setPID3_4Value(bundle, pid3_4) | ||
HapiHelper.setPID3_4Value(bundle, pid3_4Value) |
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.
For the test 'setPID3_4Value does not modify bundle without PID-3 identifier', it would be beneficial to add more detailed assertions to check that no unintended modifications occur to the bundle. This can help catch subtle bugs. [medium]
Quality Gate passedIssues Measures |
PR Code Suggestions ✨Explore these optional code suggestions:
|
closing this draft pr as we pushed the code in another branch. |
Description
Describe what changed in this PR at a high level.
Issue
Add a link to the issue here. Consider using
closing keywords
if the this PR isn't for a story (stories will be closed through different means).
Checklist
Note: You may remove items that are not applicable