Skip to content
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

FM2-645: Remove identifier from Practitioner display field #550

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

VaishSiddharth
Copy link
Contributor

Description of what I changed

Issue I worked on

see https://issues.openmrs.org/browse/FM2-645

Checklist: I completed these to help reviewers :)

  • My IDE is configured to follow the code style of this project.

    No? Unsure? -> configure your IDE, format the code and add the changes with git add . && git commit --amend

  • I have added tests to cover my changes. (If you refactored
    existing code that was well tested you do not have to add tests)

    No? -> write tests and add them to this commit git add . && git commit --amend

  • I ran mvn clean package right before creating this pull request and
    added all formatting changes to my commit.

    No? -> execute above command

  • All new and existing tests passed.

    No? -> figure out why and add the fix to your commit. It is your responsibility to make sure your code works.

  • My pull request is based on the latest changes of the master branch.

    No? Unsure? -> execute command git pull --rebase upstream master

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.66%. Comparing base (c7f2ec2) to head (d52f415).
Report is 18 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #550      +/-   ##
============================================
+ Coverage     77.84%   78.66%   +0.81%     
+ Complexity     2683     2393     -290     
============================================
  Files           239      236       -3     
  Lines          7452     7023     -429     
  Branches        901      921      +20     
============================================
- Hits           5801     5524     -277     
+ Misses         1115      972     -143     
+ Partials        536      527       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 136 to 139
if (provider.getIdentifier() != null) {
reference.setIdentifier(new Identifier().setValue(provider.getIdentifier()));
sb.append(" (").append(FhirConstants.IDENTIFIER).append(": ").append(provider.getIdentifier()).append(")");
}
Copy link
Member

Choose a reason for hiding this comment

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

Why did we remove this whole block? The ticket was just to get rid of the text display. The reference identifier should still be set.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah you are right seems like I overlooked the setIdentifier statement and removed the whole block.
Have fixed it now. Thanks for pointing this out.

@VaishSiddharth VaishSiddharth changed the title FM2-645: Remove identifier from Practitioner reference display field FM2-645: Remove identifier from Practitioner display field Oct 1, 2024
@VaishSiddharth VaishSiddharth requested a review from ibacher October 2, 2024 05:34
@ibacher ibacher merged commit 9707c4d into openmrs:master Oct 2, 2024
3 of 4 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.

2 participants