department-of-veterans-affairs / va.gov-team

Public resources for building on and in support of VA.gov. Visit complete Knowledge Hub:
https://depo-platform-documentation.scrollhelp.site/index.html
281 stars 197 forks source link

Discovery: Associate Claims with Appointments #91489

Open ayush-chak opened 2 weeks ago

ayush-chak commented 2 weeks ago

Context

We need to understand how best to associate a travel pay claim with an appointment. We know that both the check in experience and the BTSSS portal both assign a mileage expense to the first appointment of the day if at a single facility.

Facts

Questions

ayush-chak commented 1 week ago

Q: Is this an edge case?

liztownd commented 1 week ago

For matching a single claim with a single appointment: There is this proposed endpoint: /api/v1.1/claims/search-by-appointment-date, which could help satisfy a list of "which claims were submitted for the specific day in question". The response currently does not include the appointment ID or the facility ID (the facility name is included).

For getting the entire list of appointments and entire list of claims and merging them in the vets-api backend: Currently, the appointment ID is not included in the /claims endpoint. Adding the appointment ID and the facility ID would help match the specific appointment to the claim more easily.

liztownd commented 1 week ago

Confirmed with Blaise in this Slack thread that the business rules allow for one travel pay claim per day per facility.

This means that yes, having the facility ID also returned in the /claims endpoints are needed for associating the travel claim with the correct appointment (at the correct facility).