Links

Workflow Engine

A workflow engine designed to orchestrate and automate healthcare processes

Workflow Engine ComponentsOverview

The Aidbox workflow engine is a core module of the Aidbox FHIR backend which allows to define and execute custom business logic based on the data state and events in Aidbox.
Having a workflow engine tightly integrated with FHIR server offers numerous benefits for healthcare organizations seeking to optimize their processes and improve patient care. Here are some key advantages:
  1. 1.
    Seamless data access and manipulation: With direct access to FHIR resources and operations, workflows can easily read, create, update, and delete healthcare data without the need for complex data integration or mapping.
  2. 2.
    Real-time event processing: The event-driven architecture allows the workflow engine to respond immediately to changes in FHIR data, enabling rapid adaptation and reaction to various healthcare scenarios.
  3. 3.
    Simplified maintenance: Reduces operational complexity and resource requirements by consolidating workflow management and FHIR data processing within a single server.
Workflow Engine allows implementing both simple scenarios using predefined tasks and services with Aidbox Configuration or building applications of any complexity using provided API.

Basic Concepts

Workflow Engine Components

Task and Workflow

Task and Workflow are two basic concepts of Workflow Engines. Both a managed through API which is exposed by Aidbox.
Tasks are the simplest building block, which is responsible for performing business actions. Aidbox provides a number of tasks from the box, or they could be implemented outside of Aidbox on any programming language using SDK or API.
For the more complex application when a simple granular task is not enough, it is necessary to build a workflow. Workflow is a series of tasks that must be completed in a specific order and within a defined time frame to achieve a specific outcome.

Task Executor

Task Executor a responsible for executing the logic behind a task. For predefined tasks, they are run within Aidbox, and custom task executors could be implemented in any programming language using API or SDK.

Workflow Executor

Workflow Executor a responsible for making decisions about the next steps in a workflow based on predefined rules, conditions, or logic. Workflow logic could be implemented using Workflow Engine SDK

Services

Workflow Engine Services are responsible for starting tasks or workflow.
Subscription Trigger Service - allows starting task or workflow, when a certain event happens in aidbox.
For example: whenever an Observation resource with a value of blood pressure above some threshold is created in Aidbox - Subscription Trigger will start a Task that creates Appointment resource with reference for Observation in the `reason` field.
Scheduler Service - allows starting regular scheduled tasks or workflow.
To monitor the current state of tasks, workflow, and services Workflow Engine provides UI inside the Aidbox console. It's also possible to use API to implement your own user interface.

Tutorials

Last modified 2mo ago