/
TASK TEMPLATE OBJECT

TASK TEMPLATE OBJECT

This is the main object that defines a specific action of a PROGRAM that must be completed by a CASE or PROFESSIONAL, or executed automatically by the system. It is basically a container of activities assigned to a CASE or PROFESSIONAL, and which are are supposed to be completed at a specific date/time as a block.

TASK TEMPLATE PROPERTIES

PROPERTYNAMETYPEDESCRIPTIONCOMMENTS
IDIdIntegerLocal Identifier of the TASK TEMPLATE

A unique identifier local to the DB instance. TASK TEMPLATES exported to another instance will not share the same ID.

REFReference
TASK TEMPLATE reference

 This value has been designed as a Universal Unique Identifier (UUID) to allow sharing TASK TEMPLATES with other instances.

Note that different versions of the same TASK TEMPLATE share the same REF value, and only changes the #TASK_TEMPL:VERSION value

VERSIONVersionDATE

Can have two values:

  • NULL if the TASK TEMPLATE is a DRAFT version and it is not published yet
  • UTC Date: Value assigned when a TASK TEMPLATE is published.

CODETask CodeSTRINGTask Code assigned to the TASK TEMPLATE
TYPEType
see: TASK TYPESThe treatment of TASKS does not depend in the TASK TYPE value. It is used only for presentation purposes.
NAMENameSTRINGName of the TASK TEMPLATE
DESCDescriptionSTRINGDescription of the TASK TEMPLATE
OWNEROwnerTEAM OBJECTTEAM owner of this TASKThis property only has a non NULL value when the TASK TEMPLATE is part of a library of objects and can be shared by multiple PROGRAMs
MONITOREDMonitoredBOOLIndicates if TASKs generated form this TASK TEMPLATE should be monitoredUsed for statistical purposes
IMAGEImageLIBRARY RESOURCE OBJECTImage to be displayed as background of the TASK when it is displayed in the client interface
CREATION_DATECreatedDATEDate of creation of the TASK TEMPLATE
MODIFICATION_DATEModifiedDATEDate of last modification of the TASK TEMPLATE
PUBLISH_DATEPublish DateDATE

Publish date of a TASK TEMPLATE version (or NULL if it has not been published yet)


ACTIVITIESActivitiesList of ACTIVITY TEMPLATE OBJECTList of ACTIVITY TEMPLATE OBJECTs included in this TASK TEMPLATE
SYNC_DATESync DateDATE

Used in TASK TEMPLATEs imported from another instance. Is the date of the last synchronization (update) of the local TASK TEMPLATE


SOURCESourceSOURCEUsed in TASK TEMPLATES imported from another instance. Provides the information about the procedence
DOCUMENTDocumentINTEGERNOT USED
MESSAGEMessageINTEGERNOT USED
MINUTES
INTEGERNOT USED
UNIQUE
BOOLNOT USED
HIDDEN
INTEGERNOT USED
EXTRACTION
TEXTNOT USED (Replaced by SETTINGS)

TASK TYPES

The following TASK types (except for COM) can be applied to TASKS or isolated ACTIVITIES

VALUEDESCRIPTION
COMGeneric compound task (contains multiple ACTIVITIES)
CUEQuestionnaire (TASK with only one questionnaire, as opposed to COM, which contains multiple activities)
DISDevice: Task intended to collect information from a device (e.g. a step counter, blood pressure...)
SYSSystem task: internal TASKS managed by the system and not visible for users (except those with role "Service")
REPReport
DOCDocument
EDU

Educational Task

Note that this type of TASK has a special behavior, as explained in EDUCATIONAL TASKS

CATEGORIES

Task categories are available under the code TASK.CATEGORY

WEB SERVICES

WSDESCRIPTION
library_program_task_action_list ()Returns a list of possible choices related with actions with the versions of a library_program tasks
library_program_task_delete ()Remove a task from a work plan. If the task is a Program Task and this is the last schedule, remove the Task.
library_program_task_get ()Returns details of one task of work plan with stage, program and protocol information.
library_program_task_list ()Returns list of tasks of work plan grouped by stage and sub-stage.
library_program_task_move ()Sets new order for tasks in stage of program.
library_program_task_role_list ()Returns list of possible roles for an activity(task).
workplan_get ()Returns details of one task's workplan, stage, day, trial_group, etc.
workplan_set ()Modifies details of one task's workplan, stage, day, trial_group, etc.
library_program_task_set ()Modifies details of the task template.
library_program_task_stage_list ()Returns list of stages depending on task id.
library_program_task_template_move ()Moves a template (activity or form) from one position to another position.
library_program_task_unlock_edit ()Returns details of one task of workplan with stage, program and protocol information.

Related content