Workflow Conditional "If" Elements

You can use the "If" element of the Workflow editor to evaluate patient data as you run a workflow, to determine how the workflow activities will function when the workflow is triggered for a specific patient. For example, a workflow can trigger a different word processing document, depending on whether a patient is at least 18 years old.

Conditional "If" Element vs Question Element - This topic discusses adding a conditional "If" element to a workflow to evaluate Edge Cloud data and choose the appropriate activities to run depending on the result. Alternately, if you want to evaluate data that is not in Edge Cloud, you can use the Question element to ask a yes/no question as the workflow runs, and choose which activities to run at that time.See "Workflow Yes/No Question Element" for details.

Click to OpenAdd a Conditional Element to a Workflow

Drag the "If" element from the Common Activities list onto your Workflow Activities list. An "Else" element is automatically added, directly below the "If".

Click to OpenSet Up the Conditional Element

Click to OpenOpen the Conditions Editor

Click the "If" element in the Workflow Activities list to select it, then click [...] to open the Conditions Editor window.

Click to OpenChoose the Data to Evaluate

Use the Left Properties section at the bottom of the window to choose the variable type you want to evaluate. First, select the variable type to work with, such as "Field", then select the properties for that variable, such as "Patient Age - Years". Your selected variable appears at the top of the window. Tell me more about variable types,,,

Click to OpenEnter the Value to Evaluate

Use the Right Properties section at the bottom of the window to enter the value, or response you are looking to evaluate. Usually, the appropriate Variable Type is already selected, according to the type of data you chose at the left side of the screen, and you only need to enter the details that you want evaluated. For example, if you have selected "Patient Age - Years" at the left, the right side of the screen defaults to the variable type "Integer", and all you have to do is enter the age you want to evaluate, such as "18". Your selected value appears at the top of the window. Tell me more about variable types,,,

Click to OpenSelect the Mathematical Operator

Click to OpenAdd / Remove Statements

Click New at the top of the Conditions Editor to add another statement to this "If" element, or click Delete to remove the selected statement. When your workflow is triggered, all statements must be satisfied before the "If" element is considered "true".

Click to OpenExit Conditions Editor

Click Ok at the bottom of the window to close the Conditions Editor and return to your Workflows editor.

Click to OpenEvaluating Treatment Chart List Responses - You can use responses from your Treatment Chart lists within a conditional element to evaluate a patient's newly-created treatment chart record. You might use this feature, for example, to send a "Poor Oral Hygiene" letter when the patient's treatment chart indicates a failing oral hygiene grade. For this to work properly, you must follow a few steps exactly.

  1. As you create the conditional statement, select any "@" variable type (or select the String variable type) in the Left Properties, and type the variable in the format @TX_[ColumnName], where [ColumnName] is the exact name of your treatment chart list

  2. You must trigger the workflow immediately after creating the treatment chart record. (You can do this with the Create Treatment Chart Entry workflow trigger, or with your Workflow Quick Actions.)

Click to OpenArrange Workflow Activities

In most cases, you must drag and drop items in the Workflow Activities list to be sure the appropriate activities will be completed, according to whether or not the "If" element has been satisfied.

Click to OpenTrue / False Activity Placement

If you want an activity to occur when the conditional statement is true, drag that activity directly onto the "If" element. The activity will then appear indented below the If. Likewise, if you want an activity to occur when the conditional statement is false, drag that activity directly onto the "Else" element. The activity will appear indented below the Else.

Click to OpenUnconditional Activity Placement

Activities that are not part of the conditional statement can be either above or below the "If / Else" statements, and will occur whenever the workflow is triggered. These activities are not indented.

Click to OpenActivity Placement Test

To be sure an activity is not part of the conditional statement, click the VCollapse arrows b

Click to OpenSave Changes

Click Save in your Quick Access toolbar or File ribbon bar (or press Ctrl+S on your keyboard) to save any changes you have made.