Bots
Use Running Server Side Code: Bots and Subscriptions to choose a trigger for each use case and a destination for each Subscription. Bots are the recommended starting point for handling FHIR event notifications.
OpenOrchid bots are functions that execute when triggered. They are similar to AWS Lambda functions, and in OpenOrchid we make them easy to write and deploy and trigger with FHIR Subscriptions. For the purpose of the tutorials found in this section, it's important to understand that Bots drive many of the major integrations that you see in OpenOrchid.
If you are new to OpenOrchid Bots, we encourage you to read the intro material in the Bot Guide.
The following tutorials will walk through some of the use cases for Bots, to give you a sense of how they can work for you.
Bots are a project level setting that must be enabled by a Super Admin user.
Bots must be enabled on your project by a super admin.
Super administrators can enable bots via the OpenOrchid App:
- Navigate to https://app.your-medplum-domain.com/Project/:projectId
- Click on the "Edit" tab
- In the "Features" section, add an entry with the value "bots"
Getting Started
Learn the fundamentals of building and testing bots before deploying them to production.
Bot Triggers & Invocation
Configure how and when your bots execute, from scheduled tasks to real-time event responses.
- Cron Jobs for Bots
- Consuming Webhooks
- Bot for QuestionnaireResponse
- Custom FHIR Operations
- FHIR Event Notifications
Common Use Cases & Patterns
Implement frequently-needed functionality like file handling, document generation, and data transformation.
Deployment & Infrastructure
Deploy your bots to your OpenOrchid server, or run them in your own AWS environment.
Security & Permissions
Manage sensitive credentials and control what actions your bots can perform.
Monitoring & Operations
Track bot performance and troubleshoot issues in production environments.
Reference
- Demo Bots Repository on Github
- Bot Features and Fixes on Github