For the complete documentation index, see llms.txt. This page is also available as Markdown.

How to Create Automations

Automations enable you to instantly trigger another action based on predefined conditions.

To set up an automation, select "Automations" from the vertical menu bar in Designer.

Click on "+New" in the upper right corner

Enter a title for your automation.

Next, select a Trigger Type: Event, Scheduled, or Recurring

Note: When you select a general trigger category with multiple options below, that trigger will fire when any of the below actions occur. For example, selecting "Data Type" will trigger for all of "Data Type Created, Data Type Updated, and Data Type Deleted."


Assessment Conditions

When building automations that evaluate a patient's assessment status, the following condition types are available under the Assessment condition group:

Condition
Description

IS_IN_PROGRESS

The patient's most recent assessment of the specified name is currently in progress

NOT_IN_PROGRESS

The patient has no assessment of the specified name currently in progress

IS_PARTIALLY_COMPLETED

The most recent assessment has been partially completed

IS_COMPLETED

The most recent assessment has been completed

IS_SUBMITTED

The most recent assessment has been submitted

IS_EXPIRED

The most recent assessment has expired

For status-based conditions (IS_PARTIALLY_COMPLETED, IS_COMPLETED, IS_SUBMITTED, IS_EXPIRED), the automation checks the newest assessment record for the patient with the specified name.


Date Conditions

When a condition is based on a date or date-time field — such as the patient's Date of Birth, or a date/datetime CDT field — a set of date-specific comparison operators is available:

Operator
Description

Is earlier than

Field value is strictly before the comparison date

Is on or earlier than

Field value is on or before the comparison date

Is later than

Field value is strictly after the comparison date

Is on or later than

Field value is on or after the comparison date

These date operators replace the generic Less Than / Greater Than operators for date and date-time fields.

Note: Equal and Not Equal are available for date fields but not for datetime fields.

Compare To

After selecting a date operator, a Compare to selector appears with three options:

  • Specific date — enter a fixed calendar date. The automation always evaluates against that date.

  • Today — the field is compared to the current date at the moment the automation conditions are checked, in the patient's timezone. Use this to check whether a date is in the past, today, or in the future.

  • Relative — the field is compared to a calculated date offset from today. Three additional inputs appear:

    • Amount — a non-negative integer (e.g., 18)

    • Unit — Days, Weeks, Months, or Years

    • Direction — Ago (past) or From now (future)

Example: To trigger an automation when a patient's Date of Birth indicates they are more than 18 years old, set the condition to Date of Birth → Is earlier than → Relative → 18 / Years / Ago.

Example: To trigger an automation when a CDT visit date falls within the next 7 days, set the condition to visit_date → Is earlier than → Relative → 7 / Days / From now.

Which fields support date conditions?

  • Patient fields: Date of Birth supports date operators (and relative dates). Other patient fields use standard equality and string operators.

  • CDT fields: Any CDT field with type date or datetime uses date operators. For CDT fields linked to a Profile Data Type (PDT), date operators appear after the PDT field is selected, if that field is also a date/datetime type.

  • Relative dates are not available for multi-record CDT fields (CDTs with the Multiple flag enabled on the CDT field).

  • The ON (equal) operator is not available for datetime fields when using a relative comparison — use Is on or earlier than or Is on or later than instead.


Last updated

Was this helpful?