UCL WIKI

UCL Logo
Page tree

Versions Compared

Key

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

...

  _pregnancy from 1 while (_pregnancy <= qc_A10_b) && (_pregnancy < 7)

Example 2 Questionnaire:

...

This version of a loop does not rely on the value given in any previous question, but states that the questions are to be filled in up to five times:

Questionnaire layout:

Image Removed

Archivist view (alspac_08_yayf):

Image Removed

The loop l_friends describes the original questionnaire's requirement to fill in details about 5 friends or less. Therefore the loop runs while the value '_friend' is less than 6. We can see this represented in the loop logic:

     _friend from 1 while _friend < 6

Example 3 Questionnaire: SWS Obstetric Form

Sometimes a loop is used where we cannot use a Question Grid, because the group of questions has no overarching text - an essential part of a question grid. In this example a start and and end value has been added, as there is a limited number of rows which can be completed, the Loop While option is not needed in this case. Currently the Archivist view converts the Start Value and End value into logic incorrectly, in this example the logic should be   _children from 1 while _children <= 3. 

Questionnaire layout:

Image RemovedImage Added

Archivist Build / Constructs:

Image Added

Archivist view (swsnshd_365_clinicsmsc):

Image RemovedImage Added