Question
Questions represent the "question" being asked and the rules specific to how it should be presented to the user.
The Question Object
Attributes
questionIdstring:required The unique identifier of the question.
questionnaireIdstring:required The unique identifier of the questionnaire that the question belongs to.
questionTypestring:required
Identifies the type of responses the question supports. More information can be found in the Questionnaire Question Type Dictionary.
questionTextstring:required The question being asked.
questionSequencenumeric:required The order in which the question should be presented in relation to other questions belonging to the same questionnaire.
questionLevelnumeric:required Represents the "depth" of the question. A value of 1 represents a top-level question while a value of 2 or greater represents a follow-up question.
questionMinResponsesnumeric:required The minimum number of responses required to successfully respond to the question. 0 indicates no response required (i.e. an optional question).
questionMaxResponsesnumeric:required The maximum number of responses required to successfully respond to the question.
questionMinCharsAllowednumeric:optional The minimum number of characters required to successfully respond to the question. If the questionType has a value of strict, this value will be null.
questionMaxCharsAllowednumeric:optional The maximum number of characters required to successfully respond to the question. If the questionType has a value of strict, this value will be null.
parentQuestionIdstring:optional The unique identifier of the question directly linked to this question (upstream). A first follow-up question would have the primary questionId here, whereas a second follow-up question would have the first follow-up questionId here, and so on. This value will be null for top-level questions.
questionResponseslist of objects:required
A list of valid Questionnaire Question Response Objects. This list will be empty for questions that only support free-form responses.
Example
{
"questionId": "quesqu_afed4982e8134edfbd5ee85f12c3246c",
"questionnaireId": "quesna_de8d6957e1374ad7859329ff73b7d43e",
"questionType": "strict",
"questionText": "How many times in the past 12 months have you used tobacco products (like cigarettes, cigars, snuff, chew, electronic cigarettes)?",
"questionSequence": 1,
"questionLevel": 1,
"questionMinResponses": 1,
"questionMaxResponses": 1,
"questionResponseMinCharsAllowed": 0,
"questionResponseMaxCharsAllowed": 0,
"questionResponses": [
{
"responseId": "quesqr_a8549f8cf0e64cb3b3d2c48bd7e764ca",
"response": "Never",
"questionId": "quesqu_ad43bf224b3a4158a0333b54ed25a47f",
"followUpQuestions": []
},
{
"responseId": "quesqr_4f3f3b13e8ab406190248422681c24b7",
"response": "Once or Twice",
"questionId": "quesqu_ad43bf224b3a4158a0333b54ed25a47f",
"followUpQuestions": []
},
{
"responseId": "quesqr_77759930543d4fa6bf7caf34c95cb1fa",
"response": "Monthly",
"questionId": "quesqu_ad43bf224b3a4158a0333b54ed25a47f",
"followUpQuestions": []
},
{
"responseId": "quesqr_0051d21589da4f39991c78314f66ce9e",
"response": "Weekly",
"questionId": "quesqu_ad43bf224b3a4158a0333b54ed25a47f",
"followUpQuestions": []
},
{
"responseId": "quesqr_8829b3693fc74a23b52d7561eac5a8f6",
"response": "Daily or Almost Daily",
"questionId": "quesqu_ad43bf224b3a4158a0333b54ed25a47f",
"followUpQuestions": []
}
]
}Updated about 1 year ago

