Task Manager node

As an admin user, using the task manager node, you can fetch the tasks currently assigned to a patient or the tasks he/she has been assigned over the past week. You can also create new tasks for the patient or delete the tasks that you feel are not necessary.
You can also create flows that fetch the tasks based on the logged-in user’s request over a voice app or chatbot.

Task Manager node

The Task manager node will let you create, delete, update, and read the tasks of the patients.

Inputs

You can use the payload field in the node or payload through a function node. For function node, the object to send the payload is msg.payload.data

Action

The Task Manager node supports five action types:

  • Read/Get. Gets the tasks associated with the user.

  • Read/Get by category. Gets the tasks based on the category mentioned in the node.

  • Create. Create a new task record based on the payload

  • Update. Update an existing task record based on the payload

  • Delete. Deletes the tasks for the user based on the query.

Days

Choose the interval in this field. This field supports 6 predefined intervals.

  • Today. The tasks that are available today.

  • Tomorrow. The tasks available for tomorrow

  • Yesterday. The tasks that were available yesterday.

  • Next 7 days. The tasks that are available for the next 7 days.

  • Past 7 days. The tasks that were available for the past 7 days.

  • Past Hour. The tasks that were available for the past hour.

Include only open tasks

Checking this option will exclude any completed tasks and report only open tasks.

Organize tasks into categories

Checking this option will organize the tasks into their respective categories.

Example screenshot.

Output

The output from the node is available at the msg.payload.tasks object.

Read

Read action fetches the tasks of the user. You can pass the user id to the task manager node to get the tasks of that user.

Read by category

You can choose to fetch the tasks based on the categories specified in the category field.

There are five categories you can select from.

  • Survey

  • Perform Exercise

  • Simple Task

  • Take Medication

  • Data Collection

  • Flow Studio

These categories are case sensitive.

Update Status

Using this action, you can change a task's status as complete or not complete.

Create

Delete

Related articles