Skip to main content

Overview


The Patient App enables partners to integrate patient medical services into their applications.

Client applications integrate using one of two models.

Integration ModelDescription
Air Doctor SDKRenders workflow-driven UI inside the host application using platform runtime responses.
Open APIThe partner application implements its own client and communicates directly with Air Doctor platform endpoints.

Both models use the same platform services and workflow engine. The difference lies in how UI rendering and workflow orchestration are implemented.


Integration Levels

Air Doctor supports several integration levels that determine how much responsibility the partner application assumes for UI rendering and workflow orchestration.

Lower levels rely on hosted Air Doctor experiences, while higher levels allow deeper customization and full client implementations.

For a complete comparison of integration approaches, see:
Supported Integration Levels


Integration Architecture

Patient-facing integrations divide responsibilities between the host application, the SDK runtime, and the Air Doctor platform.

Integration Architecture
┌──────────────────────────────────────────────┐
│               Host Application               │
│                                              │
│ App shell • Authentication bootstrap         │
│ Navigation container • Session storage       │
│ Analytics • UI configuration                 │
└───────────────────────┬──────────────────────┘
                      │
                      │ SDK integration
                      ▼
┌──────────────────────────────────────────────┐
│                Air Doctor SDK                │
│                                              │
│ Runtime interpretation • Action dispatch     │
│ State synchronization • UI component binding │
└───────────────────────┬──────────────────────┘
                      │
                      │ Runtime API
                      ▼
┌──────────────────────────────────────────────┐
│             Air Doctor Platform              │
│                                              │
│ Workflow engine • Permission resolution      │
│ Validation rules • Screen definitions        │
│ Appointment state transitions                │
└──────────────────────────────────────────────┘

Responsibility Model

The platform, SDK, and host application perform distinct roles during runtime execution.

ComponentResponsibilities
Air Doctor PlatformExecutes workflow logic, resolves permissions, validates input, and determines valid workflow transitions.
Air Doctor SDKProcesses runtime responses, dispatches workflow actions, synchronizes state, and binds runtime definitions to UI components.
Host ApplicationProvides authentication context, manages session tokens, hosts navigation containers, and supplies configuration such as analytics and UI customization.

Client applications should treat runtime responses as the canonical representation of workflow state.


Runtime Model

The Patient App uses a server-driven runtime model.

The platform determines which screens, actions, and validation rules apply to the current patient session.
The SDK processes runtime responses and renders the interface inside the host application.

Runtime model
  • Platform → returns workflow state, screen definitions, available actions, and validation rules
  • SDK → processes runtime responses and binds them to UI components
  • Host application → mounts SDK screens and provides session and navigation context

Runtime Lifecycle

Runtime execution progresses through several stages.

StageSDK BehaviorResult
Session bootstrapInitialize runtime client with patient session contextAuthenticated runtime session established
Screen requestRequest runtime definition for the active routeScreen metadata becomes available
Screen renderBind runtime schema to UI componentsPatient-visible interface renders
Action submissionDispatch selected action to the platformWorkflow transition request executes
Validation responseMap validation errors returned by the platform to UI stateErrors appear in the interface
Workflow transitionRefresh runtime stateUpdated workflow state renders
Session invalidationClear runtime stateHost application redirects to authentication

Platform Characteristics

The Patient App platform has several architectural characteristics that influence integration behavior.

CharacteristicDescription
Server-driven UIScreen structure and available actions are defined by the platform and returned at runtime.
Platform-authoritative stateWorkflow transitions and booking state are controlled by the platform.
Action-based workflowsPatient interactions execute platform-defined runtime actions.
Permission-controlled UIAvailable screens and actions depend on patient eligibility and permissions.

Client applications must treat platform responses as the authoritative representation of workflow state.


Functional Domains

Patient-facing integrations operate across several platform domains.

DomainPurpose
Authentication and Session ManagementPatient identity verification and session lifecycle management
Appointments and Booking WorkflowsAppointment search, scheduling, and lifecycle transitions
Communication Modules**Messaging and telemedicine consultations
Permissions and EligibilityCoverage validation and access control enforcement
Localization and Content DeliveryLanguage selection and localized content presentation