capabilities.work

Deploy Bot

A 3-step recipe with Medplum. We can help you get access.

Recipe · 3 steps

Deploy Bot

with Medplum · Healthcare Interoperability Operations

Create a Bot and a Subscription that invokes it on matching changes.

  1. Create a Bot resource carrying the supplied name and source code. Medplum returns the persisted resource including the server assigned id.
  2. Create a Subscription whose rest-hook channel targets the new Bot so that resources matching the criteria invoke it.
  3. Read the newly created Subscription back by id to confirm it persisted and is active.
What you'll need to have ready
  • botName: A human readable name for the Bot.
  • botCode: The TypeScript or JavaScript source code body for the Bot.
  • subscriptionCriteria: A FHIR search string identifying which resource changes trigger the Bot (e.g. "Patient" or "Observation?status=final").
For your developer

Arazzo workflow medplum:deploy-bot, 3 operations: createResource → createResource → readResource. Specs on APIs.io.