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.
| Module | Purpose |
|---|---|
| User Management | Control login, authentication, MFA, and session transitions. |
| Appointments | Display live appointment data, status updates, and session controls. |
| Other Tools | Provide 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.
| Event | SDK Response | Result |
|---|---|---|
| User signs in | Set session context | Unlock restricted screens. |
| Session expires | Clear session state | Redirect to login. |
/doctor/* route matches | Render embedded screen | Display the matching UI based on context. |
| User triggers an action | Execute metadata-defined behavior | Run navigation, open a popup, or perform validation. |
| Appointment data changes | Refresh current view | Update 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.