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
283 stars 204 forks source link

Update appointment request type logic to accommodate Cerner appointments #92185

Open simiadebowale opened 2 months ago

simiadebowale commented 2 months ago

Description

We want to enhance our appointment request logic to accommodate Cerner appointments. Booked Cerner appointments will still have requestedPeriods. To support this, we want to update the logic for requests to:

if (isCerner && isEmpty(appt?.end)) {
    return APPOINTMENT_TYPES.request;
  }
  if (isCerner && !isEmpty(appt?.end)) {
    return APPOINTMENT_TYPES.vaAppointment;
  }

This will be a temporary FE change till the vets-api consolidation work is done.


Development Checklist

Developer Reference

Definition of Done


ldelacosta commented 3 weeks ago

Need to move this ticket to External Dependencies. Staging for OH is down until 11/19.

Issue: Appointments from OH is not shown in staging.

Waiting until OH is available in staging to re-validate.

cc: @JRRoof @simiadebowale @Bren22va

ldelacosta commented 3 weeks ago

Slack thread VPG team ticket

ldelacosta commented 2 weeks ago

Blocked to validate this ticket. Waiting for VPG team to release their changes. Ticket to track.