-
Notifications
You must be signed in to change notification settings - Fork 477
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
Implemented Insurance Details Page #6595
Implemented Insurance Details Page #6595
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some minor changes. Also see reviews from here (not necessary, but good to have): https://codeclimate.com/github/coronasafe/care_fe/pull/6595
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
LGTM |
WHAT
🤖 Generated by Copilot at a288d64
Added a feature to show insurance details for patients in the frontend. Created a new
InsuranceDetails
component and a route to display the data in a separate page. Modified thePatientHome
component to include a card with the insurance information. Added API support and updated theHCXPolicyModel
interface to handle the data from the backend.Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
Merge Checklist
HOW
🤖 Generated by Copilot at a288d64
InsuranceDetails
to display the insurance details of a patient in a separate page (link)useQuery
hook and theroutes
object in thePatientHome
component to fetch the insurance details of the patient from thelistHCXPolicies
route (link)HCXPolicyModel
interface in theapi.tsx
file and set the response type of thelistHCXPolicies
route to a paginated response ofHCXPolicyModel
objects (link, link)insurer_id
andinsurer_name
fields optional in theHCXPolicyModel
interface, as they may not be available for some policies (link)PatientRoutes.tsx
file, using thefacilityId
andid
parameters to pass them as props to theInsuranceDetails
component (link, link)