Filter
The SDK provides the Filter screen to define doctor search criteria and return filtered results. The integrator renders the filter screen and submits the selected filter model.
This screen includes:
- A visit type toggle
- Conditional visit options based on location
- A prescription filter
- A language list
- A date picker
- A sort selector
- A Reset action
- A View action
Workflow
Result Availability
Filter options render only when matching doctors exist for the selected visit type and location.
This sequence describes how the patient filters doctor results.
- Select Filter on the Doctor List screen.
- Select a visit type.
- Apply optional filters such as prescription, language, or date.
- Select a sorting option.
- Select View to apply filters and refresh results.
- Select Reset to restore the default filter model.
Validations
These rules define when filter options render and when submission is allowed.
| Scenario | App behavior | SDK output |
|---|---|---|
| No doctors support a visit type. | Do not render the option. | Option excluded from response. |
| Filter option produces zero matches. | Do not render the option. | Option excluded from response. |
| Cost data is unavailable. | Disable Cost sort. | Sort option marked unavailable. |
| No visit type selected. | Disable View. | Submission blocked. |
| Filter model produces no results. | Display empty state. | Return empty result set. |
Actions
These actions apply the filter model to the Doctor List query.
| Scenario | App behavior | SDK output |
|---|---|---|
| Select View. | Submit the filter model. | Return filtered doctor list. |
| Select Reset. | Clear selections. | Return default doctor list. |
| Switch visit type. | Update available options. | Return updated filter configuration. |
| Update filter option. | Update local filter model. | No response until submission. |
| Apply filters with no matches. | Display no-results state. | Return empty result set. |