Skip to main content

Doctor Details


The Doctor Details screen renders doctor profile data and availability for a given doctorId. It is part of the doctor selection and booking flow.

This screen includes:

  • Doctor header - Image, name, specialty, rating, review count.
  • Date selector - Availability entries from backend.
  • Details tab - Experience, language(s).
  • About tab - Biography, education, license identifier.
  • Clinics tab - Clinic list with identifier.
  • Reviews tab - Review list.

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

ConditionRendering Rule
Valid authenticated sessionRender screen.
Missing or invalid sessionReturn authorization error. Do not render content.
doctorId existsRender profile data.
doctorId invalidRender error state.
Availability entries presentEnable selectable dates.
Availability entries emptyDisable date selection.
Selected date matches enabled entryAllow continuation.
Selected date not enabledReject selection.
Clinic identifiers validRender Clinics tab entries.
Review data presentRender Reviews tab.

Actions

TriggerResult
Screen loadExecute doctor details request.
Successful responseRender payload as received.
Date selectedUpdate local state with selected date.
Tab selectedRender corresponding tab section.
Clinic selectedNavigate using clinic identifier.
Backend errorPreserve state. Display error.