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

OH - Add Select a Provider step to Oracle Health direct scheduling #91580

Open ryanshaw opened 1 month ago

ryanshaw commented 1 month ago

Description

As part of the Oracle Health direct scheduling effort, we need to add a screen to the direct scheduling workflow that allows users to choose a provider. This initial work, will not include all of the gating criteria as outlined in the Figma workflow document but will focus on displaying the initial list of providers that a user has an established relationship with.

A new endpoint and mocks are currently being added in https://github.com/department-of-veterans-affairs/va.gov-team/issues/89641.

The new endpoint (/relationships) returns an object containing patient/provider relationships and takes both facilityId and typeOfCareId as optional parameters.

Here's an example response:

{
  "data": [
    {
      "type": "relationships",
      "attributes": {
        "type": "string",
        "attributes": {
          "provider": {
            "cernerId": "Practitioner/123456",
            "name": "Doe, John D, MD"
          },
          "location": {
            "vhaFacilityId": "string",
            "name": "Marion VA Clinic"
          },
          "clinic": {
            "vistaSite": "534",
            "ien": "6569",
            "name": "Zanesville Primary Care"
          },
          "serviceType": {
            "coding": [
              {
                "code": "Routine Follow-up"
              }
            ],
            "text": "string"
          },
          "lastSeen": "2024-09-10T18:01:23.202Z"
        }
      }
    }
  ]
}

Development Checklist

Background: the va_online_scheduling_OH_direct_schedule toggle is on

Design Assets

Definition of Done

Bren22va commented 1 month ago

Hey team! Please add your planning poker estimate with Zenhub @cferris32 @jenniemc @JunTaoLuo @ryanshaw @simiadebowale @vbahinwillit