surveys-standards

Survey Description Format

Goals

The purpose of this format is to describe a survey and it’s element in order to create documentation and facilitate survey maintenance and migration between legacy influenzanet platform and the new system. It’s not as precise as a technical implementation for a survey engine (where a lot of technical details are specified).

Structure

A survey is defined as a set of Questions.

Question

Question is a the main element of a survey structure. One question contains textual fields to describe the expected data to be collected.

Common fields:

For type in ‘text’, ‘date’:

For type in ‘single_choice’, ‘multiple_choice’, ‘matrix’:

For ‘matrix’ questions

Question types

Rules

Rules are textual descriptions of conditions to apply to this questions (the runtime logic).

To facilitate reading and enable some check some syntax can be applied :

Question name and response can be used together to refer to another question :

To sum up :

Keys in options list are only to be used as local identifier (like database id)

Define possible response for a question input element (single, multiple, )

Fields:

Extra Field: Extra field (aka “open field”) was a way to implement sub question attached to an input element (like a checkbox) to enable data enter of an extra information. Common usage was the “Other” field. It was not presented as a sub question but as a extra input alongside the checkbox. It was implemented directly in the question as an optional extra input in the old model. The description refers to the extra element as a question itself to avoid this exception in the description model. The “extra” field allow to link both questions with the data_name of this sub question. This description doesn’t fix how this kind of field should be presented in a survey implementation.

Matrix rows/columns

Fields:

Comment

Each comment field can be a string or an array of string (each will be visible as separated block, in order)