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

(fix): Remove automatic appending of Zeros to numeric lab results #2030

Merged
merged 3 commits into from
Sep 24, 2024

Conversation

makombe
Copy link
Contributor

@makombe makombe commented Sep 24, 2024

Requirements

  • This PR has a title that briefly describes the work done including the ticket number. If there is a ticket, make sure your PR title includes a conventional commit label. See existing PR titles for inspiration.
  • My work conforms to the OpenMRS 3.0 Styleguide and design documentation.
  • My work includes tests or is validated by existing tests.

Summary

If you order a lab test and the results is a numeric value, there is always a zero added. This is quite misleading. I have provided an example of a actual viral load result which should be 303copies but presented to the user as 3030 copies

Screenshots

Before:
Screenshot from 2024-09-24 14-18-43

After:
Screenshot from 2024-09-24 14-18-12

Related Issue

Other

@ojwanganto
Copy link

Thanks, @makombe. Please create a ticket and link it to the PR

Copy link

@ojwanganto ojwanganto left a comment

Choose a reason for hiding this comment

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

LGTM

@denniskigen
Copy link
Member

Great catch, @makombe. Let me try to cobble up some test coverage to ensure we don't run into this again.

@denniskigen
Copy link
Member

Can I push a commit with the tests, @makombe?

@makombe
Copy link
Contributor Author

makombe commented Sep 24, 2024

Can I push a commit with the tests, @makombe?

Sure. That would be great.

@denniskigen
Copy link
Member

Done. Thanks!

@makombe makombe merged commit a2284e5 into openmrs:main Sep 24, 2024
6 checks passed
senthil-athiban pushed a commit to senthil-athiban/openmrs-esm-patient-chart that referenced this pull request Nov 19, 2024
…enmrs#2030)

* (fix): Remove automatic appending of Zeros to numeric lab results

* Code review

* Useful mods

---------

Co-authored-by: Dennis Kigen <[email protected]>
@denniskigen denniskigen mentioned this pull request Dec 17, 2024
3 tasks
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.

4 participants