CamCOPS
CamCOPS – Task elements
Back to Documentation
www.camcops.org/documentation/task_elements.html

Creating tasks

Tasks on the tablet are written in Javascript. Typically, one of two methods are used:

  1. Simple tasks use a Questionnaire object and its elements (described below) to capture user responses.
  2. Complex tasks use a webview and HTML/Javascript combinations to create arbitrarily complex animations. Third-party libraries can be used; for example, the Raphaël library is an easy way to create animations.

Questionnaire elements

Programmers can embed arbitrary logic in a task. Several elements are available.

Display

These elements are primarily for static display (though, for example, the programmer can manipulate the contents of static text dynamically).

User input

Layout

These elements are simply for layout: