Skip to main content

Unavailable Location


Use Unavailable Location when no doctors are available for the selected location and specialty.

The user can update the search criteria or return to the doctor list.



This screen includes:

#ElementDescription
1Edit search modalLets the user update location and specialty.
2Modal titleDisplays Edit search.
3Close actionCloses the modal.
4Location fieldDisplays the selected search location.
5Specialty fieldDisplays the selected specialty.
6Empty results messageExplains that no doctors are available for the selected location.
7Back to doctor list actionReturns to the doctor list.

Workflow

  1. Open the edit search flow.
  2. Load the selected location and specialty.
  3. Check doctor availability for the selected search criteria.
  4. Display the unavailable location state when no doctors are available.
  5. Update the location or specialty, or select Back to doctor list.

Validations

ScenarioApp behaviorSDK output
Location missingBlock search updateerror = location_required
Specialty missingBlock search updateerror = specialty_required
No doctors availableDisplay unavailable location stateavailability = unavailable
Doctors availableReturn matching doctor resultsavailability = available
Request rejectedDisplay error statestatus = 405

Actions

ScenarioApp behaviorSDK output
Unavailable location state opensLoad unavailable location screenPUT /api/v3/location/search/unavailable
Location selectedUpdate the current flow contextPATCH /api/v3/location/show/{location-id}
Specialty selectedUpdate selected specialtyspecialty = selected
Back to doctor list selectedReturn to doctor listnavigation = doctor_list
Close selectedClose the modalstate = dismissed
Request rejectedPreserve current statestate = unchanged

Endpoint Resources

Unavailable Location

PUT 

v3/location/search/unavailable

Returns the unavailable location state for the selected search context.

Select Location

PATCH 

v3/location/show/{location-id}

Selects a location and updates the current page based on the selected flow context.