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
282 stars 203 forks source link

[SPIKE] Past appointments schema #19115

Closed laurenernest closed 3 years ago

laurenernest commented 3 years ago

Issue Description

Is it possible to provide an endpoint in vets-api that aggregates the different appointments types? This would provide a more seamless communication with vets-website when requesting past appointment data. Currently, vets-website has to make multiple requests, one for each type of appointment to retrieve past appointment information. The spike here would be to determine if it makes sense to combine these calls into a single request.

A major challenge facing this type of request is the underlying schema for each type of appointment is significantly different. Currently the front-end handles the associated data transformation that facilitates surfacing that data in vets-website. If vets-api were to aggregate that data, it would take over some of the data transformation logic; this would be a break from the standard architecture, but worth investigating.

Relates to work in: #18976, #18164


Deliverables

laurenernest commented 3 years ago

@grossb1 Do you still want to do this spike?