Skip to main content

App Behavior


Learn how the Doctor App SDK manages runtime behavior, including session flow, screen rendering, and context-driven transitions that connect user actions to platform logic.


What the Doctor App SDK Does

These core capabilities define how the SDK manages the app at runtime.

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

The SDK handles these behaviors automatically after initialization.


Core Functional Modules

Each module governs a major feature area of the Doctor App.
Use these links to review their specific behavior and integration flow.

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

Modules share the same runtime context so state and permissions remain consistent across screens.


Runtime Event Flow

This table shows how the SDK responds to user actions and session changes.

EventSDK ResponseResult
User signs inSet session contextUnlock restricted screens.
Session expiresClear session stateRedirect to login.
/doctor/* route matchesRender embedded screenDisplay the matching UI based on context.
User triggers an actionExecute metadata-defined behaviorRun navigation, open a popup, or perform validation.
Appointment data changesRefresh current viewUpdate visible content automatically.

Use this flow to verify that your integration reacts correctly to state and routing changes.


Architecture

This diagram illustrates the interaction between your host app and the SDK runtime.


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

The SDK core mediates between your UI and backend configuration to keep screen behavior synchronized with session and role rules.