Custom Operations | Medplum

On this page

Medplum supports custom FHIR operations implemented via Bots. This allows you to define your own operations with custom business logic while following FHIR operation semantics.

Overview

Custom operations enable you to:

Quick Example

Custom operations are created by:

  1. Creating a Bot resource with your JavaScript implementation
  2. Creating an OperationDefinition resource that defines the operation's interface
  3. Linking them using a Medplum-specific extension

Once configured, operations can be invoked like any standard FHIR operation:

POST [base]/[ResourceType]/$my-operation

GET [base]/[ResourceType]/[id]/$my-operation

Full Documentation

For complete documentation on creating and using custom FHIR operations, see:

Custom FHIR Operations Guide

The full guide covers:

Related Documentation