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

(enhancement): Include department, policy, beneficiary & insurance details in (patient-bill) API response #6

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

Conversation

ODORA0
Copy link
Collaborator

@ODORA0 ODORA0 commented Jan 29, 2025

  • Added new fields (departmentName, policyIdNumber, beneficiaryName, insuranceName) to PatientBillResource.
  • Retrieved missing data from the Consommation model using BillingService.getConsommationByPatientBill().
  • Implemented @PropertyGetter methods to extract relevant attributes dynamically.
  • Ensured these fields are included in both DefaultRepresentation and RefRepresentation.
  • Fixed recursion issue with creator by returning only the user's full name.
  • Updated API response to match UI table requirements in the Billing module.

🔹 Endpoint: /ws/rest/v1/mohbilling/patientBill
🔹 Example Usage: ?startIndex=0&limit=10&orderBy=createdDate&order=desc
🔹 Ensured backward compatibility with existing patient bill retrieval.

@ODORA0 ODORA0 requested a review from alaboso January 29, 2025 09:27
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.

1 participant