Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

Table of Contents
excludeRelated articles

...

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

You can choose to get the tasks based on Choose the interval selected in this field. This field supports 5 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.

...

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

These categories are case sensitive.

...

Update Status

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

...

Create

Delete

...