Interface Question

interface Question {
    id: string;
    type:
        | "file"
        | "audio"
        | "image"
        | "text"
        | "blob"
        | "choice"
        | "quantity"
        | "group";
    required?: boolean;
    static?: boolean;
    data?: boolean;
    isarray?: boolean;
    section?: "questions"
    | "variables"
    | "weights";
    qtext?: Label;
    dtext?: Label;
    domains?: [Domain, ...Domain[]];
    dimensions?: [Dimension, ...Dimension[]];
    group?: [Question, ...Question[]];
    attributes?: Attributes;
    attributesOrder?: string[];
    parameters?: Parameters;
    parametersOrder?: string[];
}

Properties

id: string

Question identifier

type:
    | "file"
    | "audio"
    | "image"
    | "text"
    | "blob"
    | "choice"
    | "quantity"
    | "group"

Question type

required?: boolean

Is an answer mandatory?

static?: boolean

Experimental attribute for static variables in new engine

data?: boolean

Is the question included in the data export/analysis?

isarray?: boolean

Is the question an array question?

section?: "questions" | "variables" | "weights"

The section of the DSC the question was defined in

qtext?: Label
dtext?: Label
domains?: [Domain, ...Domain[]]

1

dimensions?: [Dimension, ...Dimension[]]

1

group?: [Question, ...Question[]]

1

attributes?: Attributes
attributesOrder?: string[]

The order the attributes were defined in the DSC. Only present if more than one attribute was defined.

parameters?: Parameters
parametersOrder?: string[]

The order the parameters were defined in the DSC. Only present if more than one parameter was defined.