Closed marcynadeau closed 3 years ago
The bug is that the facility we choose for CLINIC_BASED appointments is based on appointment.videoData.facilityId
, which is not always the sta6aid
(it falls back to the vista site id). We should instead use appointment.location.stationId
--Video appointments at a VA location should use the same logic as VA appointments (using 'sta6aid' is used to display the facility address & phone number).
--The bug right now is that they do not use that logic.
--Video appointments at VA location is using the logic used for as VA Video Connect at home which uses the facilityId to display the VAMC name and phone number.
-- Using the facilityId means it will always list the parent site and the appointment may not be at that site
facilityId is the parent site # sta6aid is will show the 2-3 digit code at the end to indicate child/CBOC.
Here is an example: "facilityId": "984", "sta6aid": "984GD",