Skip to main content

First Available Home


Use First Available Doctor to start automatic doctor matching from the Home screen.

The flow bypasses manual doctor selection and uses the selected visit type, location, coverage context, and availability rules.


First Available Doctor option on the Home screen

This screen includes:

#ElementDescription
1First Available Doctor sectionDisplays the automatic matching option
2Get started actionStarts the first available doctor flow
3Visit type contextUses the selected visit type for matching
4Location contextUses the selected service area for matching
5Coverage contextApplies coverage rules when available
6Availability stateDetermines whether matching can start

Workflow

  1. Open the Home screen.
  2. Select a supported visit type.
  3. Select First Available Doctor.
  4. Start automatic doctor matching.
  5. Continue to the booking flow returned by the Home response

Validations

ScenarioApp BehaviorSDK Output
User is not authenticatedBlock matchingerror = unauthorized
Visit type missingBlock matchingerror = visit_type_required
Location missingBlock matchingerror = location_required
Location unsupportedDisable matchingavailability = unsupported
Coverage supports automatic schedulingBypass manual selectionstate = auto_scheduled
Matching availableEnable Get started actionmatching = available
Matching unavailableDisable Get started actionmatching = unavailable
Request rejectedDisplay error statestatus = 405

Actions

ScenarioApp BehaviorSDK Output
Get started selectedStart first available doctor flowPUT /api/v3/home/first-available
Visit type changedRefresh matching eligibilityvisitType = updated
Location changedRefresh matching eligibilitylocation = updated
Coverage context changedRefresh matching eligibilitycoverage = updated
Request succeedsRender returned booking flowstate = ready
Request failsDisplay error statestate = error

Endpoint Resources

First Available Doctor

PUT 

v3/home/first-available

Starts the first available doctor booking flow