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

[FE] - Fetch appointment data with mocks #75706

Closed wullaski closed 7 months ago

wullaski commented 8 months ago

Description

Create hook to fetch appointment data from new vets-api endpoint(TBD). Create mocks for local development.

Use same endpoint as day-of check-in, pass facilityType = OH as a param

Example payload:

{
      appointmentIEN: '1111',
      clinicFriendlyName: 'Endoscopy',
      clinicPhoneNumber: '555-555-5555',
      facility: 'Example Veterans/' Hospital',
      facilityAddress: {
        street1: "12345 Main St",
        street2: "Suite 100",
        street3: "Box #3",
        city: "Washington",
        state: "DC",
        zip: "20002"
      },
      stationNo: '530',      
      clinicCreditStopCodeName: '',
      clinicIen: '32216049',
      clinicLocation: '',
      clinicName: 'Endoscopy',
      clinicStopCodeName: 'Mental Health',
      doctorName: 'Dr. Smith',
      edipi: '22222',
      icn: '33333',
      kind: 'clinic',
      startTime: '2020-01-23T22:10:00.000+00:00',
      status: '2020-01-23T23:10:00.000+00:00',
}

Consider if we need a new reload wrapper

Tasks

Acceptance Criteria

Code Review Steps

wullaski commented 8 months ago

Hey team! Please add your planning poker estimate with Zenhub @wullaski @brianseek

wullaski commented 8 months ago

Please add your planning poker estimate with Zenhub @lee-delarm6

brianseek commented 7 months ago

verified existing apps on stage after this re-work. Moving to closed