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

(Refactor) : Removed patient bills filter and fixed patient search css issue #309

Merged
merged 4 commits into from
Aug 17, 2024

Conversation

amosmachora
Copy link
Contributor

Requirements

  • This PR has a title that briefly describes the work done, including the ticket number if there is a ticket.
  • My work conforms to the OpenMRS 3.0 Styleguide.
  • I checked for feature overlap with existing widgets.

Summary

In this PR I have fixed the issue whereby the patient-bills component filtered all bills that were not paid. Currently the UI now shows all the bills as requested by @ojwanganto .

Also I have made some UI improvements to handle better no-patient-selected , errors and loading states. Also I have fixed the search issue that broke the patient search results.

@donaldkibet please see here. The reason I had to use !important is because I did not want to open another PR on the community over the same issue as the one I had a few weeks ago.

Also I have fixed another issue I came across whereby if a bill had multiple line items the UI would only show one line item in the UI thereby misleading the user.

Screenshots

Search results

image

Billable services

image

None.

Related Issue

None.

Other

None.

@amosmachora amosmachora changed the title (Refactor) : Removed patient bills filter and fixed patient search css isssue (Refactor) : Removed patient bills filter and fixed patient search css issue Aug 13, 2024
@@ -50,39 +45,30 @@ const PastPatientBills: React.FC<PatientBillsProps> = ({ patientUuid, bills, set
{bill.dateCreated}
</ConfigurableLink>
),
billableService: extractString(bill.billingService),
billableService: extractBillableServiceReadableString(bill.billingService),
Copy link
Contributor

Choose a reason for hiding this comment

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

There is an existing function name extractString we might want to improve the naming of it. cc @ojwanganto we should not be doing this on the frontend. We will need to improve the backend response for this

@donaldkibet donaldkibet merged commit 7752c71 into palladiumkenya:main Aug 17, 2024
6 checks passed
@amosmachora amosmachora deleted the refactor/patient-bills branch August 18, 2024 15:50
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