Skip to main content

App Behavior


Understand how the Doctor App SDK drives UI behavior at runtime—handling session flow, screens, and context-driven transitions. This page helps you align your integration with platform logic.


What the Doctor App SDK Does

  • Render screens dynamically based on session and route state.
  • Manage authentication, role checks, and visibility rules.
  • Apply server-defined UI behavior—such as enabling buttons or redirecting flows.
  • Reflect updates to appointments in real time.

Core Functional Modules

ModulePurpose
User ManagementControl login, authentication, MFA, and session transitions.
AppointmentsDisplay live appointment data, status updates, and session controls.
Other ToolsExpose localization, chat, video, and role-dependent utilities.

Runtime Event Flow

EventSDK ResponseResult
User signs inSet session contextUnlock restricted screens
Session expiresClear session stateRedirect to login
/doctor/* route matchesRender embedded screenShow UI based on context
User triggers an actionExecute metadata-defined behaviorTrigger navigation, popup, or verify
Appointment data changesRefresh current viewDisplay updated content automatically

Architecture

The diagram shows how your client app interacts with the Doctor App SDK runtime:

+----------------------+     SDK-Managed Rendering     +-------------------------+
| |----------------------------->| |
| Your Host App | | Doctor App SDK Core |
| |<-----------------------------| |
+----------------------+ UI Events, State +-------------------------+
^ |
|<-------------------------------------------------------+
| Backend-Driven Rules (session, roles, config) |