Skip to main content

Focusing Manager

The Focusing Manager is the central orchestration component of the Focusing module that coordinates all steps of the personalization workflow.

Responsibilities

1. Service Discovery

2. Workflow Orchestration

  1. Receives Focusing flows requests
  2. Retrieves raw ePI if needed
  3. Invokes Preprocessors in sequence
  4. Selects appropriate Lenses
  5. Calls LEE with p(ePI), IPS, PV
  6. Returns f(ePI) to requester

3. Data Management

  • Queries FHIR Server for resources
  • Coordinates with Connectors for external data
  • Manages preprocessor stacking (sequential execution)

4. Lens Selection

  • Determines which Lenses to apply
  • Considers patient context (IPS/PV)
  • Manages lens execution order

Architecture Position

Located in the Service Layer of FOSPS.

API Endpoints

Exposes OpenAPI documented endpoints for:

  • Initiating Focusing flows
  • Status and health checks
  • Configuration management

Integration Points

Stacking Logic

Manages Preprocessor stacking:

  • Executes preprocessors sequentially
  • Each preprocessor receives output of previous
  • Builds complete p(ePI) with all annotations