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

Fixed lab results provider display bug #529

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

G-first-t
Copy link

@G-first-t G-first-t commented Jan 17, 2025

Bug Summary:
The lab results in the patient history were incorrectly displaying the doctor's name instead of the technician who fed the results into the system.

Cause:
The results array for labOrders was not correctly prioritizing the fedBy property (technician) over the provider property (doctor). This caused the UI to show the doctor as the provider of the results.

Fix:
Updated the logic in this.labOrders mapping:

  • Added a map transformation to ensure the provider field prioritizes the fedBy value.
  • Simplified the filter logic to directly match orders and observations by UUID.

Pull Request:
PR #529 - Fixed lab results provider display bug

Participants:

  • 2022-04-04347: Gregory Kimbira
  • 2022-04-12587: Julius Ryoba
  • 2022-04-10077: Adrian Justine Ndossi
  • 2022-04-09572: kelvin Augustino
  • 2022-04-05771: Samson Maige

…tors

- Updated the `this.labOrders` mapping logic to include a preference for `fedBy` (technician) over `provider` (doctor).
- Simplified the `filter` function to directly match observations with order UUIDs.
- Added inline comments for better readability and maintainability.

This ensures that lab results display the correct provider responsible for feeding the data into the system.
@Moricembiaji
Copy link
Collaborator

Moricembiaji commented Jan 17, 2025 via email

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