The questions (or even whole sections) of the assessment can be made conditional. That means that the question/section is dependent on an answer outcome before it will show up.
Conditions used in the assessment are written in an expression format. Conditions state the question which it is dependent on as ‘answers.questionid’ and the answer-id it is dependent on. The answer-id has different formatting in the conditional expression depending on the answer type(see below).
Conditions based on answers from a “Mapped” question will look like this:
answers.org_type == "other"
Conditions based on answers from a “Multiple” question will look like this:
"professional_indemnity" in answers.liability_insurance
Conditions based on answers from a “bool” question will look like this:
Note for “bool” yes = answers.questionid , no = not answers.questionid
answers.iso_bus_con
Changing conditionality requires assistance from the Rizikon Support team as the scoring algorithm will need updating. In order to do so though, we need to have all the essential information needed. The most efficient way would be to include all of the changes to the conditionals in the Changes Tracker table - see example below.
Example change tracker table:
Change ref | File | Changes made | Extra work required |
1 | answers.csv | Changed answer_id ‘dates’ | Update report |
2 | questions.csv | Changed question_id ‘company_details’ from mapped to multiple | Update report |
3 | questions.csv | Added new question questionid (5.2.1) to come up if 5.2 is YES | Need scoring to be added No - Fail |