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
  • 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.