-
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 #1662
Conversation
…meter refactor, fix logic for existence of practitioner
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
@@ -430,30 +431,58 @@ class HapiHelperTest extends Specification { | |||
} | |||
|
|||
// PID-3.4 - Assigning Authority | |||
def "patient assigning authority methods work as expected"() { | |||
def "getPID3_4Identifier returns null when bundle is empty"() { |
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 using a helper method or parameterized tests to handle repetitive test setups, especially where the only differences are input values or minor configuration changes. This will make the tests easier to read and maintain. [important]
|
||
when: | ||
def "setPID3_4Value updates correctly when patient has a PID-3 identifier"() { |
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.
Ensure that all new methods introduced in the test file have corresponding negative tests that handle unexpected or invalid input gracefully. This is crucial for robustness. [important]
HapiFhirHelper.getPID3_4Value(bundle) == pid3_4Value | ||
} | ||
|
||
def "setPID3_4Value updates correctly when patient has a PID-3 identifier and the new value is 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.
To improve code clarity and maintainability, consider breaking down complex test methods into smaller, more focused tests. This can help isolate issues and make the tests more understandable. [medium]
PR Code Suggestions ✨Explore these optional code suggestions:
|
Co-Authored-By: Joel Biskie <[email protected]> Co-Authored-By: Jeremy Rosenfeld <[email protected]>
Co-authored-by: [email protected] Co-authored-by: [email protected]
… check in getObr16ExtensionPractitioner
Co-authored-by: tjohnson7021 Co-authored-by: jeremyir
…lue, refactor PID-3.4 testing into discrete unit tests
7a13ce3
to
663b789
Compare
Quality Gate passedIssues Measures |
Closing to fix the partial signed commit |
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