Doctor Page
Use Doctor Details to display doctor profile information, availability, clinics, and patient reviews.
Displayed sections and review pagination derive from the doctor-details response.
This screen includes:
| # | Element | Description |
|---|---|---|
| 1 | Doctor header | Displays doctor image, specialty, rating, and review count |
| 2 | Availability selector | Displays available booking dates |
| 3 | Details tab | Displays languages and experience |
| 4 | About tab | Displays biography, education, and licenses |
| 5 | Clinics tab | Displays clinic locations |
| 6 | Reviews tab | Displays patient reviews |
| 7 | Show more action | Loads additional reviews |
Workflow
- Open a doctor profile from search results or booking flow.
- Request doctor details.
- Render doctor profile and availability.
- Navigate between profile tabs.
- Select an available booking date when supported.
- Load additional reviews when requested.
- Continue to booking.
Validations
| Scenario | App Behavior | SDK Output |
|---|---|---|
| Session valid | Render doctor details | state = loaded |
| Session invalid | Block access | state = unauthenticated |
doctorId valid | Display profile information | doctor = available |
doctorId invalid | Display error state | error = invalid_doctor |
| Availability exists | Enable date selection | availability = available |
| Availability unavailable | Disable booking selection | availability = empty |
| Reviews available | Display Reviews tab | reviews = available |
| Additional reviews available | Enable pagination | reviews = pageable |
| Review list exhausted | Hide Show more action | reviews = complete |
Actions
| Scenario | App Behavior | SDK Output |
|---|---|---|
| Screen opened | Load doctor details | PUT /api/v3/doctor-details |
| Availability loaded | Render available dates | availability = loaded |
| Date selected | Update selected availability | date = selected |
| Tab selected | Render selected content | tab = updated |
| Show more selected | Load additional reviews | PATCH /api/v3/doctor-details/show-more |
| Status bar refreshed | Update doctor status information | PATCH /api/v3/doctor-details/update/status-bar |
| Booking selected | Continue booking flow | navigation = booking |
| Request rejected | Display error state | state = error |
Endpoint Resources
Doctor Page
PUT
v3/doctor-details
Displays information about a doctor.
Patch Review List
PATCH
v3/doctor-details/show-more
Loads the next page of doctor reviews.
Patch Review List
PATCH
v3/doctor-details/show-more
Loads next page of doctor reviews.
