Reference

Medplum

Medplum is the open source healthcare developer platform that helps you build, test, and deliver any healthcare product or service.

Medplum is the open source healthcare developer platform that helps you build, test, and deliver any healthcare product or service.

Category: EHR Integrations. Adds 13 actions and 2 webhooks to a care flow.

What to configure

Set these once, on the extension in Awell Studio. An action fails at run time if a required setting is missing.

SettingRequiredNotes
Base URLNoOptional custom base URL for Medplum server (e.g., https://api.medplum.com/). Leave empty to use default.
Client IDYesUsed to authenticate with Medplum Stored as a secret.
Client secretYesUsed to authenticate with Medplum Stored as a secret.

Actions

Medplum adds these 13 actions to a care flow. Add one to a step, then fill in its inputs.

Add side effect

Add side effect to Medication Request

InputTypeRequiredDescription
The ID of the medication request you want to link the side effec tostringYes
Side effectstringYes

Create calculation observation

Create a calculation observation in Medplum

InputTypeRequiredDescription
Patient IDstringYesThe identifier of the patient in Medplum to assign the response to
Questionnaire response IDstringNoThe identifier of the questionnaire response you want to link the calculation result to

Returns:

Data pointType
observationIdstring

Create patient

Create a patient in Medplum

InputTypeRequiredDescription
First namestringNo
Last namestringNo
Mobile phonestringNo
EmailstringNo
Birth datedateNo
GenderstringNoValid values are "male", "female", "other", "unknown"
AddressstringNo
CitystringNo
StatestringNo
CountrystringNo
Postal codestringNo

Returns:

Data pointType
patientIdstring

Find or create resource

Find or create any FHIR resource in Medplum. Optionally search for existing resources by type and identifier before creating. Supports single resources or FHIR Bundles (transaction/batch) for creating multiple resources atomically.

InputTypeRequiredDescription
Resource JSONjsonYesFHIR resource or Bundle as JSON. Supports single resources (e.g., Patient, Observation) or FHIR Bundles (transaction/batch) for creating multiple resources.
Search Resource TypestringNoOptional: FHIR resource type to search for (e.g., Patient, Observation). If provided along with Search Identifier, the action will search for existing resources before creating a new one.
Search IdentifierstringNoOptional: Identifier value to search for (e.g., MRN, SSN). If provided along with Search Resource Type, the action will search for existing resources with this identifier before creating a new one.

Returns:

Data pointType
bundleIdstring
bundleTypestring
resourceIdstring
resourceIdsstring
resourcesCreatedjson
resourceTypestring
wasResourceFoundboolean

Create service request

Create a service request in Medplum

InputTypeRequiredDescription
Patient IDstringYesID of the patient in Medplum
StatusstringYesThe status of the order One of: draft, active, on-hold, revoked, completed, entered-in-error, unknown.
Mobile phonestringYesWhether the request is a proposal, plan, an original order or a reflex order. One of: proposal, plan, directive, order, original-order, reflex-order, filler-order, instance-order, option.
PrioritystringNoThe priority of the order One of: routine, urgent, asap, stat.

Returns:

Data pointType
serviceRequestIdstring

Create task

Create a Task in Medplum

InputTypeRequiredDescription
Patient IDstringYesID of the patient in Medplum the task is for
Task namestringYesBriefly describes what the task involves
Description nametextNoHuman-readable explanation of task
StatusstringYesThe status of the task One of: draft, requested, received, accepted, rejected, ready, cancelled, in-progress, on-hold, failed, completed, entered-in-error.
IntentstringYesIndicates the "level" of actionability associated with the Task. One of: unknown, proposal, plan, order, original-order, reflex-order, filler-order, instance-order, option.
PrioritystringNoThe priority of the task One of: routine, urgent, asap, stat.
Due datedateNo
Performer typestringNoIndicate which role can/should perform this task

Returns:

Data pointType
taskIdstring

Execute Bot

Execute a Medplum Bot

InputTypeRequiredDescription
Bot IDstringYesYou can find the id of your Bot by clicking on the Details tab of the Bot resource in the Medplum app
BodyjsonNoData in JSON format you would like to pass to the Bot

Returns:

Data pointType
datastring
jsonDatajson

Get appointment

Retrieve appointment details from Medplum

This action can be previewed in Studio before you publish.

InputTypeRequiredDescription
Appointment IDstringYesThe identifier of the appointment in Medplum

Returns:

Data pointType
appointmentDatajson

Get medication request

Retrieve medication request details from Medplum

This action can be previewed in Studio before you publish.

InputTypeRequiredDescription
Resource IDstringYesThe resource ID of the MedicationRequest in Medplum

Returns:

Data pointType
dosageInstructionsstring
intentstring
medicationDisplaystring
medicationRequestjson
patientIdstring
prioritystring
statusstring

Get patient

Retrieve patient details from Medplum

This action can be previewed in Studio before you publish.

InputTypeRequiredDescription
Patient IDstringYesThe identifier of the patient in Medplum

Returns:

Data pointType
patientDatajson
patientDobdate
patientFirstNamestring
patientGenderstring
patientLastNamestring

Get service request

Retrieve service request details from Medplum

This action can be previewed in Studio before you publish.

InputTypeRequiredDescription
Resource IDstringYesThe resource ID of the ServiceRequest in Medplum

Returns:

Data pointType
intentstring
patientIdstring
prioritystring
serviceRequestResourcejson
statusstring

Search patient

Search for patients in Medplum using parameters

This action can be previewed in Studio before you publish.

InputTypeRequiredDescription
Search ParameterstringYesFHIR search parameter (e.g., "identifier", "name", "birthdate")
Search ValuestringYesValue to search for (e.g., "12345" for identifier)

Returns:

Data pointType
patientDatajson
searchResultsjson

Submit questionnaire response

Creates a questionnaire response in Medplum for the latest submitted form in the current step

InputTypeRequiredDescription
Patient IDstringYesThe identifier of the patient in Medplum to assign the response to

Returns:

Data pointType
questionnnaireResponseIdstring

Webhooks

Medplum can send these 2 events into Awell, where each one can start a care flow or move a patient along. Point the webhook at the URL Studio shows you when you enable it.

observationCreated

Payload:

Data pointType
observationjson
observationIdstring

patientCreated

Payload:

Data pointType
patientIdstring

Setup and notes

Medplum is the open source healthcare developer platform that helps you build, test, and deliver any healthcare product or service.

Extension settings

The following settings are required to configure the Medplum extension:

  • **Client ID: Used to authenticate with Medplum's API (required)
  • Client Secret: Used to authenticate with Medplum's API (required)
  • Base URL**: Optional custom base URL for your Medplum server (e.g., https://api.medplum.com/). Leave empty to use the default Medplum server.

Where this page comes from

The settings, actions, inputs, outputs and webhooks above are generated from the extension's own code, at @awell-health/awell-extensions v2.1.159. They match what the platform actually does rather than a description of it.

Field-level detail also appears in Awell Studio when you configure the action. Something wrong or missing? Email support@awellhealth.com.

On this page