What to do before adding a computation in a mobile module

  1. Determine the score for each answer.
  2. Determine the calculation of the scores in Computations JavaScript screen.
  3. Determine how the score will be displayed.
    Give advice where needed by using 'Professional only' option of the text block (paragraph, info, highlighted, tip or quote).The practitioner sees a score, based on the client's answers.

    The therapist sees a score, based on the client's answers.


Add a computation (calculation):

  1. After logging into the CMS, choose to create or edit a mobile module (Topic)
  2. Create or edit a question with radio buttons (only one choice), checkboxes (multiple choice) or a slider.
  3. Activate the slider 'Use in computation' in the multiple choice field of the radio button (top right).
  4. After the slider is activated, an extra fields appears in which you can enter:
    - a unique name to identify the field.
    - values for each answer.
    The editor adds the values of the answers.
  5. Click on "Done Editing". Next, you click on "Computation' in the menu.
  6. You can now create the computation.
    To do this you use javascript.
    The explanation of creating the computation in javascript can be found on the support page 'How to create a computation'.
    Editor defines the computation in the edit computation view.
  7. In this case, if you click on 'defined computation', you will see the name of the computation. In this example it is 'computation:totalscore'. You should add the 'Defined Computation' later via the menu item 'Topic'. 



Display the computation score for the professionals

  1. Navigate back to "Topic" where the field with the values was created.
  2. Insert a textblock. This can be a paragraph, info, highlighted, tip or quote.
  3. Activate the 'Professional only' slider in edit mode.
  4. Add the name of the corresponding computation so that the score can be displayed. Write '${insert_name_of_defined_computation}' in order to display the score. See the screenshot below for an example:
  5. You can add information or advice about the score for the professionals if that is relevant (see screenshot above).
Be aware that the score of a computation is only visible for professionals and not for clients.