dtoQuestionDefinition

QuestionDefinition is a single intake question to present to the customer. The questionnaire is a conditional tree flattened into an ordered list: each question_uuid appears exactly once, and a question with a non-empty conditions list is a follow-up that should only be shown once one of its conditions is satisfied.

  • conditions lists the parent answers that reveal this follow-up question; show it when ANY condition is satisfied. Empty for questions shown unconditionally.

    Properties: 2
  • InputType is the UI input control a questionnaire question should render.

    values
    INPUT_TYPE_UNKNOWNINPUT_TYPE_RADIOINPUT_TYPE_DROPDOWNINPUT_TYPE_CHECKBOXINPUT_TYPE_TEXTINPUT_TYPE_DATE
  • Properties: 2
  • question_text is the prompt to show above the options. It is empty when the question carries a single statement to accept: the option's display_text is the wording the customer reads, and there is no heading.

  • question_uuid is a stable id; pass it back in Create. A set of statements the customer has to accept in full is published one statement per question, each under the set's id and the statement's value joined by ":".

  • required is true for questions shown unconditionally; answer them on every submission. Conditional follow-ups have required = false: answer them when one of their conditions is met.