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:
| # | Element | Description |
|---|---|---|
| 1 | Edit search modal | Lets the user update location and specialty. |
| 2 | Modal title | Displays Edit search. |
| 3 | Close action | Closes the modal. |
| 4 | Location field | Displays the selected search location. |
| 5 | Specialty field | Displays the selected specialty. |
| 6 | Empty results message | Explains that no doctors are available for the selected location. |
| 7 | Back to doctor list action | Returns to the doctor list. |
Workflow
- Open the edit search flow.
- Load the selected location and specialty.
- Check doctor availability for the selected search criteria.
- Display the unavailable location state when no doctors are available.
- Update the location or specialty, or select Back to doctor list.
Validations
| Scenario | App behavior | SDK output |
|---|---|---|
| Location missing | Block search update | error = location_required |
| Specialty missing | Block search update | error = specialty_required |
| No doctors available | Display unavailable location state | availability = unavailable |
| Doctors available | Return matching doctor results | availability = available |
| Request rejected | Display error state | status = 405 |
Actions
| Scenario | App behavior | SDK output |
|---|---|---|
| Unavailable location state opens | Load unavailable location screen | PUT /api/v3/location/search/unavailable |
| Location selected | Update the current flow context | PATCH /api/v3/location/show/{location-id} |
| Specialty selected | Update selected specialty | specialty = selected |
| Back to doctor list selected | Return to doctor list | navigation = doctor_list |
| Close selected | Close the modal | state = dismissed |
| Request rejected | Preserve current state | state = 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.
