Automation through Bots | Medplum

Automation, and the ability to build highly automated, custom workflows is one of the primary use-cases of Medplum. Medplum automations are implemented via bots, which are lambdas that implement custom functions written by developers.

Bots are often linked with integrations and are one of the most utilized features of Medplum.

Examples

To get a sense of what bots are, it's useful to consider some examples. Below are examples of automations built using the bots framework.

Writing Bots

Bots are written in TypeScript using the Medplum SDK. Bots are then deployed into and hosted as part of the core application, much like AWS Lambdas. When the bot is invoked the bot code is executed.

Triggering Bots

Bots can be triggered the following ways:

A detailed guide on these scenarios can be found in our bots tutorials.

FHIR Resources

Resource App Link Create New API Documentation
Bot View All Create New CLI
Subscription View All Create New API
Questionnaire View All Create New API
QuestionnaireResponse View All Created programmatically API
AuditEvent View All Created automatically API

System Diagram

This diagram shows how bots fit into the overall system architecture.

Demos and Reference Material