Skip to main content

Doctor Details


The Doctor Details screen displays doctor profile data and availability for a given doctor.

This screen is part of the doctor selection and booking flow.

This screen includes:

  • Doctor header — Image, name, specialty, rating, review count.
  • Date selector — Available booking dates.
  • Details tab — Experience and languages.
  • About tab — Biography, education, license.
  • Clinics tab — Clinic list.
  • Reviews tab — Patient reviews.

Workflow

  1. From the doctor search results or an existing booking context, the client provides a valid doctorId.
  2. The SDK requests doctor profile, availability, clinics, and reviews for the specified doctorId.
  3. The Doctor details screen renders the header, date selector, and default tab after a successful response.

Validations

ConditionApp behaviorSDK output
Valid authenticated sessionRender screenSuccessful response
Missing or invalid sessionBlock renderingAuthorization error
Valid doctorIdDisplay profile dataResponse with doctor details
Invalid doctorIdDisplay error stateError response
Availability presentEnable date selectionAvailability entries returned
No availabilityDisable date selectionEmpty availability set
Selected date validAllow continuationValid selection
Selected date invalidBlock selectionValidation error
Clinics availableRender Clinics tabClinic data returned
Reviews availableRender Reviews tabReview data returned

Actions

ConditionApp behaviorSDK output
Screen loadsRequest doctor detailsRequest sent with doctorId
Response succeedsRender dataResponse payload
Date selectedUpdate selection stateLocal state update
Tab selectedRender selected tabNo request
Clinic selectedNavigate to clinic contextNavigation action
Request failsDisplay error stateError response