diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ea1c679..b069d1e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -29,7 +29,7 @@ jobs: uses: actions/checkout@v4 with: repository: praekeltfoundation/flow_tester - ref: v0.4.2 + ref: v0.4.3 path: flow_tester ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} diff --git a/Onboarding/QA/flows/quiz-breastfeeding.md b/Onboarding/QA/flows/quiz-breastfeeding.md new file mode 100644 index 0000000..9038edd --- /dev/null +++ b/Onboarding/QA/flows/quiz-breastfeeding.md @@ -0,0 +1,771 @@ + + +```stack +trigger(on: "MESSAGE RECEIVED") when has_only_phrase(event.message.text.body, "breastfeeding") + +``` + +# Forms + +This journey consolidates the various form question types in a single journey. + +It will fetch the form specified by the configured slug from ContentRepo, and run the user through the questions with type validations. + +The values are set in the form. + +This journey writes the user's answers to the flow results. + +## Content fields + +This Journey does not write to any contact fields. Unless it's necessary for the particular implementation, it's best that this journey doesn't write any contact fields. + +## Flow results + +* `assessment_start` - writes the slug of the started assessment when the assessment run starts +* `question_num` - the number of the question being answered +* `answer` - the answer that the user chose +* `min` - the lower bound (minimum value that the number can be) +* `max` - the upper bound (maximum value that the number can be) +* `assessment_end` - writes the slug of the assessment when the assessment run ends +* `assessment_score`, the score that the user got for this run of the assessment +* `max_assessment_score`, the maximum score possible for this user for this run of the assessment + +## Substitution + +The journey uses substitution so the error messages are more specific. + {min} and {max} in the form are replaced with the minimum and maximum range values. + {current_year} and {lower_bound} in the form are replaced with current calendar year and lower bound valid year. + +## Connections to other Journeys + +This Journey does not link to any other Journeys + +## Explainer keywords + +"why", "wy", "wh", "explain", "expain", "eplain" + + + +| Key | Value | +| -------------------- | ------------------ | +| assessment_tag | breastfeeding_quiz | +| response_button_text | Next question | + +## Get Assessment + +We fetch the assessment as configured in the assessment_tag. At this point we initialise the following variables used throughout the Journey: + +* `questions`, the questions to be asked in the form +* `locale`, the locale of the form +* `question_num`, the current question number +* `score`, the total assessment score, used at the end to determine which page to show the user +* `keywords`, the keywords that will trigger the explainer text + +We also write the follwing flow results: + +* `assessment_start`, the assessment tag +* `locale`, the locale of the form + + + +```stack +card GetAssessment, then: CheckEnd do + log("Fetching assessment @config.items.assessment_tag") + + response = + get("https://content-repo-api-qa.prk-k8s.prd-p6t.org/api/v2/assessment/", + timeout: 5_000, + cache_ttl: 60_000, + query: [ + # TODO: Remove hard coding when flow tester gets support for dicts + ["tag", "breastfeeding_quiz"] + ], + headers: [ + ["content-type", "application/json"], + ["authorization", "Token @global.config.contentrepo_token"] + ] + ) + + assessment_data = response.body.results[0] + questions = assessment_data["questions"] + locale = assessment_data["locale"] + slug = assessment_data["slug"] + version = assessment_data["version"] + question_num = 0 + score = 0 + min = 0 + max = 0 + assertion = "" + get_today = today() + get_year = year(get_today) + range = 120 + max_score = 0 + skip_count = 0 + skip_threshold = assessment_data["skip_threshold"] + + # A user can respond with a keyword such as "why" or "explain" to + # know the reason why we asked a question. + # We store a list of possible keyword iterations to handle typos + keywords = ["why", "wy", "wh", "explain", "expain", "eplain"] + + log("Starting assessment @config.items.assessment_tag") + write_result("version", "@version") + v_start = concatenate(slug, "_", version, "_started") + write_result("started", "@config.items.assessment_tag", label: "@v_start") + write_result("locale", "@locale") +end + +``` + +## Display Question & Validation + +1. Check if the current question is the last question + 1. If yes record the results + * `assessment_end`, the assessment tag + * `assessment_score`, the final score of the assessment +2. Get the question from the API response +3. Replace any variables in the question that need to be replaced +4. Display the question +5. Validate the answer and / or explain the reason for the question +6. Repeat until we reach the last question + +```stack +card CheckEnd when question_num == count(questions), then: End do + # Because all of the guards for a card get evaluated at the same time, we have to first check if we + # have any more questions, before we can assume that there's a question that we can access the + # attributes of, and we have to do this in a separate CheckEnd card before the DisplayQuestion card + + # workaround because the percentage calculation will throw a division by 0 error if max_score is 0 in either an if or a when clause. + score_perc = score / max(max_score, 1) * 100 + slug_end = concatenate(slug, "_", version, "_end") + write_result("end", "@assessment_data.slug", label: "@slug_end") +end + +card CheckEnd do + then(GetQuestion) +end + +card GetQuestion, then: DisplayQuestion do + question = questions[question_num] + question_text = question.question + + # Any variable replacement required can happen here + name = if(is_nil_or_empty(contact.name), do: "", else: contact.name) + question_text = substitute(question_text, "{{name}}", "@name") +end + +card DisplayQuestion when questions[question_num].question_type == "multiselect_question", + then: DisplayMultiselectAnswer do + # Display the Multiselect Question type + answer_num = 0 + multiselect_answer = "" + scores = map(question.answers, & &1.score) + max_question_score = reduce(scores, 0, &(&1 + &2)) + max_score = max_score + max_question_score +end + +card DisplayQuestion when count(questions[question_num].answers) > 3, then: QuestionExplainer do + # For more than 3 options, use a list + question = questions[question_num] + + question_response = + list("Select option", QuestionResponse, map(question.answers, &[&1.answer, &1.answer])) do + text("@question_text") + end +end + +card DisplayQuestion when questions[question_num].question_type == "year_of_birth_question", + then: QuestionExplainer do + # Display the Year of Birth Question type + question = questions[question_num] + + question_response = ask("@question_text") + difference = get_year - question_response + + assertion = + has_number("@question_response") and has_number_lte("@question_response", "@get_year") and + has_number_lte("@difference", "@range") and has_pattern("@question_response", "^[0-9]+$") +end + +card DisplayQuestion when questions[question_num].question_type == "freetext_question", + then: QuestionExplainer do + # Display the freetext Question type + question = questions[question_num] + + question_response = ask("@question_text") +end + +card DisplayQuestion when questions[question_num].question_type == "integer_question", + then: QuestionExplainer do + # Display the Integer Question type + question = questions[question_num] + + question_response = ask("@question_text") + min = questions[question_num].min + max = questions[question_num].max + + assertion = + has_number("@question_response") and has_number_gte("@question_response", "@min") and + has_number_lte("@question_response", "@max") +end + +card DisplayQuestion when questions[question_num].question_type == "age_question", + then: ValidateAge do + # Display the Age Question type + question = questions[question_num] + + question_response = ask("@question_text") +end + +card DisplayQuestion, then: QuestionExplainer do + # For up to 3 options, use buttons + question = questions[question_num] + + question_response = + buttons(QuestionResponse, map(question.answers, &[&1.answer, &1.answer])) do + text("@question_text") + end +end + +card ValidateAge when has_all_members(keywords, [@question_response]) == true, + then: AgeExplainer do + log("Explainer returned for age question") +end + +card ValidateAge when not isnumber(question_response) or question_response > 150, + then: QuestionError do + log("Validatation failed for age question") +end + +card ValidateAge, then: QuestionResponse do + log("Validation suceeded for age question") +end + +card AgeExplainer, then: GetQuestion do + explainer = + if( + is_nil_or_empty(question.explainer), + "*Explainer:* There's no explainer for this.", + concatenate("*Explainer:*", " ", question.explainer) + ) + + text("@explainer") +end + +card QuestionExplainer when has_all_members(keywords, [@question_response]), then: GetQuestion do + explainer = + if( + is_nil_or_empty(question.explainer), + "*Explainer:* There's no explainer for this.", + concatenate("*Explainer:*", " ", question.explainer) + ) + + text("@explainer") +end + +card QuestionExplainer, then: ValidateInput do + type = questions[question_num].question_type + log("Question type is @type") + log("Your answer was @question_response to question number @question_num") +end + +card ValidateInput + when assertion == false and questions[question_num].question_type == "year_of_birth_question", + then: QuestionError do + log("Error input") +end + +card ValidateInput + when assertion == false and questions[question_num].question_type == "integer_question", + then: QuestionError do + log("Error input") +end + +card ValidateInput + when count(question.answers) > 0 and + not has_member(map(question.answers, & &1.answer), question_response), + then: QuestionError do + log("Invalid input") +end + +card ValidateInput, then: QuestionResponse do + log("Valid input") +end + +card QuestionError + when questions[question_num].question_type == "integer_question" and + lower("@question_response") != "skip", + then: CheckEnd do + log( + "Invalid input for integer_question: @question_response. Required value between @min and @max." + ) + + # If we have an error for this question, then use that, otherwise use the generic one + error = if(is_nil_or_empty(question.error), assessment_data.generic_error, question.error) + type = questions[question_num].question_type + replace_min = substitute("@error", "{min}", "@min") + substituted_text = substitute("@replace_min", "{max}", "@max") + styled_error = concatenate("*Error:*", " ", "@substituted_text") + text("@styled_error") +end + +card QuestionError + when questions[question_num].question_type == "year_of_birth_question" and + lower("@question_response") != "skip", + then: CheckEnd do + log( + "Invalid input for year_of_birth_question: @question_response. Required value between @lower_bound_year and @get_year" + ) + + # If we have an error for this question, then use that, otherwise use the generic one + error = if(is_nil_or_empty(question.error), assessment_data.generic_error, question.error) + type = questions[question_num].question_type + lower_bound_year = get_year - range + log("get_year is @get_year and difference is @difference") + replace_current_year = substitute("@error", "{current_year}", "@get_year") + substituted_text = substitute("@replace_current_year", "{lower_bound}", "@lower_bound_year") + styled_error = concatenate("*Error:*", " ", "@substituted_text") + text("@styled_error") +end + +card QuestionError when has_all_members(keywords, [@question_response]), then: CheckEnd do + explainer = + if( + is_nil_or_empty(question.explainer), + "*Explainer:* There's no explainer for this.", + concatenate("*Explainer:*", " ", question.explainer) + ) + + text("@explainer") +end + +card QuestionError when lower("@question_response") == "skip", then: StoreResponse do + # If they skip a question we should + # - record the answer as "skip" + # - increment skip count + # - do not count the question towards the score + # - do not add the max score for this question (i.e. completely exclude this question from scoring) + result_tag = concatenate("@slug", "_", "@version", "_question_num") + write_result("question_num", question_num, label: "@result_tag") + question_id = questions[question_num].semantic_id + result_tag = concatenate("@slug", "_", "@version", "_", "@question_id") + write_result("question_id", "skip", label: "@result_tag") + skip_count = skip_count + 1 + + log("Skipping question @question_num") + log("Current score: @score, Current max score: @max_score") + + question_num = question_num + 1 +end + +card QuestionError, then: CheckEnd do + # If we have an error for this question, then use that, otherwise use the generic one + error = if(is_nil_or_empty(question.error), assessment_data.generic_error, question.error) + log("Question number is @question_num") + log("You entered @question_response") + text("@error") +end + +``` + +## Multiselect Question + +Multiselect gets a block on its own because it's essentially questions in a question. For multiselect, until we are able to use a checkbox-style input, we ask the question once for each answer that was configured, and ask the user to select `Yes`, or `No` for each answer. + +The basic idea for the multiselect question is very similar to how we display questions. + +1. Check if this is the last multiselect answer + 1. If yes, record the results + * `question_num`, the question number + * `answer`, the final answer which will be a comma separated list of all the answers that were selected +2. Get the next answer +3. Concatenate the question and answer, along with a label indicating which answer the user is on +4. Display the answer +5. If they select yes save the answer in the `multiselect_answer` variable +6. Repeat + +```stack +card CheckEndMultiselect + when questions[question_num].question_type == "multiselect_question" and + answer_num == count(questions[question_num].answers), + then: StoreResponse do + question_num = question_num + 1 + # write the answer results + result_tag = concatenate("@slug", "_", "@version", "question_num") + write_result("question_num", question_num, label: "@result_tag") + question_id = questions[question_num].semantic_id + result_tag = concatenate("@slug", "_", "@version", "_", "@question_id") + write_result("question_id", "@multiselect_answer", label: "@result_tag") + log("Answered @multiselect_answer to question @question_num") +end + +card CheckEndMultiselect do + then(DisplayMultiselectAnswer) +end + +card DisplayMultiselectAnswer, then: MultiselectError do + display_answer_num = answer_num + 1 + num_answers = count(question.answers) + multiselect_question_text = "@question_text" + answer = question.answers[answer_num] + answer_text = answer.answer + # Add in the Answer + # Add in the placeholder for x / y + multiselect_question_text = + concatenate( + multiselect_question_text, + "@unichar(10)", + "@unichar(10)", + "@answer_text", + "@unichar(10)", + "@unichar(10)", + "@display_answer_num / @num_answers" + ) + + question_response = + buttons(MultiselectResponseYes: "Yes", MultiselectResponseNo: "No") do + text("@multiselect_question_text") + end +end + +card MultiselectError when has_all_members(keywords, [@question_response]), + then: DisplayMultiselectAnswer do + explainer = + if( + is_nil_or_empty(question.explainer), + "*Explainer:* There's no explainer for this.", + concatenate("*Explainer:*", " ", question.explainer) + ) + + text("@explainer") +end + +card MultiselectError when lower(@question_response) == "skip", then: CheckEndMultiselect do + # If they skip a question we should + # - record the answer as "skip" + # - increment skip_count + # - do not count the question towards the score + # - do not add the max score for this question (i.e. completely exclude this question from scoring) + result_tag = concatenate("@slug", "_", "@version", "question_num") + write_result("question_num", question_num, label: "@result_tag") + question_id = questions[question_num].semantic_id + result_tag = concatenate("@slug", "_", "@version", "_", "@question_id") + write_result("question_id", "skip", label: "@result_tag") + + skip_count = skip_count + 1 + + max_score = max_score - max_question_score + + log("Skipping multiselect question @question_num") + log("Current score: @score, Current max score: @max_score") + + question_num = question_num + 1 +end + +card MultiselectError, then: DisplayMultiselectAnswer do + # If we have an error for this question, then use that, otherwise use the generic one + error = if(is_nil_or_empty(question.error), assessment_data.generic_error, question.error) + log("Question number is @question_num") + log("Answer number is @answer_num") + log("You entered @question_response") + text("@error") +end + +card MultiselectResponseYes, + then: CheckEndMultiselect do + answer = find(question.answers, &(&1.answer == answer_text)) + semantic_id = answer.semantic_id + score = score + answer.score + log("Current score: @score, Current max score: @max_score") + answer_num = answer_num + 1 + + multiselect_answer = + if is_nil_or_empty(multiselect_answer) do + "@semantic_id" + else + concatenate(multiselect_answer, ",", "@semantic_id") + end +end + +card MultiselectResponseNo, then: CheckEndMultiselect do + answer_num = answer_num + 1 +end + +``` + +## Question Response + +Here we record the responses to each question. + +* For freetext questions we record the full answer. +* For categorical or multiselect questions we record the semantic_id of the answer(s). + +We record the following Flow Results: + +* `question_num`, the question number +* `answer`, the final answer which will be a comma separated list of all the answers that were selected + +If it's a choice selection question type that has a `response`, then we show the user the response before moving on to the next question. + +```stack +card QuestionResponse when questions[question_num].question_type == "integer_question", + then: StoreResponse do + question_id = questions[question_num].semantic_id + result_tag = concatenate("@slug", "_", "@version", "_question_num") + write_result("question_num", question_num, label: "@result_tag") + result_tag = concatenate("@slug", "_", "@version", "_question") + write_result("question", question.question, label: "@result_tag") + result_tag = concatenate("@slug", "_", "@version", "_", "@question_id") + write_result("question_id", "@question_response", label: "@result_tag") + result_tag = concatenate("@slug", "_", "@version", "_min") + write_result("min", min, label: "@result_tag") + result_tag = concatenate("@slug", "_", "@version", "_max") + write_result("max", max, label: "@result_tag") + + question_num = question_num + 1 +end + +card QuestionResponse when questions[question_num].question_type == "freetext_question", + then: StoreResponse do + question_id = questions[question_num].semantic_id + result_tag = concatenate("@slug", "_", "@version", "_question_num") + write_result("question_num", question_num, label: "@result_tag") + result_tag = concatenate("@slug", "_", "@version", "_question") + write_result("question", question.question, label: "@result_tag") + result_tag = concatenate("@slug", "_", "@version", "_", "@question_id") + write_result("question_id", "@question_response", label: "@result_tag") + + question_num = question_num + 1 +end + +card QuestionResponse when questions[question_num].question_type == "age_question", + then: StoreResponse do + question_id = questions[question_num].semantic_id + result_tag = concatenate("@slug", "_", "@version", "_question_num") + write_result("question_num", question_num, label: "@result_tag") + result_tag = concatenate("@slug", "_", "@version", "_", "@question_id") + write_result("question_id", "@question_response", label: "@result_tag") + log("Answered @age to question @question_num") + + question_num = question_num + 1 +end + +card QuestionResponse when questions[question_num].question_type == "year_of_birth_question", + then: StoreResponse do + question_id = questions[question_num].semantic_id + result_tag = concatenate("@slug", "_", "@version", "_question_num") + write_result("question_num", question_num, label: "@result_tag") + result_tag = concatenate("@slug", "_", "@version", "_question") + write_result("question", question.question, label: "@result_tag") + result_tag = concatenate("@slug", "_", "@version", "_", "@question_id") + write_result("question_id", "@question_response", label: "@result_tag") + + question_num = question_num + 1 +end + +# If Never is a valid response and they respond with Never, skip over everything +card QuestionResponse + when has_member(map(question.answers, &lower(&1.answer)), "never") and + lower("@question_response") == "never", + then: CheckEnd do + log("Skipping to end of Form") + answer = find(question.answers, &(&1.answer == question_response)) + result_tag = concatenate("@slug", "_", "@version", "_question_num") + write_result("question_num", question_num, label: "@result_tag") + question_id = questions[question_num].semantic_id + result_tag = concatenate("@slug", "_", "@version", "_", "@question_id") + write_result("question_id", "@question_response", label: "@result_tag") + log("Answered @answer.answer to question @question_num") + + score = score + answer.score + question_num = count(questions) +end + +card QuestionResponse when lower("@question_response") == "skip", then: StoreResponse do + # If they skip a question we should + # - record the answer as "skip" + # - increment skip_count + # - do not count the question towards the score + # - do not add the max score for this question (i.e. completely exclude this question from scoring) + result_tag = concatenate("@slug", "_", "@version", "_question_num") + write_result("question_num", question_num, label: "@result_tag") + question_id = questions[question_num].semantic_id + result_tag = concatenate("@slug", "_", "@version", "_", "@question_id") + write_result("question_id", "skip", label: "@result_tag") + + skip_count = skip_count + 1 + + log("Skipping question @question_num") + log("Current score: @score, Current max score: @max_score") + + question_num = question_num + 1 +end + +card QuestionResponse, then: DisplayResponse do + scores = map(question.answers, & &1.score) + max_question_score = reduce(scores, scores[0], &max(&1, &2)) + answer = find(question.answers, &(&1.answer == question_response)) + question_id = questions[question_num].semantic_id + + result_tag = concatenate("@slug", "_", "@version", "_question_num") + write_result("question_num", question_num, label: "@result_tag") + # for multiple choice and categorical questions, save the semantic_id + result_tag = concatenate("@slug", "_", "@version", "_", "@question_id") + write_result("question_id", answer.semantic_id, label: "@result_tag") + + log("Answered @answer.answer to question @question_num") + + max_score = max_score + max_question_score + score = score + answer.score + log("Current score: @score, Current max score: @max_score") + question_num = question_num + 1 +end + +card DisplayResponse when has_text("@answer.response"), then: StoreResponse do + buttons(StoreResponse: "@config.items.response_button_text") do + text("@answer.response") + end +end + +card DisplayResponse do + then(StoreResponse) +end + +``` + +## Store Response + +These cards are to configure storing the answers of the Form in contact fields. Each question will need its own contact field. Most forms won't need this, so you can comment out or remove the cards (Except the last / default one which is critical to the flow of Forms). + +```stack +card StoreResponse when question_id == "dma-do-things" do + update_contact(dma_01: "@question_response") + then(CheckEnd) +end + +card StoreResponse when question_id == "dma-medical-care" do + update_contact(dma_02: "@question_response") + then(CheckEnd) +end + +card StoreResponse when question_id == "dma-sharing" do + update_contact(dma_03: "@question_response") + then(CheckEnd) +end + +card StoreResponse when question_id == "dma-medical-advice" do + update_contact(dma_04: "@question_response") + then(CheckEnd) +end + +card StoreResponse when question_id == "dma-find-solutions" do + update_contact(dma_05: "@question_response") + then(CheckEnd) +end + +# This card should be left alone +card StoreResponse do + then(CheckEnd) +end + +``` + +## End + +We record the final result of the Form, and display the correct End page (high, medium, low). Image messages are supported. + +We record the following Flow Results: + +* `assessment_risk`, `low`, `medium`, or `high` depending on the risk. + +```stack +card End + when skip_count < skip_threshold and + score_perc >= assessment_data.high_inflection do + result_tag = concatenate("@slug", "_", "@version", "_risk") + write_result("risk", "high", label: "@result_tag") + log("Assessment risk: high") + page_id = assessment_data.high_result_page.id + + then(FetchEndPage) +end + +card End + when skip_count < skip_threshold and + score_perc >= assessment_data.medium_inflection and + score_perc < assessment_data.high_inflection do + result_tag = concatenate("@slug", "_", "@version", "_risk") + write_result("risk", "medium", label: "@result_tag") + log("Assessment risk: medium") + page_id = assessment_data.medium_result_page.id + + then(FetchEndPage) +end + +card End when skip_count >= skip_threshold do + result_tag = concatenate("@slug", "_", "@version", "_risk") + write_result("risk", "skip_high", label: "@result_tag") + log("Assessment risk: skip_high") + page_id = assessment_data.skip_high_result_page.id + + then(FetchEndPage) +end + +card End do + result_tag = concatenate("@slug", "_", "@version", "_risk") + write_result("risk", "low", label: "@result_tag") + log("Assessment risk: low") + page_id = assessment_data.low_result_page.id + + then(FetchEndPage) +end + +card FetchEndPage, then: DisplayEndPage do + result_tag = concatenate("@slug", "_", "@version", "_score") + write_result("score", score, label: "@result_tag") + result_tag = concatenate("@slug", "_", "@version", "_max_score") + write_result("max_score", max_score, label: "@result_tag") + + response = + get("https://content-repo-api-qa.prk-k8s.prd-p6t.org/api/v2/pages/@page_id/", + timeout: 5_000, + cache_ttl: 60_000, + query: [ + ["whatsapp", "true"] + ], + headers: [ + ["content-type", "application/json"], + ["authorization", "Token @global.config.contentrepo_token"] + ] + ) + + message_body = response.body.body.text.value.message + message_body = substitute(message_body, "{score}", "@round(score)") + message_body = substitute(message_body, "{max_score}", "@round(max_score)") + image_id = response.body.body.text.value.image +end + +card DisplayEndPage when isnumber(image_id) do + image_response = + get("https://content-repo-api-qa.prk-k8s.prd-p6t.org/api/v2/images/@image_id/", + timeout: 5_000, + cache_ttl: 60_000, + headers: [ + ["content-type", "application/json"], + ["authorization", "Token @global.config.contentrepo_token"] + ] + ) + + image("@image_response.body.meta.download_url") + text("@message_body") +end + +card DisplayEndPage do + text("@message_body") +end + +``` \ No newline at end of file diff --git a/Onboarding/QA/flows_json/quiz-breastfeeding.json b/Onboarding/QA/flows_json/quiz-breastfeeding.json new file mode 100644 index 0000000..a8d570b --- /dev/null +++ b/Onboarding/QA/flows_json/quiz-breastfeeding.json @@ -0,0 +1,15967 @@ +{ + "name": "Quiz: Breastfeeding", + "description": "Default description", + "uuid": "9be6bd36-a687-44de-8cdd-f5ec758908c2", + "resources": [ + { + "values": [ + { + "value": "@message_body", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "0131050a-d12d-4acc-a35d-07937a2b4dce" + }, + { + "values": [ + { + "value": "@image_response.body.meta.download_url", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "IMAGE", + "mime_type": "application/octet-stream", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + }, + { + "value": "@message_body", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "9855cd7e-4e58-4380-b6fd-240e5654958e" + }, + { + "values": [ + { + "value": "@answer.response", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "27af9c79-c182-4b48-b062-98abd4e789da" + }, + { + "values": [ + { + "value": "@config.items.response_button_text", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "d3dbcbcd-814a-492d-a1c1-6a5fdb3cf14c" + }, + { + "values": [ + { + "value": "Current score: @score, Current max score: @max_score", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "6646b5ad-071e-4373-b0b3-51e27f9b1df6" + }, + { + "values": [ + { + "value": "Question number is @question_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "b40bb35c-f3cf-4de6-8281-a858fca7cb70" + }, + { + "values": [ + { + "value": "Answer number is @answer_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "56cfa66f-df2a-4976-bb34-5c00b8c389ad" + }, + { + "values": [ + { + "value": "You entered @question_response", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "78b53138-c360-41e9-b35a-cd262b8243cb" + }, + { + "values": [ + { + "value": "@error", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "e9caa280-c771-4cc1-ab63-bda1d6001971" + }, + { + "values": [ + { + "value": "Skipping multiselect question @question_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "b11c074b-6139-4e72-9102-f651bfa435ee" + }, + { + "values": [ + { + "value": "Current score: @score, Current max score: @max_score", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "ce38125d-528f-4f42-80fd-624e2113495d" + }, + { + "values": [ + { + "value": "@explainer", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "77c7aa4c-c0aa-41af-aec4-0bd1926036b2" + }, + { + "values": [ + { + "value": "Answered @multiselect_answer to question @question_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "526fac7e-bb92-436e-9c4c-004be978f1c7" + }, + { + "values": [ + { + "value": "Valid input", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "93c4abd9-fbdf-475c-bde5-7fffa2816d0e" + }, + { + "values": [ + { + "value": "Invalid input", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "4997bb0f-8063-4269-9537-3fda194eb143" + }, + { + "values": [ + { + "value": "Error input", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "4fcabaaf-ba9b-49c3-adb0-d80f84de1e6c" + }, + { + "values": [ + { + "value": "Error input", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "80db9998-790e-4765-b0ec-b9b0cd49fbf0" + }, + { + "values": [ + { + "value": "Question number is @question_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "e679d41a-53e4-45b8-ba3d-d723700f6474" + }, + { + "values": [ + { + "value": "You entered @question_response", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "dba53fa7-bf42-4674-b7f1-ececbbeffcdb" + }, + { + "values": [ + { + "value": "@error", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "f566e5bf-b753-4968-8679-60b882a22ef2" + }, + { + "values": [ + { + "value": "Skipping question @question_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "a464ed3a-2300-43c3-8d46-062561d069df" + }, + { + "values": [ + { + "value": "Current score: @score, Current max score: @max_score", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "fce3588d-49fc-4b98-817c-5dcbe951c79f" + }, + { + "values": [ + { + "value": "@explainer", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "a987890c-0842-4e76-9e3c-b205d5283b63" + }, + { + "values": [ + { + "value": "Invalid input for year_of_birth_question: @question_response. Required value between @lower_bound_year and @get_year", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "8567caaa-ed83-455d-b615-4c91ef4eb4f0" + }, + { + "values": [ + { + "value": "get_year is @get_year and difference is @difference", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "c033c0b1-5cad-4619-93e0-9d5ae2504e61" + }, + { + "values": [ + { + "value": "@styled_error", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "c0b5271f-29bb-4f24-ae35-f52296a70fa5" + }, + { + "values": [ + { + "value": "Invalid input for integer_question: @question_response. Required value between @min and @max.", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "0c10f3e4-f979-4f73-b92c-ec190e55df8e" + }, + { + "values": [ + { + "value": "@styled_error", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "a7338490-5783-44f2-9324-c01f4b280548" + }, + { + "values": [ + { + "value": "@explainer", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "a79e9713-3fcd-4ee1-9be6-3d2d8dd3ac42" + }, + { + "values": [ + { + "value": "Validation suceeded for age question", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "ac9b4a8a-b34e-49bd-befa-c77cdea6376f" + }, + { + "values": [ + { + "value": "Validatation failed for age question", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "0b6fa68a-fe90-4af7-a82c-25657af3d38b" + }, + { + "values": [ + { + "value": "Explainer returned for age question", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "2294f41d-13d9-4ccd-a17c-7f3f1b79de18" + }, + { + "values": [ + { + "value": "Question type is @type", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "10623aec-155d-4c69-968f-39c061925dad" + }, + { + "values": [ + { + "value": "Your answer was @question_response to question number @question_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "07c769cf-cbf0-4f19-a48f-c45c9eb512b5" + }, + { + "values": [ + { + "value": "@explainer", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "fce68f45-5f10-4ae2-8bbd-4dbf876e52e1" + }, + { + "values": [ + { + "value": "@multiselect_question_text", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "1f0a21c8-c37a-4d6b-b5f0-888c9eeaa779" + }, + { + "values": [ + { + "value": "Yes", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "fe82f87f-3648-4e7c-b8d9-bd95ccd603c6" + }, + { + "values": [ + { + "value": "No", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "c7a18fbf-94ee-4526-bcc8-a229dd59029b" + }, + { + "values": [ + { + "value": "Assessment risk: low", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "b4f8d4ed-746f-495e-a8f9-9f2b87b4f73c" + }, + { + "values": [ + { + "value": "Assessment risk: skip_high", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "039e41ea-628e-46c3-8ccd-fa6cef38947a" + }, + { + "values": [ + { + "value": "Assessment risk: medium", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "d8781be6-2dfc-4169-ba0f-253114f96b73" + }, + { + "values": [ + { + "value": "Assessment risk: high", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "ad34c216-ecaa-404f-9233-a241f2b62be0" + }, + { + "values": [ + { + "value": "Fetching assessment @config.items.assessment_tag", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "138f8461-28c7-470c-8a39-32b61cd5aac5" + }, + { + "values": [ + { + "value": "Starting assessment @config.items.assessment_tag", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "19151191-bea8-4c09-b0f3-c9f8046aaa93" + }, + { + "values": [ + { + "value": "Answered @answer.answer to question @question_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "e5e5e3a9-1219-436a-9f7e-db04e036f955" + }, + { + "values": [ + { + "value": "Current score: @score, Current max score: @max_score", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "e16a8e79-ea3d-4a6a-8cb2-3b39b9ddf746" + }, + { + "values": [ + { + "value": "Skipping question @question_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "7230b2ab-ad91-4e47-93c5-801f865befd9" + }, + { + "values": [ + { + "value": "Current score: @score, Current max score: @max_score", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "d1f62447-dd74-4bd3-8c85-50b10433a2c9" + }, + { + "values": [ + { + "value": "Skipping to end of Form", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "85ae48a0-509b-4535-a2e8-0c468c229169" + }, + { + "values": [ + { + "value": "Answered @answer.answer to question @question_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "7c94a49f-279e-43f9-9b03-548e973e09a9" + }, + { + "values": [ + { + "value": "Answered @age to question @question_num", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "0281f0ba-5195-44e9-8d8b-90640714a604" + }, + { + "values": [ + { + "value": "@question_text", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "e76f3f76-1fb9-4bf4-9dc3-087d360ce632" + }, + { + "values": [ + { + "value": "QuestionResponse", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "b5e7e7d8-08d6-49bf-981f-337097d20d71" + }, + { + "values": [ + { + "value": "@question_text", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "218aa62c-123e-4eeb-89cf-3bae60a0740a" + }, + { + "values": [ + { + "value": "@question_text", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "9f8a91a2-a818-44b2-9c6e-4397ff47f3a1" + }, + { + "values": [ + { + "value": "@question_text", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "d97aa0c8-abb3-42b8-9763-05ab5b812c51" + }, + { + "values": [ + { + "value": "@question_text", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "c0b4d284-c9b6-41f3-a51e-4116358dfe79" + }, + { + "values": [ + { + "value": "@question_text", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + }, + { + "value": "Select option", + "modes": [ + "RICH_MESSAGING" + ], + "content_type": "TEXT", + "mime_type": "text/plain", + "language_id": "61ec331d-2510-417c-bc29-bed6d596ad08" + } + ], + "uuid": "1bdd8a7a-3528-4730-9287-6f96409e9990" + } + ], + "flows": [ + { + "label": null, + "name": "stack", + "blocks": [ + { + "label": null, + "name": "display_end_page_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "163997ea-6326-5a41-bc37-a0102e75b7d6", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for display_end_page_case_condition_0", + "config": {}, + "test": "isnumber(image_id)", + "uuid": "45c9564b-afee-43c7-a70a-89dde3f11b0c", + "destination_block": "edbbf106-5e36-50bc-a4ac-79edbd38ac73", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for display_end_page_case_condition_1", + "config": {}, + "test": null, + "uuid": "79032d6a-0393-4e4f-b8b0-58a418e5f2cb", + "destination_block": "b7c35784-256c-524a-a555-8506d06e40f1", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "isnumber(image_id)", + "meta": { + "column": 1, + "line": 610 + }, + "name": "DisplayEndPage", + "uuid": "163997ea-6326-5a41-bc37-a0102e75b7d6" + } + } + } + } + } + } + }, + { + "label": null, + "name": "display_end_page_case_condition_1_text", + "type": "MobilePrimitives.Message", + "config": { + "prompt": "0131050a-d12d-4acc-a35d-07937a2b4dce" + }, + "tags": [], + "uuid": "b7c35784-256c-524a-a555-8506d06e40f1", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "display_end_page_case_condition_1_text", + "config": {}, + "test": "", + "uuid": "f0f36312-3829-4c40-969b-6feb87e6bdcf", + "destination_block": null, + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 625 + }, + "name": "DisplayEndPage", + "uuid": "e8288a8a-72ae-50b8-9ffe-80fdf0569447" + }, + "card_item": { + "meta": { + "column": 3, + "line": 626 + }, + "text": {}, + "type": "text" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "image_response", + "type": "Io.Turn.Webhook", + "config": { + "timeout": 5000, + "mode": "sync", + "body": null, + "url": "https://content-repo-api-qa.prk-k8s.prd-p6t.org/api/v2/images/@image_id/", + "query": [], + "headers": [ + [ + "content-type", + "application/json" + ], + [ + "authorization", + "Token @global.config.contentrepo_token" + ] + ], + "method": "GET", + "cache_ttl": 60000 + }, + "tags": [], + "uuid": "edbbf106-5e36-50bc-a4ac-79edbd38ac73", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "image_response", + "config": {}, + "test": "", + "uuid": "c353ccf9-5eae-465f-9973-3530101596fa", + "destination_block": "f2664d92-4e53-5970-9fc1-4db3d6288021", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "isnumber(image_id)", + "meta": { + "column": 1, + "line": 610 + }, + "name": "DisplayEndPage", + "uuid": "163997ea-6326-5a41-bc37-a0102e75b7d6" + }, + "card_item": { + "meta": { + "column": 3, + "line": 611 + }, + "type": "webhook", + "webhook": {} + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "display_end_page_case_condition_0_image", + "type": "MobilePrimitives.Message", + "config": { + "prompt": "9855cd7e-4e58-4380-b6fd-240e5654958e" + }, + "tags": [], + "uuid": "f2664d92-4e53-5970-9fc1-4db3d6288021", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "display_end_page_case_condition_0_image", + "config": {}, + "test": "", + "uuid": "5c7a9fa4-7ee9-4cf2-8c99-38c419a7c175", + "destination_block": null, + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "isnumber(image_id)", + "meta": { + "column": 1, + "line": 610 + }, + "name": "DisplayEndPage", + "uuid": "163997ea-6326-5a41-bc37-a0102e75b7d6" + }, + "card_item": { + "image": {}, + "meta": { + "column": 3, + "line": 621 + }, + "type": "image" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "b6ee063e-540d-5f33-a2e9-313b9a36ef1e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_score\")", + "config": {}, + "test": "", + "uuid": "d54d0797-dc6e-4c4a-b3a9-5e15ccd007c1", + "destination_block": "586288db-d3e0-5a66-982f-29abd4c83672", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 585 + }, + "name": "FetchEndPage", + "uuid": "346ae073-4aba-5b03-b93e-87092f008360" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 586 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "score", + "type": "Core.Output", + "config": { + "value": "score" + }, + "tags": [], + "uuid": "586288db-d3e0-5a66-982f-29abd4c83672", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "score", + "config": {}, + "test": "", + "uuid": "ce406bf3-dfa0-4169-946a-a2e901070646", + "destination_block": "487ffe6b-16bb-5f88-94bb-151d043e80fa", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 585 + }, + "name": "FetchEndPage", + "uuid": "346ae073-4aba-5b03-b93e-87092f008360" + }, + "card_item": { + "meta": { + "column": 3, + "line": 587 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "487ffe6b-16bb-5f88-94bb-151d043e80fa", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_max_score\")", + "config": {}, + "test": "", + "uuid": "d538cccd-1fee-4480-89b9-5e6fa4b9434e", + "destination_block": "b9c6bba6-ca87-550f-9e85-5dc4d07b1628", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 585 + }, + "name": "FetchEndPage", + "uuid": "346ae073-4aba-5b03-b93e-87092f008360" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 588 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "max_score", + "type": "Core.Output", + "config": { + "value": "max_score" + }, + "tags": [], + "uuid": "b9c6bba6-ca87-550f-9e85-5dc4d07b1628", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "max_score", + "config": {}, + "test": "", + "uuid": "9c872db9-14cf-43cc-a882-e2c68e10cd9b", + "destination_block": "13f26589-9dd8-5375-8df8-b7bc84b81ba4", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 585 + }, + "name": "FetchEndPage", + "uuid": "346ae073-4aba-5b03-b93e-87092f008360" + }, + "card_item": { + "meta": { + "column": 3, + "line": 589 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "response", + "type": "Io.Turn.Webhook", + "config": { + "timeout": 5000, + "mode": "sync", + "body": null, + "url": "https://content-repo-api-qa.prk-k8s.prd-p6t.org/api/v2/pages/@page_id/", + "query": [ + [ + "whatsapp", + "true" + ] + ], + "headers": [ + [ + "content-type", + "application/json" + ], + [ + "authorization", + "Token @global.config.contentrepo_token" + ] + ], + "method": "GET", + "cache_ttl": 60000 + }, + "tags": [], + "uuid": "13f26589-9dd8-5375-8df8-b7bc84b81ba4", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "response", + "config": {}, + "test": "", + "uuid": "014ee8f0-4fab-42a7-a343-f13fbe50d82f", + "destination_block": "22384715-c63e-5788-9198-57c2abc25997", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 585 + }, + "name": "FetchEndPage", + "uuid": "346ae073-4aba-5b03-b93e-87092f008360" + }, + "card_item": { + "meta": { + "column": 3, + "line": 591 + }, + "type": "webhook", + "webhook": {} + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "message_body", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "22384715-c63e-5788-9198-57c2abc25997", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "response.body.body.text.value.message", + "config": {}, + "test": "", + "uuid": "2c9f5389-0753-4a29-b1e9-2e8d43dc90bd", + "destination_block": "1d5f14f7-7335-5310-951b-db334e159d86", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 585 + }, + "name": "FetchEndPage", + "uuid": "346ae073-4aba-5b03-b93e-87092f008360" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 604 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "message_body", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "1d5f14f7-7335-5310-951b-db334e159d86", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "substitute(message_body, \"{score}\", \"@round(score)\")", + "config": {}, + "test": "", + "uuid": "a402ba7b-a413-4cd6-bf80-1bce6642922a", + "destination_block": "8543f487-afeb-5f6a-813d-73421f72c82f", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 585 + }, + "name": "FetchEndPage", + "uuid": "346ae073-4aba-5b03-b93e-87092f008360" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 605 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "message_body", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "8543f487-afeb-5f6a-813d-73421f72c82f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "substitute(message_body, \"{max_score}\", \"@round(max_score)\")", + "config": {}, + "test": "", + "uuid": "6cfa10ca-0b24-44c3-90a5-87fc205b284c", + "destination_block": "3430583e-f722-57cf-9ab8-e8898b583793", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 585 + }, + "name": "FetchEndPage", + "uuid": "346ae073-4aba-5b03-b93e-87092f008360" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 606 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "image_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "3430583e-f722-57cf-9ab8-e8898b583793", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "response.body.body.text.value.image", + "config": {}, + "test": "", + "uuid": "bbe6567c-d1a8-44a5-84d1-be9af956b000", + "destination_block": "163997ea-6326-5a41-bc37-a0102e75b7d6", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 585 + }, + "name": "FetchEndPage", + "uuid": "346ae073-4aba-5b03-b93e-87092f008360" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 607 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "display_response_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "74561ab0-8ea1-5f2c-8f1f-93876e804056", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for display_response_case_condition_0", + "config": {}, + "test": "has_text(\"@answer.response\")", + "uuid": "e58b1770-14b8-40e6-bcd5-d24c6225e0a7", + "destination_block": "8235d609-de08-536b-9787-a15f945d4471", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for display_response_case_condition_1", + "config": {}, + "test": null, + "uuid": "4f799c81-0d7b-4c5e-9f51-37c47f184b6c", + "destination_block": "0f22ee99-8e42-522e-a34d-61afa3459168", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_text(\"@answer.response\")", + "meta": { + "column": 1, + "line": 504 + }, + "name": "DisplayResponse", + "uuid": "74561ab0-8ea1-5f2c-8f1f-93876e804056" + } + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for display_response_case_condition_1", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "0f22ee99-8e42-522e-a34d-61afa3459168", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for StoreResponse", + "config": {}, + "test": "true", + "uuid": "98e84725-8b2d-4a34-86a4-370df437a7d9", + "destination_block": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 510 + }, + "name": "DisplayResponse", + "uuid": "48f664ea-b264-55ff-adea-ae464a2aeb66" + }, + "card_item": { + "meta": { + "column": 3, + "line": 511 + }, + "then": {}, + "type": "then" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "display_response_case_condition_0", + "type": "MobilePrimitives.SelectOneResponse", + "config": { + "prompt": "27af9c79-c182-4b48-b062-98abd4e789da", + "choices": [ + { + "name": "store_response", + "prompt": "d3dbcbcd-814a-492d-a1c1-6a5fdb3cf14c", + "test": "block.response = \"@@config.items.response_button_text\"" + } + ] + }, + "tags": [], + "uuid": "8235d609-de08-536b-9787-a15f945d4471", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": null, + "name": "store_response", + "config": {}, + "test": "block.value = \"store_response\"", + "uuid": "c72aa734-e972-46a8-8374-19e0c02aae61", + "destination_block": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Default exit to \"StoreResponse\"", + "config": {}, + "test": "", + "uuid": "820587bc-9ddf-4724-90c9-deb34aed4936", + "destination_block": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "buttons_metadata": {}, + "card": { + "condition": "has_text(\"@answer.response\")", + "meta": { + "column": 1, + "line": 504 + }, + "name": "DisplayResponse", + "uuid": "74561ab0-8ea1-5f2c-8f1f-93876e804056" + }, + "card_item": { + "button_block": {}, + "meta": { + "column": 3, + "line": 505 + }, + "type": "button_block" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "answer_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "e1367f7a-75c4-5622-bfb5-e9a3832b3c21", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "answer_num + 1", + "config": {}, + "test": "", + "uuid": "83bfdf15-ec49-4770-a1d7-c441f3eb52cb", + "destination_block": "5b652a56-c71a-5582-83f8-55b39072e60a", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 387 + }, + "name": "MultiselectResponseNo", + "uuid": "37a73151-bebf-5292-8912-20abd8f756c4" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 388 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "answer", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "5bd7dcf5-1055-5c2f-87db-534ac94c1c47", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "find(question.answers, &(&1.answer == answer_text))", + "config": {}, + "test": "", + "uuid": "38bdea07-7051-4a3e-98db-d0cb7e1e1f22", + "destination_block": "dc2b456f-1859-50ba-92e9-01c541de5613", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 371 + }, + "name": "MultiselectResponseYes", + "uuid": "0ec16d81-7463-507b-afb2-0bc197fd2e4b" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 373 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "semantic_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "dc2b456f-1859-50ba-92e9-01c541de5613", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "answer.semantic_id", + "config": {}, + "test": "", + "uuid": "befdf51e-8c6d-446a-96d5-fa924455da1a", + "destination_block": "d4649eb0-4e4d-560e-8569-291e481fc608", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 371 + }, + "name": "MultiselectResponseYes", + "uuid": "0ec16d81-7463-507b-afb2-0bc197fd2e4b" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 374 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "score", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "d4649eb0-4e4d-560e-8569-291e481fc608", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "score + answer.score", + "config": {}, + "test": "", + "uuid": "12abf2af-c06d-43c9-878d-f24fd0b94ffc", + "destination_block": "c1d5ab4b-ea2f-5266-81d0-2a4a035b3552", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 371 + }, + "name": "MultiselectResponseYes", + "uuid": "0ec16d81-7463-507b-afb2-0bc197fd2e4b" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 375 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_response_yes_log", + "type": "Core.Log", + "config": { + "message": "6646b5ad-071e-4373-b0b3-51e27f9b1df6" + }, + "tags": [], + "uuid": "c1d5ab4b-ea2f-5266-81d0-2a4a035b3552", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "multiselect_response_yes_log", + "config": {}, + "test": "", + "uuid": "fb62490e-5290-4934-8bb1-3761aab9c1a6", + "destination_block": "780f4a9f-7a77-5295-9e02-308063781a70", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 371 + }, + "name": "MultiselectResponseYes", + "uuid": "0ec16d81-7463-507b-afb2-0bc197fd2e4b" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 376 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "answer_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "780f4a9f-7a77-5295-9e02-308063781a70", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "answer_num + 1", + "config": {}, + "test": "", + "uuid": "7e8e3ce3-395c-4228-ba7b-96ee39a420ca", + "destination_block": "979e8930-2aef-5311-a7ef-8742d7c5cf0e", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 371 + }, + "name": "MultiselectResponseYes", + "uuid": "0ec16d81-7463-507b-afb2-0bc197fd2e4b" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 377 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_answer", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "979e8930-2aef-5311-a7ef-8742d7c5cf0e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "if(is_nil_or_empty(multiselect_answer), \"@semantic_id\", concatenate(multiselect_answer, \",\", \"@semantic_id\"))", + "config": {}, + "test": "", + "uuid": "5660ee5a-6c12-4f60-84c8-bd9aa0fbda8b", + "destination_block": "5b652a56-c71a-5582-83f8-55b39072e60a", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 371 + }, + "name": "MultiselectResponseYes", + "uuid": "0ec16d81-7463-507b-afb2-0bc197fd2e4b" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 379 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_error_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "205afeb9-04e6-5b84-8102-bb4631a81a99", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for multiselect_error_case_condition_0", + "config": {}, + "test": "has_all_members(keywords, [question_response])", + "uuid": "28be73d6-7245-408d-808f-877746c6356d", + "destination_block": "c32166e6-a9e6-5119-8932-a6deee18d226", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for multiselect_error_case_condition_1", + "config": {}, + "test": "lower(question_response) == \"skip\"", + "uuid": "f12a4b82-7ddc-427e-a249-60017b51b71e", + "destination_block": "1ea0a351-a157-5d7d-89c5-97acdd74edbf", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for multiselect_error_case_condition_2", + "config": {}, + "test": null, + "uuid": "878eb8cb-e492-47e6-9b63-68528c046b62", + "destination_block": "784786fd-16b4-597e-a410-f43ed99fb00f", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_all_members(keywords, [@question_response])", + "meta": { + "column": 1, + "line": 328 + }, + "name": "MultiselectError", + "uuid": "205afeb9-04e6-5b84-8102-bb4631a81a99" + } + } + } + } + } + } + }, + { + "label": null, + "name": "error", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "784786fd-16b4-597e-a410-f43ed99fb00f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "if(is_nil_or_empty(question.error), assessment_data.generic_error, question.error)", + "config": {}, + "test": "", + "uuid": "72b40ff3-cc63-4139-a977-8acdc41a94c2", + "destination_block": "c9ae711c-69fd-5b43-bf19-30c0a15b24ff", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 362 + }, + "name": "MultiselectError", + "uuid": "2c1669e6-0fce-5042-9d76-b42e1f5ee953" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 364 + }, + "type": "expression" + }, + "index": 2 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_error_case_condition_2_log", + "type": "Core.Log", + "config": { + "message": "b40bb35c-f3cf-4de6-8281-a858fca7cb70" + }, + "tags": [], + "uuid": "c9ae711c-69fd-5b43-bf19-30c0a15b24ff", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "multiselect_error_case_condition_2_log", + "config": {}, + "test": "", + "uuid": "82dcf2a3-fde0-4b54-a612-dc509e5bbfb1", + "destination_block": "7d3bbee2-b7e2-5015-89d0-629634cec778", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 362 + }, + "name": "MultiselectError", + "uuid": "2c1669e6-0fce-5042-9d76-b42e1f5ee953" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 365 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_error_case_condition_2_log", + "type": "Core.Log", + "config": { + "message": "56cfa66f-df2a-4976-bb34-5c00b8c389ad" + }, + "tags": [], + "uuid": "7d3bbee2-b7e2-5015-89d0-629634cec778", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "multiselect_error_case_condition_2_log", + "config": {}, + "test": "", + "uuid": "48efd880-2666-4871-a5ea-0a5d7f24068d", + "destination_block": "2c65074e-8412-5f1c-a16e-07d9a31e5649", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 362 + }, + "name": "MultiselectError", + "uuid": "2c1669e6-0fce-5042-9d76-b42e1f5ee953" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 366 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_error_case_condition_2_log", + "type": "Core.Log", + "config": { + "message": "78b53138-c360-41e9-b35a-cd262b8243cb" + }, + "tags": [], + "uuid": "2c65074e-8412-5f1c-a16e-07d9a31e5649", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "multiselect_error_case_condition_2_log", + "config": {}, + "test": "", + "uuid": "06e053f0-ff13-4af7-995c-3fd55eb3f93e", + "destination_block": "211ceb0c-d32f-5fdd-8734-cb4899146e40", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 362 + }, + "name": "MultiselectError", + "uuid": "2c1669e6-0fce-5042-9d76-b42e1f5ee953" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 367 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_error_case_condition_2_text", + "type": "MobilePrimitives.Message", + "config": { + "prompt": "e9caa280-c771-4cc1-ab63-bda1d6001971" + }, + "tags": [], + "uuid": "211ceb0c-d32f-5fdd-8734-cb4899146e40", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"DisplayMultiselectAnswer\"", + "config": {}, + "test": "", + "uuid": "4f96dfce-12af-4a91-a0b0-9450e65eebe8", + "destination_block": "066ffca5-6baa-5331-a1c3-75a7eb8c8b77", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 362 + }, + "name": "MultiselectError", + "uuid": "2c1669e6-0fce-5042-9d76-b42e1f5ee953" + }, + "card_item": { + "meta": { + "column": 3, + "line": 368 + }, + "text": {}, + "type": "text" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "1ea0a351-a157-5d7d-89c5-97acdd74edbf", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"question_num\")", + "config": {}, + "test": "", + "uuid": "9cc2e6b8-c801-4b91-8d2c-910bb054e0dd", + "destination_block": "11356139-0dd6-58f9-aa9a-fd8d8acd69d4", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(@question_response) == \"skip\"", + "meta": { + "column": 1, + "line": 340 + }, + "name": "MultiselectError", + "uuid": "35a8a2b3-8382-5b43-bb9a-5bebe557f012" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 346 + }, + "type": "expression" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Output", + "config": { + "value": "question_num" + }, + "tags": [], + "uuid": "11356139-0dd6-58f9-aa9a-fd8d8acd69d4", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num", + "config": {}, + "test": "", + "uuid": "cfea616d-63dc-4d68-a81c-debf28d8330b", + "destination_block": "f37d4b18-55f7-55a1-a2be-0ed17bb62085", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(@question_response) == \"skip\"", + "meta": { + "column": 1, + "line": 340 + }, + "name": "MultiselectError", + "uuid": "35a8a2b3-8382-5b43-bb9a-5bebe557f012" + }, + "card_item": { + "meta": { + "column": 3, + "line": 347 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "f37d4b18-55f7-55a1-a2be-0ed17bb62085", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].semantic_id", + "config": {}, + "test": "", + "uuid": "7ea9e623-c904-4422-b536-886e3c9abdfc", + "destination_block": "ffac2eb0-7a61-5a5c-8bb6-a83e732a3ca3", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(@question_response) == \"skip\"", + "meta": { + "column": 1, + "line": 340 + }, + "name": "MultiselectError", + "uuid": "35a8a2b3-8382-5b43-bb9a-5bebe557f012" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 348 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "ffac2eb0-7a61-5a5c-8bb6-a83e732a3ca3", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_\", \"@question_id\")", + "config": {}, + "test": "", + "uuid": "02fd2928-4933-4f8b-9eb5-173c73675d63", + "destination_block": "528a1504-323d-5875-88a5-c468fcdfdcf5", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(@question_response) == \"skip\"", + "meta": { + "column": 1, + "line": 340 + }, + "name": "MultiselectError", + "uuid": "35a8a2b3-8382-5b43-bb9a-5bebe557f012" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 349 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Output", + "config": { + "value": "\"skip\"" + }, + "tags": [], + "uuid": "528a1504-323d-5875-88a5-c468fcdfdcf5", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_id", + "config": {}, + "test": "", + "uuid": "b66ee295-e425-4a25-a2ee-859b2dab5e90", + "destination_block": "f4d46817-b118-5dc1-95d3-a37b9fc37270", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(@question_response) == \"skip\"", + "meta": { + "column": 1, + "line": 340 + }, + "name": "MultiselectError", + "uuid": "35a8a2b3-8382-5b43-bb9a-5bebe557f012" + }, + "card_item": { + "meta": { + "column": 3, + "line": 350 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "skip_count", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "f4d46817-b118-5dc1-95d3-a37b9fc37270", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "skip_count + 1", + "config": {}, + "test": "", + "uuid": "effb00f4-fba2-4194-be18-47f2402da049", + "destination_block": "66459184-384e-5b67-bbaf-5f1269ef2bba", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(@question_response) == \"skip\"", + "meta": { + "column": 1, + "line": 340 + }, + "name": "MultiselectError", + "uuid": "35a8a2b3-8382-5b43-bb9a-5bebe557f012" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 352 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "max_score", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "66459184-384e-5b67-bbaf-5f1269ef2bba", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "max_score - max_question_score", + "config": {}, + "test": "", + "uuid": "47afa1d7-6013-43ca-8bbb-28a4f9e6ec07", + "destination_block": "b2e9f35a-0104-5fb1-bab1-7076aea4b295", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(@question_response) == \"skip\"", + "meta": { + "column": 1, + "line": 340 + }, + "name": "MultiselectError", + "uuid": "35a8a2b3-8382-5b43-bb9a-5bebe557f012" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 354 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_error_case_condition_1_log", + "type": "Core.Log", + "config": { + "message": "b11c074b-6139-4e72-9102-f651bfa435ee" + }, + "tags": [], + "uuid": "b2e9f35a-0104-5fb1-bab1-7076aea4b295", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "multiselect_error_case_condition_1_log", + "config": {}, + "test": "", + "uuid": "ddabd845-129e-4996-b157-aaa76065a96b", + "destination_block": "8557dfbc-9c95-59d1-aa9c-8327725330b9", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(@question_response) == \"skip\"", + "meta": { + "column": 1, + "line": 340 + }, + "name": "MultiselectError", + "uuid": "35a8a2b3-8382-5b43-bb9a-5bebe557f012" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 356 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_error_case_condition_1_log", + "type": "Core.Log", + "config": { + "message": "ce38125d-528f-4f42-80fd-624e2113495d" + }, + "tags": [], + "uuid": "8557dfbc-9c95-59d1-aa9c-8327725330b9", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "multiselect_error_case_condition_1_log", + "config": {}, + "test": "", + "uuid": "69866f6a-fb24-4da1-ad44-c96e8e272312", + "destination_block": "f7d08719-6e3f-542a-9d52-2b0dba67b64f", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(@question_response) == \"skip\"", + "meta": { + "column": 1, + "line": 340 + }, + "name": "MultiselectError", + "uuid": "35a8a2b3-8382-5b43-bb9a-5bebe557f012" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 357 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "f7d08719-6e3f-542a-9d52-2b0dba67b64f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num + 1", + "config": {}, + "test": "", + "uuid": "f93ad841-d8a4-40db-b4f5-2bbe357e80a4", + "destination_block": "5b652a56-c71a-5582-83f8-55b39072e60a", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(@question_response) == \"skip\"", + "meta": { + "column": 1, + "line": 340 + }, + "name": "MultiselectError", + "uuid": "35a8a2b3-8382-5b43-bb9a-5bebe557f012" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 359 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "explainer", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "c32166e6-a9e6-5119-8932-a6deee18d226", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "if(is_nil_or_empty(question.explainer), \"*Explainer:* There's no explainer for this.\", concatenate(\"*Explainer:*\", \" \", question.explainer))", + "config": {}, + "test": "", + "uuid": "a59fffb8-b413-4193-9c82-6791e94772d9", + "destination_block": "16ef2fdd-db2e-518c-a383-51083f44896f", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_all_members(keywords, [@question_response])", + "meta": { + "column": 1, + "line": 328 + }, + "name": "MultiselectError", + "uuid": "205afeb9-04e6-5b84-8102-bb4631a81a99" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 330 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_error_case_condition_0_text", + "type": "MobilePrimitives.Message", + "config": { + "prompt": "77c7aa4c-c0aa-41af-aec4-0bd1926036b2" + }, + "tags": [], + "uuid": "16ef2fdd-db2e-518c-a383-51083f44896f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"DisplayMultiselectAnswer\"", + "config": {}, + "test": "", + "uuid": "4c452649-2140-4047-a331-358787c19ede", + "destination_block": "066ffca5-6baa-5331-a1c3-75a7eb8c8b77", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_all_members(keywords, [@question_response])", + "meta": { + "column": 1, + "line": 328 + }, + "name": "MultiselectError", + "uuid": "205afeb9-04e6-5b84-8102-bb4631a81a99" + }, + "card_item": { + "meta": { + "column": 3, + "line": 337 + }, + "text": {}, + "type": "text" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "check_end_multiselect_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "5b652a56-c71a-5582-83f8-55b39072e60a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for check_end_multiselect_case_condition_0", + "config": {}, + "test": "and(questions[question_num].question_type == \"multiselect_question\", answer_num == count(questions[question_num].answers))", + "uuid": "e58f6162-de80-402d-ae5e-6cb51c8a69ea", + "destination_block": "62590bed-f1c5-5511-bd7e-a406a77fecf2", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for check_end_multiselect_case_condition_1", + "config": {}, + "test": null, + "uuid": "fb7b04a6-d2a6-4fd8-a459-f71c79cce53d", + "destination_block": "56064325-3396-505d-ae7e-74323a81648d", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\" and answer_num == count(questions[question_num].answers)", + "meta": { + "column": 1, + "line": 285 + }, + "name": "CheckEndMultiselect", + "uuid": "5b652a56-c71a-5582-83f8-55b39072e60a" + } + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for check_end_multiselect_case_condition_1", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "56064325-3396-505d-ae7e-74323a81648d", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for DisplayMultiselectAnswer", + "config": {}, + "test": "true", + "uuid": "dab748a7-08d8-49ae-af5e-70274b921296", + "destination_block": "066ffca5-6baa-5331-a1c3-75a7eb8c8b77", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 299 + }, + "name": "CheckEndMultiselect", + "uuid": "0528042f-dc4f-5288-8a7b-f0cb2e2fe84f" + }, + "card_item": { + "meta": { + "column": 3, + "line": 300 + }, + "then": {}, + "type": "then" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "62590bed-f1c5-5511-bd7e-a406a77fecf2", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num + 1", + "config": {}, + "test": "", + "uuid": "29381e03-c6ac-4266-8cbc-879c78111c86", + "destination_block": "ee6c0416-1367-5e71-b756-99fdb7a35387", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\" and answer_num == count(questions[question_num].answers)", + "meta": { + "column": 1, + "line": 285 + }, + "name": "CheckEndMultiselect", + "uuid": "5b652a56-c71a-5582-83f8-55b39072e60a" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 289 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "ee6c0416-1367-5e71-b756-99fdb7a35387", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"question_num\")", + "config": {}, + "test": "", + "uuid": "c420a8e1-5907-4ca4-b677-dda5d99754eb", + "destination_block": "cae84bf7-0c22-5094-a993-b839a7969da1", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\" and answer_num == count(questions[question_num].answers)", + "meta": { + "column": 1, + "line": 285 + }, + "name": "CheckEndMultiselect", + "uuid": "5b652a56-c71a-5582-83f8-55b39072e60a" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 291 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Output", + "config": { + "value": "question_num" + }, + "tags": [], + "uuid": "cae84bf7-0c22-5094-a993-b839a7969da1", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num", + "config": {}, + "test": "", + "uuid": "1c6743c9-5fea-45ed-9a58-83a8427db70c", + "destination_block": "cb3e06f6-d3ff-5145-9496-a7ba7b645305", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\" and answer_num == count(questions[question_num].answers)", + "meta": { + "column": 1, + "line": 285 + }, + "name": "CheckEndMultiselect", + "uuid": "5b652a56-c71a-5582-83f8-55b39072e60a" + }, + "card_item": { + "meta": { + "column": 3, + "line": 292 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "cb3e06f6-d3ff-5145-9496-a7ba7b645305", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].semantic_id", + "config": {}, + "test": "", + "uuid": "fe5262ab-4c40-48b3-a05f-69c5eedcc006", + "destination_block": "c2c86fda-eaef-5499-876c-3aad40dd6935", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\" and answer_num == count(questions[question_num].answers)", + "meta": { + "column": 1, + "line": 285 + }, + "name": "CheckEndMultiselect", + "uuid": "5b652a56-c71a-5582-83f8-55b39072e60a" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 293 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "c2c86fda-eaef-5499-876c-3aad40dd6935", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_\", \"@question_id\")", + "config": {}, + "test": "", + "uuid": "09831f21-316c-4a53-a7b9-4e132560c91b", + "destination_block": "c872151a-27a2-5602-a05f-ea47dad627b2", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\" and answer_num == count(questions[question_num].answers)", + "meta": { + "column": 1, + "line": 285 + }, + "name": "CheckEndMultiselect", + "uuid": "5b652a56-c71a-5582-83f8-55b39072e60a" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 294 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Output", + "config": { + "value": "\"@multiselect_answer\"" + }, + "tags": [], + "uuid": "c872151a-27a2-5602-a05f-ea47dad627b2", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_id", + "config": {}, + "test": "", + "uuid": "b23813b5-34ac-4038-b340-cc390a37dda8", + "destination_block": "b6608def-499b-5c8f-b07e-d766207f006e", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\" and answer_num == count(questions[question_num].answers)", + "meta": { + "column": 1, + "line": 285 + }, + "name": "CheckEndMultiselect", + "uuid": "5b652a56-c71a-5582-83f8-55b39072e60a" + }, + "card_item": { + "meta": { + "column": 3, + "line": 295 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "check_end_multiselect_case_condition_0_log", + "type": "Core.Log", + "config": { + "message": "526fac7e-bb92-436e-9c4c-004be978f1c7" + }, + "tags": [], + "uuid": "b6608def-499b-5c8f-b07e-d766207f006e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"StoreResponse\"", + "config": {}, + "test": "", + "uuid": "14cf34bf-8164-4557-a74f-2054292c85dc", + "destination_block": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\" and answer_num == count(questions[question_num].answers)", + "meta": { + "column": 1, + "line": 285 + }, + "name": "CheckEndMultiselect", + "uuid": "5b652a56-c71a-5582-83f8-55b39072e60a" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 296 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "store_response_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for store_response_case_condition_0", + "config": {}, + "test": "question_id == \"dma-do-things\"", + "uuid": "4b615cb3-7df3-4768-8cec-4a3f9fb5dfb6", + "destination_block": "8cbb04d6-489f-57e8-90eb-7e106f541670", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for store_response_case_condition_1", + "config": {}, + "test": "question_id == \"dma-medical-care\"", + "uuid": "0062b3b2-eb45-4fdd-9ade-01258745182b", + "destination_block": "fdfd9252-1646-5193-a57c-c3b45302ecbe", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for store_response_case_condition_2", + "config": {}, + "test": "question_id == \"dma-sharing\"", + "uuid": "e678c96d-08d1-422e-bab1-cd9b70875aac", + "destination_block": "e210abd4-18f7-5061-b442-2c150c43ed59", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for store_response_case_condition_3", + "config": {}, + "test": "question_id == \"dma-medical-advice\"", + "uuid": "1aa3de58-dc64-4668-b380-3f375db43101", + "destination_block": "76c4c437-d703-5cb5-851c-d899c8c6a658", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for store_response_case_condition_4", + "config": {}, + "test": "question_id == \"dma-find-solutions\"", + "uuid": "19905f04-5aa5-4947-a1ab-86f9955a5afd", + "destination_block": "7fb31ff0-c509-5130-a528-9ed8d59c3288", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for store_response_case_condition_5", + "config": {}, + "test": null, + "uuid": "1fc6fe74-1471-4232-94b9-db0db1fbf13b", + "destination_block": "20f435e1-d5e5-52df-990e-bf0e33b9f20a", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-do-things\"", + "meta": { + "column": 1, + "line": 514 + }, + "name": "StoreResponse", + "uuid": "9515b3f0-1bfb-574f-a522-f540401ba8bd" + } + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for store_response_case_condition_5", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "20f435e1-d5e5-52df-990e-bf0e33b9f20a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for CheckEnd", + "config": {}, + "test": "true", + "uuid": "ce397b35-ab07-4d97-b83a-3b7c6f2d18e0", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 540 + }, + "name": "StoreResponse", + "uuid": "5fb40108-ef47-50a0-826d-a83846ebb5dc" + }, + "card_item": { + "meta": { + "column": 3, + "line": 541 + }, + "then": {}, + "type": "then" + }, + "index": 5 + } + } + } + } + } + }, + { + "label": null, + "name": "store_response_case_condition_4_contact_update_dma_05", + "type": "Core.SetContactProperty", + "config": { + "set_contact_property": { + "property_key": "dma_05", + "property_value": "@question_response" + } + }, + "tags": [], + "uuid": "7fb31ff0-c509-5130-a528-9ed8d59c3288", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "store_response_case_condition_4_contact_update_dma_05", + "config": {}, + "test": "", + "uuid": "5b4a2261-814b-4b04-8a30-1f8f49a0e9ce", + "destination_block": "0156cb2b-a647-5a6d-8745-95abc16094c4", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-find-solutions\"", + "meta": { + "column": 1, + "line": 534 + }, + "name": "StoreResponse", + "uuid": "6357155c-2fff-509e-94d5-0db644be131f" + }, + "card_item": { + "meta": { + "column": 3, + "line": 535 + }, + "type": "update_contact", + "update_contact": {} + }, + "index": 4 + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for store_response_case_condition_4", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "0156cb2b-a647-5a6d-8745-95abc16094c4", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for CheckEnd", + "config": {}, + "test": "true", + "uuid": "c81dd104-9f05-4798-8cc5-f5fd915f2539", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-find-solutions\"", + "meta": { + "column": 1, + "line": 534 + }, + "name": "StoreResponse", + "uuid": "6357155c-2fff-509e-94d5-0db644be131f" + }, + "card_item": { + "meta": { + "column": 3, + "line": 536 + }, + "then": {}, + "type": "then" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "store_response_case_condition_3_contact_update_dma_04", + "type": "Core.SetContactProperty", + "config": { + "set_contact_property": { + "property_key": "dma_04", + "property_value": "@question_response" + } + }, + "tags": [], + "uuid": "76c4c437-d703-5cb5-851c-d899c8c6a658", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "store_response_case_condition_3_contact_update_dma_04", + "config": {}, + "test": "", + "uuid": "80c8f460-9d68-4446-b999-04fd6e37722d", + "destination_block": "723a023c-5106-5a43-b6cd-ac60341e8ade", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-medical-advice\"", + "meta": { + "column": 1, + "line": 529 + }, + "name": "StoreResponse", + "uuid": "650d4502-7c02-5ab8-96f0-6a235ba85005" + }, + "card_item": { + "meta": { + "column": 3, + "line": 530 + }, + "type": "update_contact", + "update_contact": {} + }, + "index": 3 + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for store_response_case_condition_3", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "723a023c-5106-5a43-b6cd-ac60341e8ade", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for CheckEnd", + "config": {}, + "test": "true", + "uuid": "dab18d50-6148-4a8c-aa2c-b1e304574384", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-medical-advice\"", + "meta": { + "column": 1, + "line": 529 + }, + "name": "StoreResponse", + "uuid": "650d4502-7c02-5ab8-96f0-6a235ba85005" + }, + "card_item": { + "meta": { + "column": 3, + "line": 531 + }, + "then": {}, + "type": "then" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "store_response_case_condition_2_contact_update_dma_03", + "type": "Core.SetContactProperty", + "config": { + "set_contact_property": { + "property_key": "dma_03", + "property_value": "@question_response" + } + }, + "tags": [], + "uuid": "e210abd4-18f7-5061-b442-2c150c43ed59", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "store_response_case_condition_2_contact_update_dma_03", + "config": {}, + "test": "", + "uuid": "1ef3dccf-01d1-40b6-a2bc-40ecf641acbb", + "destination_block": "618e8c98-6dbb-543d-9299-46269ad009a4", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-sharing\"", + "meta": { + "column": 1, + "line": 524 + }, + "name": "StoreResponse", + "uuid": "6575ccb0-af2c-5068-95aa-cec809ffcbd4" + }, + "card_item": { + "meta": { + "column": 3, + "line": 525 + }, + "type": "update_contact", + "update_contact": {} + }, + "index": 2 + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for store_response_case_condition_2", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "618e8c98-6dbb-543d-9299-46269ad009a4", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for CheckEnd", + "config": {}, + "test": "true", + "uuid": "fca39ebe-b093-4be0-a18d-5c5793742097", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-sharing\"", + "meta": { + "column": 1, + "line": 524 + }, + "name": "StoreResponse", + "uuid": "6575ccb0-af2c-5068-95aa-cec809ffcbd4" + }, + "card_item": { + "meta": { + "column": 3, + "line": 526 + }, + "then": {}, + "type": "then" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "store_response_case_condition_1_contact_update_dma_02", + "type": "Core.SetContactProperty", + "config": { + "set_contact_property": { + "property_key": "dma_02", + "property_value": "@question_response" + } + }, + "tags": [], + "uuid": "fdfd9252-1646-5193-a57c-c3b45302ecbe", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "store_response_case_condition_1_contact_update_dma_02", + "config": {}, + "test": "", + "uuid": "1a1e66f9-1b6e-4ff4-b077-a86bd03716d4", + "destination_block": "8f54cdb5-1a24-58ce-afd2-239e0c77b460", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-medical-care\"", + "meta": { + "column": 1, + "line": 519 + }, + "name": "StoreResponse", + "uuid": "5b81e8fe-5e85-5f8c-873f-4272f17eb288" + }, + "card_item": { + "meta": { + "column": 3, + "line": 520 + }, + "type": "update_contact", + "update_contact": {} + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for store_response_case_condition_1", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "8f54cdb5-1a24-58ce-afd2-239e0c77b460", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for CheckEnd", + "config": {}, + "test": "true", + "uuid": "84ee0d33-8375-4500-93b5-1db0a5f5c64a", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-medical-care\"", + "meta": { + "column": 1, + "line": 519 + }, + "name": "StoreResponse", + "uuid": "5b81e8fe-5e85-5f8c-873f-4272f17eb288" + }, + "card_item": { + "meta": { + "column": 3, + "line": 521 + }, + "then": {}, + "type": "then" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "store_response_case_condition_0_contact_update_dma_01", + "type": "Core.SetContactProperty", + "config": { + "set_contact_property": { + "property_key": "dma_01", + "property_value": "@question_response" + } + }, + "tags": [], + "uuid": "8cbb04d6-489f-57e8-90eb-7e106f541670", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "store_response_case_condition_0_contact_update_dma_01", + "config": {}, + "test": "", + "uuid": "7e2cb5fd-eaf6-4bbd-a5c9-d5acc4a44540", + "destination_block": "986232e1-c39d-5c1b-b99a-ccf8f3dc895a", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-do-things\"", + "meta": { + "column": 1, + "line": 514 + }, + "name": "StoreResponse", + "uuid": "9515b3f0-1bfb-574f-a522-f540401ba8bd" + }, + "card_item": { + "meta": { + "column": 3, + "line": 515 + }, + "type": "update_contact", + "update_contact": {} + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for store_response_case_condition_0", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "986232e1-c39d-5c1b-b99a-ccf8f3dc895a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for CheckEnd", + "config": {}, + "test": "true", + "uuid": "aa3a012a-12dc-412a-9d69-f3013c5182a2", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_id == \"dma-do-things\"", + "meta": { + "column": 1, + "line": 514 + }, + "name": "StoreResponse", + "uuid": "9515b3f0-1bfb-574f-a522-f540401ba8bd" + }, + "card_item": { + "meta": { + "column": 3, + "line": 516 + }, + "then": {}, + "type": "then" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "validate_input_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "c18fd5f1-50bb-517d-b139-f95bf0ec483d", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for validate_input_case_condition_0", + "config": {}, + "test": "and(assertion == false, questions[question_num].question_type == \"year_of_birth_question\")", + "uuid": "c9a60db8-0819-4285-a70f-f2f089b4c618", + "destination_block": "6f683cc1-53c8-525e-9a3f-8cd7fb093df4", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for validate_input_case_condition_1", + "config": {}, + "test": "and(assertion == false, questions[question_num].question_type == \"integer_question\")", + "uuid": "5c2eb8c8-7a7a-4aa3-9b3a-9064efbfddbe", + "destination_block": "a0bca882-4926-5f6c-9bf7-8898930510c7", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for validate_input_case_condition_2", + "config": {}, + "test": "and(count(question.answers) > 0, not(has_member(map(question.answers, & &1.answer), question_response)))", + "uuid": "e61467a2-bd7d-4375-b9bd-88afc3a084da", + "destination_block": "81be1849-a990-5c61-95f7-f1b1270765ed", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for validate_input_case_condition_3", + "config": {}, + "test": null, + "uuid": "105ad636-9419-47b3-8952-a8e519fe8a2c", + "destination_block": "8942a297-cff4-507f-a1d8-c941bccc3dc6", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "assertion == false and questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 188 + }, + "name": "ValidateInput", + "uuid": "c18fd5f1-50bb-517d-b139-f95bf0ec483d" + } + } + } + } + } + } + }, + { + "label": null, + "name": "validate_input_case_condition_3_log", + "type": "Core.Log", + "config": { + "message": "93c4abd9-fbdf-475c-bde5-7fffa2816d0e" + }, + "tags": [], + "uuid": "8942a297-cff4-507f-a1d8-c941bccc3dc6", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"QuestionResponse\"", + "config": {}, + "test": "", + "uuid": "4d1dfee6-7aa5-4543-aadf-71e6a6f19c01", + "destination_block": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 207 + }, + "name": "ValidateInput", + "uuid": "1e9e49d4-5d52-5e1a-b9d3-c163d8998746" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 208 + }, + "type": "log" + }, + "index": 3 + } + } + } + } + } + }, + { + "label": null, + "name": "validate_input_case_condition_2_log", + "type": "Core.Log", + "config": { + "message": "4997bb0f-8063-4269-9537-3fda194eb143" + }, + "tags": [], + "uuid": "81be1849-a990-5c61-95f7-f1b1270765ed", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"QuestionError\"", + "config": {}, + "test": "", + "uuid": "466f679f-71b7-4e7f-aedb-363b015dbcf1", + "destination_block": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "count(question.answers) > 0 and not has_member(map(question.answers, & &1.answer), question_response)", + "meta": { + "column": 1, + "line": 200 + }, + "name": "ValidateInput", + "uuid": "218ea9c3-b7d6-5247-bbc6-ca2831512464" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 204 + }, + "type": "log" + }, + "index": 2 + } + } + } + } + } + }, + { + "label": null, + "name": "validate_input_case_condition_1_log", + "type": "Core.Log", + "config": { + "message": "4fcabaaf-ba9b-49c3-adb0-d80f84de1e6c" + }, + "tags": [], + "uuid": "a0bca882-4926-5f6c-9bf7-8898930510c7", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"QuestionError\"", + "config": {}, + "test": "", + "uuid": "9d95a786-9e1b-4020-a8b2-84161acf53cf", + "destination_block": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "assertion == false and questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 194 + }, + "name": "ValidateInput", + "uuid": "ce9116b9-ba55-5c0f-ab34-eb74e06dcb38" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 197 + }, + "type": "log" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "validate_input_case_condition_0_log", + "type": "Core.Log", + "config": { + "message": "80db9998-790e-4765-b0ec-b9b0cd49fbf0" + }, + "tags": [], + "uuid": "6f683cc1-53c8-525e-9a3f-8cd7fb093df4", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"QuestionError\"", + "config": {}, + "test": "", + "uuid": "0955d224-a3a0-4520-af9b-a53f064fcacb", + "destination_block": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "assertion == false and questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 188 + }, + "name": "ValidateInput", + "uuid": "c18fd5f1-50bb-517d-b139-f95bf0ec483d" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 191 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for question_error_case_condition_0", + "config": {}, + "test": "and(questions[question_num].question_type == \"integer_question\", lower(\"@question_response\") != \"skip\")", + "uuid": "6a4548ca-ada8-414e-be1b-aef330240d63", + "destination_block": "3abfbe03-c048-5efb-82e4-903d85a655a3", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for question_error_case_condition_1", + "config": {}, + "test": "and(questions[question_num].question_type == \"year_of_birth_question\", lower(\"@question_response\") != \"skip\")", + "uuid": "e212f0bf-e9f2-4580-9f4d-6d5ce7e610c2", + "destination_block": "3a38d186-8355-59ab-9e77-4f3b5f470d3a", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for question_error_case_condition_2", + "config": {}, + "test": "has_all_members(keywords, [question_response])", + "uuid": "1cc9d05a-a6c3-4dc7-8fc0-4b972d6f6620", + "destination_block": "54a1458e-3736-5d82-8d0e-4cfe5d100fd1", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for question_error_case_condition_3", + "config": {}, + "test": "lower(\"@question_response\") == \"skip\"", + "uuid": "b0fd0816-8661-45ec-a062-c54f0461d352", + "destination_block": "1e8d59b3-1342-5c6d-8c57-f23f1dbbbd5e", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for question_error_case_condition_4", + "config": {}, + "test": null, + "uuid": "0e50e481-ff8e-473c-99cb-a4b50dae6152", + "destination_block": "f296fd32-8877-59d9-b480-0cd491b6364a", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 211 + }, + "name": "QuestionError", + "uuid": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b" + } + } + } + } + } + } + }, + { + "label": null, + "name": "error", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "f296fd32-8877-59d9-b480-0cd491b6364a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "if(is_nil_or_empty(question.error), assessment_data.generic_error, question.error)", + "config": {}, + "test": "", + "uuid": "e8b0f99e-535c-45d0-bd9d-e4630b54948f", + "destination_block": "a46bdc19-9b34-5aca-bd3f-d0a0ce60e7ad", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 277 + }, + "name": "QuestionError", + "uuid": "d271ffe7-5cc6-591e-ae80-4b1b649defd9" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 279 + }, + "type": "expression" + }, + "index": 4 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_4_log", + "type": "Core.Log", + "config": { + "message": "e679d41a-53e4-45b8-ba3d-d723700f6474" + }, + "tags": [], + "uuid": "a46bdc19-9b34-5aca-bd3f-d0a0ce60e7ad", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_error_case_condition_4_log", + "config": {}, + "test": "", + "uuid": "7e02bbca-451e-4f03-8d93-a51334cacc45", + "destination_block": "06a91f1f-d05b-5bd9-884a-5ea829fea8a2", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 277 + }, + "name": "QuestionError", + "uuid": "d271ffe7-5cc6-591e-ae80-4b1b649defd9" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 280 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_4_log", + "type": "Core.Log", + "config": { + "message": "dba53fa7-bf42-4674-b7f1-ececbbeffcdb" + }, + "tags": [], + "uuid": "06a91f1f-d05b-5bd9-884a-5ea829fea8a2", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_error_case_condition_4_log", + "config": {}, + "test": "", + "uuid": "fc338b7d-ff44-4aa5-b022-c5e77a5958f9", + "destination_block": "449849e9-b475-55d9-a52a-c503c00adfb3", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 277 + }, + "name": "QuestionError", + "uuid": "d271ffe7-5cc6-591e-ae80-4b1b649defd9" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 281 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_4_text", + "type": "MobilePrimitives.Message", + "config": { + "prompt": "f566e5bf-b753-4968-8679-60b882a22ef2" + }, + "tags": [], + "uuid": "449849e9-b475-55d9-a52a-c503c00adfb3", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"CheckEnd\"", + "config": {}, + "test": "", + "uuid": "e82f4d86-bb62-4c8a-b381-c26d2d967bdb", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 277 + }, + "name": "QuestionError", + "uuid": "d271ffe7-5cc6-591e-ae80-4b1b649defd9" + }, + "card_item": { + "meta": { + "column": 3, + "line": 282 + }, + "text": {}, + "type": "text" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "1e8d59b3-1342-5c6d-8c57-f23f1dbbbd5e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question_num\")", + "config": {}, + "test": "", + "uuid": "0f163108-7720-45d5-b647-20faf3101080", + "destination_block": "37e0bad7-1681-5989-a20a-3709aa92c6d5", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 258 + }, + "name": "QuestionError", + "uuid": "a73decc4-531c-5731-9f65-cf96a17dc820" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 264 + }, + "type": "expression" + }, + "index": 3 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Output", + "config": { + "value": "question_num" + }, + "tags": [], + "uuid": "37e0bad7-1681-5989-a20a-3709aa92c6d5", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num", + "config": {}, + "test": "", + "uuid": "dd07daf7-05c2-49fa-a597-cb1032c4b432", + "destination_block": "4ab9d975-1638-59e5-b852-2e19be2e0af2", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 258 + }, + "name": "QuestionError", + "uuid": "a73decc4-531c-5731-9f65-cf96a17dc820" + }, + "card_item": { + "meta": { + "column": 3, + "line": 265 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "4ab9d975-1638-59e5-b852-2e19be2e0af2", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].semantic_id", + "config": {}, + "test": "", + "uuid": "9c92e609-02d4-4c05-8cc0-b1a00d6b6e8f", + "destination_block": "b3885a0b-56ae-5bd4-92e1-ddf95c361e19", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 258 + }, + "name": "QuestionError", + "uuid": "a73decc4-531c-5731-9f65-cf96a17dc820" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 266 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "b3885a0b-56ae-5bd4-92e1-ddf95c361e19", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_\", \"@question_id\")", + "config": {}, + "test": "", + "uuid": "37086929-44b1-4652-ba2a-ac6f3c6297fc", + "destination_block": "e2e50606-9af2-5fe0-b46e-47e196603467", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 258 + }, + "name": "QuestionError", + "uuid": "a73decc4-531c-5731-9f65-cf96a17dc820" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 267 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Output", + "config": { + "value": "\"skip\"" + }, + "tags": [], + "uuid": "e2e50606-9af2-5fe0-b46e-47e196603467", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_id", + "config": {}, + "test": "", + "uuid": "f2a1abf7-6881-4323-afd0-1254dbec81c1", + "destination_block": "b6c481ab-4beb-56fa-ac9b-ffab44d18a1c", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 258 + }, + "name": "QuestionError", + "uuid": "a73decc4-531c-5731-9f65-cf96a17dc820" + }, + "card_item": { + "meta": { + "column": 3, + "line": 268 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "skip_count", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "b6c481ab-4beb-56fa-ac9b-ffab44d18a1c", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "skip_count + 1", + "config": {}, + "test": "", + "uuid": "ad51e44c-d62f-4ba5-ad8d-53bc2cef6f7a", + "destination_block": "f6b124d6-0145-5a28-a9c0-a41b5b723525", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 258 + }, + "name": "QuestionError", + "uuid": "a73decc4-531c-5731-9f65-cf96a17dc820" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 269 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_3_log", + "type": "Core.Log", + "config": { + "message": "a464ed3a-2300-43c3-8d46-062561d069df" + }, + "tags": [], + "uuid": "f6b124d6-0145-5a28-a9c0-a41b5b723525", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_error_case_condition_3_log", + "config": {}, + "test": "", + "uuid": "313b80e7-f446-4f87-9408-2f8df845ea6e", + "destination_block": "06d29995-3f20-5a30-b0ef-3ed3a08620a5", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 258 + }, + "name": "QuestionError", + "uuid": "a73decc4-531c-5731-9f65-cf96a17dc820" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 271 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_3_log", + "type": "Core.Log", + "config": { + "message": "fce3588d-49fc-4b98-817c-5dcbe951c79f" + }, + "tags": [], + "uuid": "06d29995-3f20-5a30-b0ef-3ed3a08620a5", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_error_case_condition_3_log", + "config": {}, + "test": "", + "uuid": "bd8fbf0f-7e48-4512-a0a3-fec41faa03ec", + "destination_block": "fcd63976-fa0d-59f7-9ec8-82a43aea79f7", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 258 + }, + "name": "QuestionError", + "uuid": "a73decc4-531c-5731-9f65-cf96a17dc820" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 272 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "fcd63976-fa0d-59f7-9ec8-82a43aea79f7", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num + 1", + "config": {}, + "test": "", + "uuid": "eb96fc2d-214d-4cb1-83b6-ead24192c216", + "destination_block": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 258 + }, + "name": "QuestionError", + "uuid": "a73decc4-531c-5731-9f65-cf96a17dc820" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 274 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "explainer", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "54a1458e-3736-5d82-8d0e-4cfe5d100fd1", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "if(is_nil_or_empty(question.explainer), \"*Explainer:* There's no explainer for this.\", concatenate(\"*Explainer:*\", \" \", question.explainer))", + "config": {}, + "test": "", + "uuid": "872898aa-a76f-4ffd-9205-212bc88eface", + "destination_block": "966ab9cc-4ddf-5857-bc4a-79ea06d4c350", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_all_members(keywords, [@question_response])", + "meta": { + "column": 1, + "line": 247 + }, + "name": "QuestionError", + "uuid": "fb54b681-3384-5511-b880-a5ec88103c42" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 248 + }, + "type": "expression" + }, + "index": 2 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_2_text", + "type": "MobilePrimitives.Message", + "config": { + "prompt": "a987890c-0842-4e76-9e3c-b205d5283b63" + }, + "tags": [], + "uuid": "966ab9cc-4ddf-5857-bc4a-79ea06d4c350", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"CheckEnd\"", + "config": {}, + "test": "", + "uuid": "6fb9d4bd-e38a-4590-a1b4-94f8c33f0d1c", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_all_members(keywords, [@question_response])", + "meta": { + "column": 1, + "line": 247 + }, + "name": "QuestionError", + "uuid": "fb54b681-3384-5511-b880-a5ec88103c42" + }, + "card_item": { + "meta": { + "column": 3, + "line": 255 + }, + "text": {}, + "type": "text" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_1_log", + "type": "Core.Log", + "config": { + "message": "8567caaa-ed83-455d-b615-4c91ef4eb4f0" + }, + "tags": [], + "uuid": "3a38d186-8355-59ab-9e77-4f3b5f470d3a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_error_case_condition_1_log", + "config": {}, + "test": "", + "uuid": "064cbbaf-2c05-4c9e-a82e-71dc3abf22f4", + "destination_block": "0726cc20-0452-5c44-a370-a7b613e30b7a", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 228 + }, + "name": "QuestionError", + "uuid": "634b0146-65df-524a-b699-b9cd49226b0a" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 232 + }, + "type": "log" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "error", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "0726cc20-0452-5c44-a370-a7b613e30b7a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "if(is_nil_or_empty(question.error), assessment_data.generic_error, question.error)", + "config": {}, + "test": "", + "uuid": "2ae7c15d-5565-4ea9-adf0-44b38d22d2f8", + "destination_block": "69001d01-ec32-52dd-b5e5-11647b6c37ac", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 228 + }, + "name": "QuestionError", + "uuid": "634b0146-65df-524a-b699-b9cd49226b0a" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 237 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "type", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "69001d01-ec32-52dd-b5e5-11647b6c37ac", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].question_type", + "config": {}, + "test": "", + "uuid": "0dc5d941-bc4b-4e7e-96e5-5b7a106c805b", + "destination_block": "cc7371da-b004-5e64-ab20-5fee934f460f", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 228 + }, + "name": "QuestionError", + "uuid": "634b0146-65df-524a-b699-b9cd49226b0a" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 238 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "lower_bound_year", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "cc7371da-b004-5e64-ab20-5fee934f460f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "get_year - range", + "config": {}, + "test": "", + "uuid": "d6585d91-7f69-4bca-a04d-1225cb26ebf0", + "destination_block": "1bba728d-72c1-5c80-baf5-135ccfc5de35", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 228 + }, + "name": "QuestionError", + "uuid": "634b0146-65df-524a-b699-b9cd49226b0a" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 239 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_1_log", + "type": "Core.Log", + "config": { + "message": "c033c0b1-5cad-4619-93e0-9d5ae2504e61" + }, + "tags": [], + "uuid": "1bba728d-72c1-5c80-baf5-135ccfc5de35", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_error_case_condition_1_log", + "config": {}, + "test": "", + "uuid": "1fb3b0ab-f739-480c-bc34-0c2361905c87", + "destination_block": "ff6aa469-3707-53fe-bf4a-2512c7753e5d", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 228 + }, + "name": "QuestionError", + "uuid": "634b0146-65df-524a-b699-b9cd49226b0a" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 240 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "replace_current_year", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "ff6aa469-3707-53fe-bf4a-2512c7753e5d", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "substitute(\"@error\", \"{current_year}\", \"@get_year\")", + "config": {}, + "test": "", + "uuid": "951527a5-eecb-4ea8-9cb2-6147d75389b0", + "destination_block": "7160dc6c-802b-5c6f-acee-31ad5d862960", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 228 + }, + "name": "QuestionError", + "uuid": "634b0146-65df-524a-b699-b9cd49226b0a" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 241 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "substituted_text", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "7160dc6c-802b-5c6f-acee-31ad5d862960", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "substitute(\"@replace_current_year\", \"{lower_bound}\", \"@lower_bound_year\")", + "config": {}, + "test": "", + "uuid": "ed34265a-1a56-4c59-a312-fc3cab08006a", + "destination_block": "b29d0a46-2128-5525-ba04-4238bcfac2bb", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 228 + }, + "name": "QuestionError", + "uuid": "634b0146-65df-524a-b699-b9cd49226b0a" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 242 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "styled_error", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "b29d0a46-2128-5525-ba04-4238bcfac2bb", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"*Error:*\", \" \", \"@substituted_text\")", + "config": {}, + "test": "", + "uuid": "8764a046-8171-4749-8267-783f663a08ec", + "destination_block": "8e020940-5156-588a-83e9-bb0beb1775fd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 228 + }, + "name": "QuestionError", + "uuid": "634b0146-65df-524a-b699-b9cd49226b0a" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 243 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_1_text", + "type": "MobilePrimitives.Message", + "config": { + "prompt": "c0b5271f-29bb-4f24-ae35-f52296a70fa5" + }, + "tags": [], + "uuid": "8e020940-5156-588a-83e9-bb0beb1775fd", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"CheckEnd\"", + "config": {}, + "test": "", + "uuid": "bf48450c-e146-47ad-b8ae-c95763c8a085", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 228 + }, + "name": "QuestionError", + "uuid": "634b0146-65df-524a-b699-b9cd49226b0a" + }, + "card_item": { + "meta": { + "column": 3, + "line": 244 + }, + "text": {}, + "type": "text" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_0_log", + "type": "Core.Log", + "config": { + "message": "0c10f3e4-f979-4f73-b92c-ec190e55df8e" + }, + "tags": [], + "uuid": "3abfbe03-c048-5efb-82e4-903d85a655a3", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_error_case_condition_0_log", + "config": {}, + "test": "", + "uuid": "67577af4-1816-45f6-936d-981b04d2a7c1", + "destination_block": "c980a5fd-a7b0-53e8-bb23-8b9737009788", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 211 + }, + "name": "QuestionError", + "uuid": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 215 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "error", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "c980a5fd-a7b0-53e8-bb23-8b9737009788", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "if(is_nil_or_empty(question.error), assessment_data.generic_error, question.error)", + "config": {}, + "test": "", + "uuid": "dd8c062e-3957-43e6-bfcb-9af61cea0f31", + "destination_block": "52cf7a9a-cf7a-5ade-b12f-9e4384066d81", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 211 + }, + "name": "QuestionError", + "uuid": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 220 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "type", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "52cf7a9a-cf7a-5ade-b12f-9e4384066d81", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].question_type", + "config": {}, + "test": "", + "uuid": "c13dc191-be44-46b0-8f5d-2b2b45eed17f", + "destination_block": "492c218a-6349-5252-bb75-d3915938721e", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 211 + }, + "name": "QuestionError", + "uuid": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 221 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "replace_min", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "492c218a-6349-5252-bb75-d3915938721e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "substitute(\"@error\", \"{min}\", \"@min\")", + "config": {}, + "test": "", + "uuid": "160dc2a2-f05d-47ff-971a-35fcafbaacdd", + "destination_block": "5c7c0827-cf99-50cc-9c8e-73616c3d1c68", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 211 + }, + "name": "QuestionError", + "uuid": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 222 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "substituted_text", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "5c7c0827-cf99-50cc-9c8e-73616c3d1c68", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "substitute(\"@replace_min\", \"{max}\", \"@max\")", + "config": {}, + "test": "", + "uuid": "2486ff22-644e-4a6d-b4b2-518504a7fe38", + "destination_block": "1206d7b6-cbb3-51e5-984e-3e7746d09eac", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 211 + }, + "name": "QuestionError", + "uuid": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 223 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "styled_error", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "1206d7b6-cbb3-51e5-984e-3e7746d09eac", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"*Error:*\", \" \", \"@substituted_text\")", + "config": {}, + "test": "", + "uuid": "0cd7d73a-e73d-452d-b166-c874f57264a3", + "destination_block": "43e91bce-9971-58e3-af21-4f10efa76054", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 211 + }, + "name": "QuestionError", + "uuid": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 224 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_error_case_condition_0_text", + "type": "MobilePrimitives.Message", + "config": { + "prompt": "a7338490-5783-44f2-9324-c01f4b280548" + }, + "tags": [], + "uuid": "43e91bce-9971-58e3-af21-4f10efa76054", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"CheckEnd\"", + "config": {}, + "test": "", + "uuid": "5edf4de2-b622-47cd-850c-368ee0e05116", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\" and lower(\"@question_response\") != \"skip\"", + "meta": { + "column": 1, + "line": 211 + }, + "name": "QuestionError", + "uuid": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b" + }, + "card_item": { + "meta": { + "column": 3, + "line": 225 + }, + "text": {}, + "type": "text" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "explainer", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "6e8bb9e0-51ac-5785-b57a-1f1092a6acf4", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "if(is_nil_or_empty(question.explainer), \"*Explainer:* There's no explainer for this.\", concatenate(\"*Explainer:*\", \" \", question.explainer))", + "config": {}, + "test": "", + "uuid": "cbeeca42-eff4-428b-b8a8-48775141a2ab", + "destination_block": "0244520a-06a8-576d-8cf5-327ed5e60da0", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 160 + }, + "name": "AgeExplainer", + "uuid": "cc09face-a30d-51b6-ad04-87424a554cdc" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 161 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "age_explainer_text", + "type": "MobilePrimitives.Message", + "config": { + "prompt": "a79e9713-3fcd-4ee1-9be6-3d2d8dd3ac42" + }, + "tags": [], + "uuid": "0244520a-06a8-576d-8cf5-327ed5e60da0", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"GetQuestion\"", + "config": {}, + "test": "", + "uuid": "fa1c68f6-d4db-4156-8d8f-5b38b21bd44f", + "destination_block": "8ae32387-1563-5b4e-bd29-37ff2a3e5ccf", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 160 + }, + "name": "AgeExplainer", + "uuid": "cc09face-a30d-51b6-ad04-87424a554cdc" + }, + "card_item": { + "meta": { + "column": 3, + "line": 168 + }, + "text": {}, + "type": "text" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "validate_age_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "8dd16dbc-b714-56d2-88e2-513d738e5a27", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for validate_age_case_condition_0", + "config": {}, + "test": "has_all_members(keywords, [question_response]) == true", + "uuid": "f1496782-68ef-4104-8826-30d359149dba", + "destination_block": "72b095af-9dbb-5b5b-b5e1-a767f55c926f", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for validate_age_case_condition_1", + "config": {}, + "test": "or(not(isnumber(question_response)), question_response > 150)", + "uuid": "a2c0dfb4-507f-4d1a-a2e2-dee4db0f23fa", + "destination_block": "9cfebafe-defc-5d77-96e0-24284689a769", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for validate_age_case_condition_2", + "config": {}, + "test": null, + "uuid": "ded069fc-8d73-4957-8b45-bf7c80bfc26e", + "destination_block": "9da9f307-1c40-5e52-8f6f-136a5e380920", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_all_members(keywords, [@question_response]) == true", + "meta": { + "column": 1, + "line": 146 + }, + "name": "ValidateAge", + "uuid": "8dd16dbc-b714-56d2-88e2-513d738e5a27" + } + } + } + } + } + } + }, + { + "label": null, + "name": "validate_age_case_condition_2_log", + "type": "Core.Log", + "config": { + "message": "ac9b4a8a-b34e-49bd-befa-c77cdea6376f" + }, + "tags": [], + "uuid": "9da9f307-1c40-5e52-8f6f-136a5e380920", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"QuestionResponse\"", + "config": {}, + "test": "", + "uuid": "df2a4d31-db0d-4c63-b359-f66f84425f52", + "destination_block": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 156 + }, + "name": "ValidateAge", + "uuid": "aa24f5cb-72b4-54e3-b04c-67b74abdb628" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 157 + }, + "type": "log" + }, + "index": 2 + } + } + } + } + } + }, + { + "label": null, + "name": "validate_age_case_condition_1_log", + "type": "Core.Log", + "config": { + "message": "0b6fa68a-fe90-4af7-a82c-25657af3d38b" + }, + "tags": [], + "uuid": "9cfebafe-defc-5d77-96e0-24284689a769", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"QuestionError\"", + "config": {}, + "test": "", + "uuid": "cf5d37e9-a486-4136-8b93-82a45bd30bd0", + "destination_block": "7b4a5b3c-e903-5627-a074-8dc026ebcb8b", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "not isnumber(question_response) or question_response > 150", + "meta": { + "column": 1, + "line": 151 + }, + "name": "ValidateAge", + "uuid": "f38c021a-40cc-545f-9033-140b83d215e6" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 153 + }, + "type": "log" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "validate_age_case_condition_0_log", + "type": "Core.Log", + "config": { + "message": "2294f41d-13d9-4ccd-a17c-7f3f1b79de18" + }, + "tags": [], + "uuid": "72b095af-9dbb-5b5b-b5e1-a767f55c926f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"AgeExplainer\"", + "config": {}, + "test": "", + "uuid": "ea7bc452-92e2-4797-9045-bd437bcb73e5", + "destination_block": "6e8bb9e0-51ac-5785-b57a-1f1092a6acf4", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_all_members(keywords, [@question_response]) == true", + "meta": { + "column": 1, + "line": 146 + }, + "name": "ValidateAge", + "uuid": "8dd16dbc-b714-56d2-88e2-513d738e5a27" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 148 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_explainer_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "802042c7-f7d3-5f2e-b639-cddfe9a63eed", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for question_explainer_case_condition_0", + "config": {}, + "test": "has_all_members(keywords, [question_response])", + "uuid": "1db8d0f6-1e55-432a-b560-890adc11d6a2", + "destination_block": "9de56df7-8754-50ae-856b-d624f58908c5", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for question_explainer_case_condition_1", + "config": {}, + "test": null, + "uuid": "8f959c30-a7d4-422a-a8ee-bc8f7904b27e", + "destination_block": "d07b24e3-022c-5480-8117-8ef36af66eeb", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_all_members(keywords, [@question_response])", + "meta": { + "column": 1, + "line": 171 + }, + "name": "QuestionExplainer", + "uuid": "802042c7-f7d3-5f2e-b639-cddfe9a63eed" + } + } + } + } + } + } + }, + { + "label": null, + "name": "type", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "d07b24e3-022c-5480-8117-8ef36af66eeb", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].question_type", + "config": {}, + "test": "", + "uuid": "ee4028d3-9af5-434d-9dca-ad0cfa6d9498", + "destination_block": "e03c1417-e21c-5c31-bc7f-08e35556f119", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 182 + }, + "name": "QuestionExplainer", + "uuid": "d0be1031-7733-52ba-851e-78f269a36238" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 183 + }, + "type": "expression" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "question_explainer_case_condition_1_log", + "type": "Core.Log", + "config": { + "message": "10623aec-155d-4c69-968f-39c061925dad" + }, + "tags": [], + "uuid": "e03c1417-e21c-5c31-bc7f-08e35556f119", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_explainer_case_condition_1_log", + "config": {}, + "test": "", + "uuid": "bb2adb8e-100b-4e3f-abb6-e4e6d4aa67de", + "destination_block": "1a2e4de3-c2ae-52cd-acf9-83c3b6769919", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 182 + }, + "name": "QuestionExplainer", + "uuid": "d0be1031-7733-52ba-851e-78f269a36238" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 184 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_explainer_case_condition_1_log", + "type": "Core.Log", + "config": { + "message": "07c769cf-cbf0-4f19-a48f-c45c9eb512b5" + }, + "tags": [], + "uuid": "1a2e4de3-c2ae-52cd-acf9-83c3b6769919", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"ValidateInput\"", + "config": {}, + "test": "", + "uuid": "329612fc-54e3-4601-943b-45b2c29379d8", + "destination_block": "c18fd5f1-50bb-517d-b139-f95bf0ec483d", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 182 + }, + "name": "QuestionExplainer", + "uuid": "d0be1031-7733-52ba-851e-78f269a36238" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 185 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "explainer", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "9de56df7-8754-50ae-856b-d624f58908c5", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "if(is_nil_or_empty(question.explainer), \"*Explainer:* There's no explainer for this.\", concatenate(\"*Explainer:*\", \" \", question.explainer))", + "config": {}, + "test": "", + "uuid": "5a142f41-3645-4ab2-927c-f3bef98cf489", + "destination_block": "8e1f8c22-e920-5f2f-8270-0375aedd4678", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_all_members(keywords, [@question_response])", + "meta": { + "column": 1, + "line": 171 + }, + "name": "QuestionExplainer", + "uuid": "802042c7-f7d3-5f2e-b639-cddfe9a63eed" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 172 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_explainer_case_condition_0_text", + "type": "MobilePrimitives.Message", + "config": { + "prompt": "fce68f45-5f10-4ae2-8bbd-4dbf876e52e1" + }, + "tags": [], + "uuid": "8e1f8c22-e920-5f2f-8270-0375aedd4678", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"GetQuestion\"", + "config": {}, + "test": "", + "uuid": "83fe5602-de27-4afd-8db4-50fb9f03954b", + "destination_block": "8ae32387-1563-5b4e-bd29-37ff2a3e5ccf", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_all_members(keywords, [@question_response])", + "meta": { + "column": 1, + "line": 171 + }, + "name": "QuestionExplainer", + "uuid": "802042c7-f7d3-5f2e-b639-cddfe9a63eed" + }, + "card_item": { + "meta": { + "column": 3, + "line": 179 + }, + "text": {}, + "type": "text" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "display_answer_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "066ffca5-6baa-5331-a1c3-75a7eb8c8b77", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "answer_num + 1", + "config": {}, + "test": "", + "uuid": "05df2040-8618-488f-bfe3-7eb8fc08ef48", + "destination_block": "2b4aabed-cbfe-5af7-b44d-46637a8c8ed2", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 303 + }, + "name": "DisplayMultiselectAnswer", + "uuid": "72241757-c522-576c-b0e5-591f2cfbd14d" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 304 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "num_answers", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "2b4aabed-cbfe-5af7-b44d-46637a8c8ed2", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "count(question.answers)", + "config": {}, + "test": "", + "uuid": "f180be3f-34fa-458a-a416-f91d79808c84", + "destination_block": "299adc5b-39dc-5b2a-80f9-486135371e11", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 303 + }, + "name": "DisplayMultiselectAnswer", + "uuid": "72241757-c522-576c-b0e5-591f2cfbd14d" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 305 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_question_text", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "299adc5b-39dc-5b2a-80f9-486135371e11", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "\"@question_text\"", + "config": {}, + "test": "", + "uuid": "1bec616a-dccf-47ac-a616-3b5d77b146f0", + "destination_block": "22f917b9-0c97-54b1-94bf-8a7511a82e61", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 303 + }, + "name": "DisplayMultiselectAnswer", + "uuid": "72241757-c522-576c-b0e5-591f2cfbd14d" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 306 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "answer", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "22f917b9-0c97-54b1-94bf-8a7511a82e61", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question.answers[answer_num]", + "config": {}, + "test": "", + "uuid": "5f785d92-2ff7-461f-be2f-fc78e2d48135", + "destination_block": "20882d6c-2669-5a5b-a3b8-e2bbdd640bb7", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 303 + }, + "name": "DisplayMultiselectAnswer", + "uuid": "72241757-c522-576c-b0e5-591f2cfbd14d" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 307 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "answer_text", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "20882d6c-2669-5a5b-a3b8-e2bbdd640bb7", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "answer.answer", + "config": {}, + "test": "", + "uuid": "9ff19429-e69f-4c42-a06e-21cdd7d8f7fc", + "destination_block": "040a8f52-74ab-5d25-b5ed-9b8c61416af9", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 303 + }, + "name": "DisplayMultiselectAnswer", + "uuid": "72241757-c522-576c-b0e5-591f2cfbd14d" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 308 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_question_text", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "040a8f52-74ab-5d25-b5ed-9b8c61416af9", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(multiselect_question_text, \"@unichar(10)\", \"@unichar(10)\", \"@answer_text\", \"@unichar(10)\", \"@unichar(10)\", \"@display_answer_num / @num_answers\")", + "config": {}, + "test": "", + "uuid": "e9ec4ec0-7b04-4bde-b429-b23e4ac29432", + "destination_block": "f89726ce-0998-5b8c-bd8d-f499d4bb8ed6", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 303 + }, + "name": "DisplayMultiselectAnswer", + "uuid": "72241757-c522-576c-b0e5-591f2cfbd14d" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 311 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response", + "type": "MobilePrimitives.SelectOneResponse", + "config": { + "prompt": "1f0a21c8-c37a-4d6b-b5f0-888c9eeaa779", + "choices": [ + { + "name": "multiselect_response_yes", + "prompt": "fe82f87f-3648-4e7c-b8d9-bd95ccd603c6", + "test": "block.response = \"Yes\"" + }, + { + "name": "multiselect_response_no", + "prompt": "c7a18fbf-94ee-4526-bcc8-a229dd59029b", + "test": "block.response = \"No\"" + } + ] + }, + "tags": [], + "uuid": "f89726ce-0998-5b8c-bd8d-f499d4bb8ed6", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": null, + "name": "multiselect_response_yes", + "config": {}, + "test": "block.value = \"multiselect_response_yes\"", + "uuid": "e0ba985c-e22d-4560-869d-e22ee69ce5a6", + "destination_block": "5bd7dcf5-1055-5c2f-87db-534ac94c1c47", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": null, + "name": "multiselect_response_no", + "config": {}, + "test": "block.value = \"multiselect_response_no\"", + "uuid": "18b41a63-58cf-4f3c-9f4e-7a969c5a91a6", + "destination_block": "e1367f7a-75c4-5622-bfb5-e9a3832b3c21", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Default exit to \"MultiselectError\"", + "config": {}, + "test": "", + "uuid": "3c89dccf-fe42-4e5d-b5b9-5c032f8ae3a4", + "destination_block": "205afeb9-04e6-5b84-8102-bb4631a81a99", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "buttons_metadata": {}, + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 303 + }, + "name": "DisplayMultiselectAnswer", + "uuid": "72241757-c522-576c-b0e5-591f2cfbd14d" + }, + "card_item": { + "button_block": {}, + "meta": { + "column": 3, + "line": 322 + }, + "type": "button_block" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "8ae32387-1563-5b4e-bd29-37ff2a3e5ccf", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num]", + "config": {}, + "test": "", + "uuid": "e5cb3e81-5d8c-4a84-a32f-f84426b73c49", + "destination_block": "6f89661d-0a3f-5bea-849e-2aaf3475d136", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 64 + }, + "name": "GetQuestion", + "uuid": "e027dd75-6574-5d1d-a262-ec4d19ff4672" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 65 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_text", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "6f89661d-0a3f-5bea-849e-2aaf3475d136", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question.question", + "config": {}, + "test": "", + "uuid": "9af975e1-d778-4ada-8f55-a5d83f75a94a", + "destination_block": "a95f4b7e-cf67-5bd4-8ffa-34e3d8068c46", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 64 + }, + "name": "GetQuestion", + "uuid": "e027dd75-6574-5d1d-a262-ec4d19ff4672" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 66 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "name", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "a95f4b7e-cf67-5bd4-8ffa-34e3d8068c46", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "if(is_nil_or_empty(contact.name), \"\", contact.name)", + "config": {}, + "test": "", + "uuid": "3533c21a-efa0-4fae-b446-229b16e052b3", + "destination_block": "b16b815c-c5e0-5c6a-86fc-c33b4fe2c79e", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 64 + }, + "name": "GetQuestion", + "uuid": "e027dd75-6574-5d1d-a262-ec4d19ff4672" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 69 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_text", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "b16b815c-c5e0-5c6a-86fc-c33b4fe2c79e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "substitute(question_text, \"{{name}}\", \"@name\")", + "config": {}, + "test": "", + "uuid": "a087b6b6-ef34-43a3-a344-58f10680dd7b", + "destination_block": "9ff3bcb3-256f-5fc2-b636-454c4fa816eb", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 64 + }, + "name": "GetQuestion", + "uuid": "e027dd75-6574-5d1d-a262-ec4d19ff4672" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 70 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "end_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "32ce1416-2d08-52eb-8ba7-089d0fc5fd7f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for end_case_condition_0", + "config": {}, + "test": "and(skip_count < skip_threshold, score_perc >= assessment_data.high_inflection)", + "uuid": "8dcff309-0807-46ec-a39c-245134d55482", + "destination_block": "b4c34329-dca9-5340-8878-9689ee2c30ac", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for end_case_condition_1", + "config": {}, + "test": "and(and(skip_count < skip_threshold, score_perc >= assessment_data.medium_inflection), score_perc < assessment_data.high_inflection)", + "uuid": "ce23e009-5620-4a3d-b561-19cfed673a92", + "destination_block": "37c82e80-95fb-5c49-b820-da8c8fd26d1b", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for end_case_condition_2", + "config": {}, + "test": "skip_count >= skip_threshold", + "uuid": "a278e777-c130-4761-90b9-ac05c8e546aa", + "destination_block": "311c5a8c-0961-53c0-988b-a7f644afc61f", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for end_case_condition_3", + "config": {}, + "test": null, + "uuid": "e4f411ea-1a24-4d4d-8c20-d57f4865219e", + "destination_block": "43ee3c32-86b4-5bcd-ad08-03899ca0091d", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 544 + }, + "name": "End", + "uuid": "32ce1416-2d08-52eb-8ba7-089d0fc5fd7f" + } + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "43ee3c32-86b4-5bcd-ad08-03899ca0091d", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_risk\")", + "config": {}, + "test": "", + "uuid": "defbcf34-5b9f-4553-bb93-e9493bd7f70d", + "destination_block": "16bd7076-4eab-5eee-b573-8789389b89b5", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 576 + }, + "name": "End", + "uuid": "135d85be-cce5-5d0c-af9e-fc591fdbaeca" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 577 + }, + "type": "expression" + }, + "index": 3 + } + } + } + } + } + }, + { + "label": null, + "name": "risk", + "type": "Core.Output", + "config": { + "value": "\"low\"" + }, + "tags": [], + "uuid": "16bd7076-4eab-5eee-b573-8789389b89b5", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "risk", + "config": {}, + "test": "", + "uuid": "b4b114c1-ecb8-43a9-b602-a4ac450d4a2b", + "destination_block": "a0c6c588-e330-5a98-9c87-906fe7beccb5", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 576 + }, + "name": "End", + "uuid": "135d85be-cce5-5d0c-af9e-fc591fdbaeca" + }, + "card_item": { + "meta": { + "column": 3, + "line": 578 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "end_case_condition_3_log", + "type": "Core.Log", + "config": { + "message": "b4f8d4ed-746f-495e-a8f9-9f2b87b4f73c" + }, + "tags": [], + "uuid": "a0c6c588-e330-5a98-9c87-906fe7beccb5", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "end_case_condition_3_log", + "config": {}, + "test": "", + "uuid": "1e6a7bff-869b-47f1-8ce7-aa946a5d6a37", + "destination_block": "e7f7b993-a666-54c6-8e04-725e545c4995", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 576 + }, + "name": "End", + "uuid": "135d85be-cce5-5d0c-af9e-fc591fdbaeca" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 579 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "page_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "e7f7b993-a666-54c6-8e04-725e545c4995", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "assessment_data.low_result_page.id", + "config": {}, + "test": "", + "uuid": "01734eb3-1e6c-4c1f-8124-9fe0e99feda7", + "destination_block": "574b011a-3fbf-56ca-b509-3028f2432ad2", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 576 + }, + "name": "End", + "uuid": "135d85be-cce5-5d0c-af9e-fc591fdbaeca" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 580 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for end_case_condition_3", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "574b011a-3fbf-56ca-b509-3028f2432ad2", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for FetchEndPage", + "config": {}, + "test": "true", + "uuid": "9c12e66b-21d1-452f-83ee-c538338317bd", + "destination_block": "b6ee063e-540d-5f33-a2e9-313b9a36ef1e", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 576 + }, + "name": "End", + "uuid": "135d85be-cce5-5d0c-af9e-fc591fdbaeca" + }, + "card_item": { + "meta": { + "column": 3, + "line": 582 + }, + "then": {}, + "type": "then" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "311c5a8c-0961-53c0-988b-a7f644afc61f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_risk\")", + "config": {}, + "test": "", + "uuid": "b9c7c2f5-ffa5-46bf-8dca-e56562a097ad", + "destination_block": "848bae66-a5fc-5cb6-8e5b-73edda351a10", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count >= skip_threshold", + "meta": { + "column": 1, + "line": 567 + }, + "name": "End", + "uuid": "8af47823-4747-5abf-9246-0ea6b60fa78e" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 568 + }, + "type": "expression" + }, + "index": 2 + } + } + } + } + } + }, + { + "label": null, + "name": "risk", + "type": "Core.Output", + "config": { + "value": "\"skip_high\"" + }, + "tags": [], + "uuid": "848bae66-a5fc-5cb6-8e5b-73edda351a10", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "risk", + "config": {}, + "test": "", + "uuid": "451d9a6e-d20d-48c3-83a0-a953faec9b12", + "destination_block": "40282068-cb9a-5bfa-990f-eb53467eba81", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count >= skip_threshold", + "meta": { + "column": 1, + "line": 567 + }, + "name": "End", + "uuid": "8af47823-4747-5abf-9246-0ea6b60fa78e" + }, + "card_item": { + "meta": { + "column": 3, + "line": 569 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "end_case_condition_2_log", + "type": "Core.Log", + "config": { + "message": "039e41ea-628e-46c3-8ccd-fa6cef38947a" + }, + "tags": [], + "uuid": "40282068-cb9a-5bfa-990f-eb53467eba81", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "end_case_condition_2_log", + "config": {}, + "test": "", + "uuid": "7331e359-20a0-454e-96e8-358edd840e0a", + "destination_block": "f4783a24-824f-5c7d-8171-373c5f73a385", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count >= skip_threshold", + "meta": { + "column": 1, + "line": 567 + }, + "name": "End", + "uuid": "8af47823-4747-5abf-9246-0ea6b60fa78e" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 570 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "page_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "f4783a24-824f-5c7d-8171-373c5f73a385", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "assessment_data.skip_high_result_page.id", + "config": {}, + "test": "", + "uuid": "2e450766-1239-48a5-b2e7-1391ce51a091", + "destination_block": "0d734a78-1971-535b-9574-2b7cb8d0367d", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count >= skip_threshold", + "meta": { + "column": 1, + "line": 567 + }, + "name": "End", + "uuid": "8af47823-4747-5abf-9246-0ea6b60fa78e" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 571 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for end_case_condition_2", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "0d734a78-1971-535b-9574-2b7cb8d0367d", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for FetchEndPage", + "config": {}, + "test": "true", + "uuid": "ea8861aa-f162-4198-95a0-478f6238a3d2", + "destination_block": "b6ee063e-540d-5f33-a2e9-313b9a36ef1e", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count >= skip_threshold", + "meta": { + "column": 1, + "line": 567 + }, + "name": "End", + "uuid": "8af47823-4747-5abf-9246-0ea6b60fa78e" + }, + "card_item": { + "meta": { + "column": 3, + "line": 573 + }, + "then": {}, + "type": "then" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "37c82e80-95fb-5c49-b820-da8c8fd26d1b", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_risk\")", + "config": {}, + "test": "", + "uuid": "782395ab-d083-4d94-a13a-9de4e752315a", + "destination_block": "b48dc3bd-ae58-5c70-85ae-1d6836623329", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.medium_inflection and score_perc < assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 555 + }, + "name": "End", + "uuid": "a7d1d4b4-8704-5c4e-b2bf-6a047180c846" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 559 + }, + "type": "expression" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "risk", + "type": "Core.Output", + "config": { + "value": "\"medium\"" + }, + "tags": [], + "uuid": "b48dc3bd-ae58-5c70-85ae-1d6836623329", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "risk", + "config": {}, + "test": "", + "uuid": "fbe9f3ce-0165-46a8-9edb-d2ad2dca4fce", + "destination_block": "aa8d7962-e200-5afb-966a-f9b26090e4ae", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.medium_inflection and score_perc < assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 555 + }, + "name": "End", + "uuid": "a7d1d4b4-8704-5c4e-b2bf-6a047180c846" + }, + "card_item": { + "meta": { + "column": 3, + "line": 560 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "end_case_condition_1_log", + "type": "Core.Log", + "config": { + "message": "d8781be6-2dfc-4169-ba0f-253114f96b73" + }, + "tags": [], + "uuid": "aa8d7962-e200-5afb-966a-f9b26090e4ae", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "end_case_condition_1_log", + "config": {}, + "test": "", + "uuid": "30949fcd-93e8-4e45-a113-11ce40b586c8", + "destination_block": "56945c1a-a3bd-5ee0-b06c-4a9706eb7c69", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.medium_inflection and score_perc < assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 555 + }, + "name": "End", + "uuid": "a7d1d4b4-8704-5c4e-b2bf-6a047180c846" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 561 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "page_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "56945c1a-a3bd-5ee0-b06c-4a9706eb7c69", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "assessment_data.medium_result_page.id", + "config": {}, + "test": "", + "uuid": "13ffbc13-118d-4074-95ac-4d011315161e", + "destination_block": "f1741d34-74a2-5628-95fc-efec3a596771", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.medium_inflection and score_perc < assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 555 + }, + "name": "End", + "uuid": "a7d1d4b4-8704-5c4e-b2bf-6a047180c846" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 562 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for end_case_condition_1", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "f1741d34-74a2-5628-95fc-efec3a596771", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for FetchEndPage", + "config": {}, + "test": "true", + "uuid": "44ed46c0-70b6-4c5a-a7a3-72ec0d209397", + "destination_block": "b6ee063e-540d-5f33-a2e9-313b9a36ef1e", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.medium_inflection and score_perc < assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 555 + }, + "name": "End", + "uuid": "a7d1d4b4-8704-5c4e-b2bf-6a047180c846" + }, + "card_item": { + "meta": { + "column": 3, + "line": 564 + }, + "then": {}, + "type": "then" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "b4c34329-dca9-5340-8878-9689ee2c30ac", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_risk\")", + "config": {}, + "test": "", + "uuid": "457984b1-83f2-4185-87c5-412d08e0488d", + "destination_block": "5ea0a296-a5dc-5848-a55c-e11a384f75bf", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 544 + }, + "name": "End", + "uuid": "32ce1416-2d08-52eb-8ba7-089d0fc5fd7f" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 547 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "risk", + "type": "Core.Output", + "config": { + "value": "\"high\"" + }, + "tags": [], + "uuid": "5ea0a296-a5dc-5848-a55c-e11a384f75bf", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "risk", + "config": {}, + "test": "", + "uuid": "9ea6c0f2-b43f-443c-8a92-d1ee74ebc7b8", + "destination_block": "c2fc571a-5ec7-5f04-9d67-59719da707ea", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 544 + }, + "name": "End", + "uuid": "32ce1416-2d08-52eb-8ba7-089d0fc5fd7f" + }, + "card_item": { + "meta": { + "column": 3, + "line": 548 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "end_case_condition_0_log", + "type": "Core.Log", + "config": { + "message": "ad34c216-ecaa-404f-9233-a241f2b62be0" + }, + "tags": [], + "uuid": "c2fc571a-5ec7-5f04-9d67-59719da707ea", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "end_case_condition_0_log", + "config": {}, + "test": "", + "uuid": "1bc089ee-84ec-4c02-ac1b-cd03ff8a3a63", + "destination_block": "d59c76bd-670d-5487-a5f4-61c529169818", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 544 + }, + "name": "End", + "uuid": "32ce1416-2d08-52eb-8ba7-089d0fc5fd7f" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 549 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "page_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "d59c76bd-670d-5487-a5f4-61c529169818", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "assessment_data.high_result_page.id", + "config": {}, + "test": "", + "uuid": "64cc1c00-4f32-4062-882d-0281373845fd", + "destination_block": "89eac389-c9f8-5174-bc31-0dc5dec6e559", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 544 + }, + "name": "End", + "uuid": "32ce1416-2d08-52eb-8ba7-089d0fc5fd7f" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 550 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for end_case_condition_0", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "89eac389-c9f8-5174-bc31-0dc5dec6e559", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for FetchEndPage", + "config": {}, + "test": "true", + "uuid": "61162133-9ddc-4b91-935e-b793762f048a", + "destination_block": "b6ee063e-540d-5f33-a2e9-313b9a36ef1e", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "skip_count < skip_threshold and score_perc >= assessment_data.high_inflection", + "meta": { + "column": 1, + "line": 544 + }, + "name": "End", + "uuid": "32ce1416-2d08-52eb-8ba7-089d0fc5fd7f" + }, + "card_item": { + "meta": { + "column": 3, + "line": 552 + }, + "then": {}, + "type": "then" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "check_end_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for check_end_case_condition_0", + "config": {}, + "test": "question_num == count(questions)", + "uuid": "27387196-bef5-4fe1-afdb-2473fe0b79ea", + "destination_block": "77a491ab-a8e3-58e6-ba46-a57d5f5f805a", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for check_end_case_condition_1", + "config": {}, + "test": null, + "uuid": "087b037d-4fae-45e0-b1b1-95438ffec0e7", + "destination_block": "c6f4022a-be64-5b41-9f6f-7da036dd453e", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_num == count(questions)", + "meta": { + "column": 1, + "line": 49 + }, + "name": "CheckEnd", + "uuid": "cebd16e3-4d94-572c-bcd1-6def9e904347" + } + } + } + } + } + } + }, + { + "label": null, + "name": "Routing for check_end_case_condition_1", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "c6f4022a-be64-5b41-9f6f-7da036dd453e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for GetQuestion", + "config": {}, + "test": "true", + "uuid": "0f86c6b2-ac93-4d24-9fb4-74531c7d6e35", + "destination_block": "8ae32387-1563-5b4e-bd29-37ff2a3e5ccf", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 60 + }, + "name": "CheckEnd", + "uuid": "56017223-732a-571c-89a3-81b7fefe550d" + }, + "card_item": { + "meta": { + "column": 3, + "line": 61 + }, + "then": {}, + "type": "then" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "score_perc", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "77a491ab-a8e3-58e6-ba46-a57d5f5f805a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "score / max(max_score, 1) * 100", + "config": {}, + "test": "", + "uuid": "c9ec8fb0-3236-441f-86dc-a883ec48ee05", + "destination_block": "422dbc5b-e5fe-5db3-9275-420b80057854", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_num == count(questions)", + "meta": { + "column": 1, + "line": 49 + }, + "name": "CheckEnd", + "uuid": "cebd16e3-4d94-572c-bcd1-6def9e904347" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 55 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "slug_end", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "422dbc5b-e5fe-5db3-9275-420b80057854", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(slug, \"_\", version, \"_end\")", + "config": {}, + "test": "", + "uuid": "2cfb5476-c069-4dd6-b603-4ca39b8961ad", + "destination_block": "8495e5c4-8cb8-570b-b4b6-e9bb41174ff7", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_num == count(questions)", + "meta": { + "column": 1, + "line": 49 + }, + "name": "CheckEnd", + "uuid": "cebd16e3-4d94-572c-bcd1-6def9e904347" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 56 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "end", + "type": "Core.Output", + "config": { + "value": "\"@assessment_data.slug\"" + }, + "tags": [], + "uuid": "8495e5c4-8cb8-570b-b4b6-e9bb41174ff7", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"End\"", + "config": {}, + "test": "", + "uuid": "ab6b6f83-543a-47d2-b46e-22960666978f", + "destination_block": "32ce1416-2d08-52eb-8ba7-089d0fc5fd7f", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "question_num == count(questions)", + "meta": { + "column": 1, + "line": 49 + }, + "name": "CheckEnd", + "uuid": "cebd16e3-4d94-572c-bcd1-6def9e904347" + }, + "card_item": { + "meta": { + "column": 3, + "line": 57 + }, + "type": "write_result", + "write_result": { + "label": "@slug_end" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "get_assessment_log", + "type": "Core.Log", + "config": { + "message": "138f8461-28c7-470c-8a39-32b61cd5aac5" + }, + "tags": [], + "uuid": "53f47793-39d4-5241-9309-a82a22dde970", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "get_assessment_log", + "config": {}, + "test": "", + "uuid": "1eabba06-0712-4cd0-b18f-7423cd9121e5", + "destination_block": "aab449fd-3210-5616-892f-be733693a0dd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 4 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "response", + "type": "Io.Turn.Webhook", + "config": { + "timeout": 5000, + "mode": "sync", + "body": null, + "url": "https://content-repo-api-qa.prk-k8s.prd-p6t.org/api/v2/assessment/", + "query": [ + [ + "tag", + "breastfeeding_quiz" + ] + ], + "headers": [ + [ + "content-type", + "application/json" + ], + [ + "authorization", + "Token @global.config.contentrepo_token" + ] + ], + "method": "GET", + "cache_ttl": 60000 + }, + "tags": [], + "uuid": "aab449fd-3210-5616-892f-be733693a0dd", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "response", + "config": {}, + "test": "", + "uuid": "4a03c3d0-5e6f-4c2e-b350-6de3dfab27f3", + "destination_block": "eeaef0cf-3fb3-564e-8b04-c3a525512ff4", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "meta": { + "column": 3, + "line": 6 + }, + "type": "webhook", + "webhook": {} + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "assessment_data", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "eeaef0cf-3fb3-564e-8b04-c3a525512ff4", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "response.body.results[0]", + "config": {}, + "test": "", + "uuid": "6489cd2a-9f22-4fb8-80a6-ed9d2ea2d34d", + "destination_block": "6491d76a-9dd1-5dc4-b24e-1f151b25fd99", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 20 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "questions", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "6491d76a-9dd1-5dc4-b24e-1f151b25fd99", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "assessment_data[\"questions\"]", + "config": {}, + "test": "", + "uuid": "ab3c9087-5a58-4931-895f-0d7486859c83", + "destination_block": "39a6a669-d465-5cbf-9486-a7ad9903ade3", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 21 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "locale", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "39a6a669-d465-5cbf-9486-a7ad9903ade3", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "assessment_data[\"locale\"]", + "config": {}, + "test": "", + "uuid": "d5d18234-b4f5-4f45-87d9-dd6cc298934f", + "destination_block": "fa402751-ae06-5d05-8c46-b17aede57e90", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 22 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "slug", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "fa402751-ae06-5d05-8c46-b17aede57e90", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "assessment_data[\"slug\"]", + "config": {}, + "test": "", + "uuid": "35d6539a-2450-4552-880f-d83ae4ba27fc", + "destination_block": "a6568c9d-de22-5a47-89a4-8c6ac7a05cae", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 23 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "version", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "a6568c9d-de22-5a47-89a4-8c6ac7a05cae", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "assessment_data[\"version\"]", + "config": {}, + "test": "", + "uuid": "b7ef008f-966a-442a-8211-7f47e128b345", + "destination_block": "8fd838c5-8218-55d8-b6b2-20b68a736552", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 24 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "8fd838c5-8218-55d8-b6b2-20b68a736552", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "0", + "config": {}, + "test": "", + "uuid": "94f737f6-d51a-44bc-b457-233d743f9e63", + "destination_block": "60a27ceb-7865-50ca-a134-49acc835931f", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 25 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "score", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "60a27ceb-7865-50ca-a134-49acc835931f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "0", + "config": {}, + "test": "", + "uuid": "586da251-5a2d-43f7-8c8b-961d2df4bb50", + "destination_block": "e6124f69-5d07-5225-8a96-07007f27eafe", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 26 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "min", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "e6124f69-5d07-5225-8a96-07007f27eafe", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "0", + "config": {}, + "test": "", + "uuid": "0fcc8aba-8a35-4d90-9096-b9d6f64a576d", + "destination_block": "37ae5eb6-cf20-5882-974b-6ba53a158031", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 27 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "max", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "37ae5eb6-cf20-5882-974b-6ba53a158031", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "0", + "config": {}, + "test": "", + "uuid": "15a6c146-e8db-4f06-87b1-571fed0f42d3", + "destination_block": "1648a6fc-60a5-5598-8ada-1b784be86694", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 28 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "assertion", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "1648a6fc-60a5-5598-8ada-1b784be86694", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "\"\"", + "config": {}, + "test": "", + "uuid": "657e4625-c765-44e0-918b-a827dad03b9d", + "destination_block": "48bb0531-d96f-593c-81fb-1ad12d44742e", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 29 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "get_today", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "48bb0531-d96f-593c-81fb-1ad12d44742e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "today()", + "config": {}, + "test": "", + "uuid": "ce52cc6e-15a2-4380-8f59-ad7d97bace81", + "destination_block": "8c3a9347-333a-51dd-b02f-38f652dbfd6c", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 30 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "get_year", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "8c3a9347-333a-51dd-b02f-38f652dbfd6c", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "year(get_today)", + "config": {}, + "test": "", + "uuid": "50017a18-bb45-4766-8b20-fd4f444a4d09", + "destination_block": "7eb8b96a-4963-58bc-a488-e934ddc1dbca", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 31 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "range", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "7eb8b96a-4963-58bc-a488-e934ddc1dbca", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "120", + "config": {}, + "test": "", + "uuid": "8d172da2-cc2d-4d18-aac4-2910474674fb", + "destination_block": "e4fdc9d8-8138-5798-a811-3fbacd1a5072", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 32 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "max_score", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "e4fdc9d8-8138-5798-a811-3fbacd1a5072", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "0", + "config": {}, + "test": "", + "uuid": "a9e3c185-7d66-4ea5-bc2e-e0eca3f9eced", + "destination_block": "3e4fbb41-33e5-5841-8dbb-817b174a1129", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 33 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "skip_count", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "3e4fbb41-33e5-5841-8dbb-817b174a1129", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "0", + "config": {}, + "test": "", + "uuid": "0c9d92b8-5a4c-4cb6-9b3c-a97d9577a7dc", + "destination_block": "3c894579-86e8-5648-9c68-408ebc9e6ef5", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 34 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "skip_threshold", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "3c894579-86e8-5648-9c68-408ebc9e6ef5", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "assessment_data[\"skip_threshold\"]", + "config": {}, + "test": "", + "uuid": "704cc22e-9d0c-4a06-955b-105c0e242b56", + "destination_block": "04fb10a1-e739-5c07-a855-ccf80c131b9e", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 35 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "keywords", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "04fb10a1-e739-5c07-a855-ccf80c131b9e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "[\"why\", \"wy\", \"wh\", \"explain\", \"expain\", \"eplain\"]", + "config": {}, + "test": "", + "uuid": "65ee27c6-dbf7-4954-a6ca-f6b9244773cd", + "destination_block": "9e433261-593c-548e-87af-692ee6404dc8", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 40 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "get_assessment_log", + "type": "Core.Log", + "config": { + "message": "19151191-bea8-4c09-b0f3-c9f8046aaa93" + }, + "tags": [], + "uuid": "9e433261-593c-548e-87af-692ee6404dc8", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "get_assessment_log", + "config": {}, + "test": "", + "uuid": "63b9d877-acfa-4ff7-804f-a76751fe00c6", + "destination_block": "0febd387-4a98-5c65-ad4b-b5a51489240b", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 42 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "version", + "type": "Core.Output", + "config": { + "value": "\"@version\"" + }, + "tags": [], + "uuid": "0febd387-4a98-5c65-ad4b-b5a51489240b", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "version", + "config": {}, + "test": "", + "uuid": "cdc47824-6445-40ff-91a1-b9cda822bd3d", + "destination_block": "be94bf21-0c15-5722-85c9-e86493d32c8b", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "meta": { + "column": 3, + "line": 43 + }, + "type": "write_result", + "write_result": {} + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "v_start", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "be94bf21-0c15-5722-85c9-e86493d32c8b", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(slug, \"_\", version, \"_started\")", + "config": {}, + "test": "", + "uuid": "2c877ec6-5881-47e1-83d5-cfd421b723a1", + "destination_block": "9ff6a5ca-7441-59d3-ad29-1f8c949baf1a", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 44 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "started", + "type": "Core.Output", + "config": { + "value": "\"@config.items.assessment_tag\"" + }, + "tags": [], + "uuid": "9ff6a5ca-7441-59d3-ad29-1f8c949baf1a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "started", + "config": {}, + "test": "", + "uuid": "e9c1f865-1f94-4553-ada6-8008538c572a", + "destination_block": "9e045a4c-ede7-5f3f-a928-bf36bd78645f", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "meta": { + "column": 3, + "line": 45 + }, + "type": "write_result", + "write_result": { + "label": "@v_start" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "locale", + "type": "Core.Output", + "config": { + "value": "\"@locale\"" + }, + "tags": [], + "uuid": "9e045a4c-ede7-5f3f-a928-bf36bd78645f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"CheckEnd\"", + "config": {}, + "test": "", + "uuid": "911bc5d5-f0ab-4f75-b075-a2c5ff054243", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 3 + }, + "name": "GetAssessment", + "uuid": "bd0d63f3-c347-579a-bbb1-71431ecacfcb" + }, + "card_item": { + "meta": { + "column": 3, + "line": 46 + }, + "type": "write_result", + "write_result": {} + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for question_response_case_condition_0", + "config": {}, + "test": "questions[question_num].question_type == \"integer_question\"", + "uuid": "731fa409-6883-4b63-a34e-b4b737821429", + "destination_block": "a44f58c1-3ccc-5bc7-999b-5dda5295adac", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for question_response_case_condition_1", + "config": {}, + "test": "questions[question_num].question_type == \"freetext_question\"", + "uuid": "b3227edf-da13-4fcd-8b52-6bfa26f64dc4", + "destination_block": "715cf269-d69a-587f-a07f-34810992ada9", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for question_response_case_condition_2", + "config": {}, + "test": "questions[question_num].question_type == \"age_question\"", + "uuid": "284fae9f-e74a-4246-96a9-90fbaed93c61", + "destination_block": "1f96e9e2-63c7-5143-be23-ea5112986a87", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for question_response_case_condition_3", + "config": {}, + "test": "questions[question_num].question_type == \"year_of_birth_question\"", + "uuid": "d527d65a-1d32-45a0-940f-5ef8a622fd12", + "destination_block": "6db197a1-b65d-512d-a1df-98cda90bab6e", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for question_response_case_condition_4", + "config": {}, + "test": "and(has_member(map(question.answers, &lower(&1.answer)), \"never\"), lower(\"@question_response\") == \"never\")", + "uuid": "30d59f4f-8424-4b98-bf64-9a19e1d2a15d", + "destination_block": "af0f142f-ba7a-5604-b9f2-b43fd7097f83", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for question_response_case_condition_5", + "config": {}, + "test": "lower(\"@question_response\") == \"skip\"", + "uuid": "eb5cbd44-c7e5-49e8-9dfe-766afdfaeefc", + "destination_block": "a53bdbf6-4c7b-52a9-9965-257d63ea1c8d", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for question_response_case_condition_6", + "config": {}, + "test": null, + "uuid": "5111bc6a-ab99-4659-a76a-17741145dba1", + "destination_block": "b96ce683-a0fc-5688-88d5-89e376da3f7a", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + } + } + } + } + } + } + }, + { + "label": null, + "name": "scores", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "b96ce683-a0fc-5688-88d5-89e376da3f7a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "map(question.answers, & &1.score)", + "config": {}, + "test": "", + "uuid": "67c59b10-a7c3-4ff7-b905-9b6d3e8601b2", + "destination_block": "8ea2853b-c41c-53c7-b382-8820a8872c71", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 485 + }, + "type": "expression" + }, + "index": 6 + } + } + } + } + } + }, + { + "label": null, + "name": "max_question_score", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "8ea2853b-c41c-53c7-b382-8820a8872c71", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "reduce(scores, scores[0], &max(&1, &2))", + "config": {}, + "test": "", + "uuid": "b8b47469-c231-4c9e-a0ee-b25c24b23950", + "destination_block": "32947600-5964-553e-89bf-013dd61d5263", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 486 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "answer", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "32947600-5964-553e-89bf-013dd61d5263", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "find(question.answers, &(&1.answer == question_response))", + "config": {}, + "test": "", + "uuid": "5afe012d-506f-4e7a-8ecf-22c348d03467", + "destination_block": "ccd986f7-20b4-5560-9ec7-f8828250d0aa", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 487 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "ccd986f7-20b4-5560-9ec7-f8828250d0aa", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].semantic_id", + "config": {}, + "test": "", + "uuid": "03df7db6-4292-40c8-a1b5-6574039b0b8e", + "destination_block": "1676d0a7-61fd-5941-8a22-0179152c4432", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 488 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "1676d0a7-61fd-5941-8a22-0179152c4432", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question_num\")", + "config": {}, + "test": "", + "uuid": "fd164844-6149-451d-8bf2-e8aad1cd542c", + "destination_block": "6a8a3e3d-380b-5865-9f3b-37fa42a09c50", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 490 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Output", + "config": { + "value": "question_num" + }, + "tags": [], + "uuid": "6a8a3e3d-380b-5865-9f3b-37fa42a09c50", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num", + "config": {}, + "test": "", + "uuid": "42f4d626-58ea-4131-941f-c5eb0387b96c", + "destination_block": "4082ade6-5181-597e-bafe-dde1d5577ffb", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "meta": { + "column": 3, + "line": 491 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "4082ade6-5181-597e-bafe-dde1d5577ffb", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_\", \"@question_id\")", + "config": {}, + "test": "", + "uuid": "8e6e5f19-b478-4f74-a2c5-a8d702cd583d", + "destination_block": "37dd0b0d-96e2-57aa-bdea-e87879a0b825", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 493 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Output", + "config": { + "value": "answer.semantic_id" + }, + "tags": [], + "uuid": "37dd0b0d-96e2-57aa-bdea-e87879a0b825", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_id", + "config": {}, + "test": "", + "uuid": "14cd90c0-fff9-445e-84b7-d2ea87d68529", + "destination_block": "3ad49b1c-d111-5f55-b04f-691568dd4f47", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "meta": { + "column": 3, + "line": 494 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response_case_condition_6_log", + "type": "Core.Log", + "config": { + "message": "e5e5e3a9-1219-436a-9f7e-db04e036f955" + }, + "tags": [], + "uuid": "3ad49b1c-d111-5f55-b04f-691568dd4f47", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_response_case_condition_6_log", + "config": {}, + "test": "", + "uuid": "e3b167d4-5b9b-4911-8526-eadde1672aba", + "destination_block": "2fca3cf8-4c5b-5927-9028-50e3e225770d", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 496 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "max_score", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "2fca3cf8-4c5b-5927-9028-50e3e225770d", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "max_score + max_question_score", + "config": {}, + "test": "", + "uuid": "12a1c2a1-8d26-492d-af9b-ea5c63d4b057", + "destination_block": "b6eb4f98-7312-56f9-b7d0-caac019f6c80", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 498 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "score", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "b6eb4f98-7312-56f9-b7d0-caac019f6c80", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "score + answer.score", + "config": {}, + "test": "", + "uuid": "1de2a23d-00c6-469c-a5ca-84135fd31ee4", + "destination_block": "ab2d4668-3e0b-5aaf-9986-822ac2f6aa57", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 499 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response_case_condition_6_log", + "type": "Core.Log", + "config": { + "message": "e16a8e79-ea3d-4a6a-8cb2-3b39b9ddf746" + }, + "tags": [], + "uuid": "ab2d4668-3e0b-5aaf-9986-822ac2f6aa57", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_response_case_condition_6_log", + "config": {}, + "test": "", + "uuid": "bc8aa53c-d20f-4c5a-a9b1-5bcc9087fcb4", + "destination_block": "107973d6-cacf-5545-bd6e-ead6499b6af3", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 500 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "107973d6-cacf-5545-bd6e-ead6499b6af3", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num + 1", + "config": {}, + "test": "", + "uuid": "3c441d09-3df8-49f0-841b-e2994a5548cf", + "destination_block": "74561ab0-8ea1-5f2c-8f1f-93876e804056", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 484 + }, + "name": "QuestionResponse", + "uuid": "84a273e4-f078-57ef-8980-2774eb9c1a9c" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 501 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "a53bdbf6-4c7b-52a9-9965-257d63ea1c8d", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question_num\")", + "config": {}, + "test": "", + "uuid": "e04f0a72-1a5a-4d47-808c-7de661911f35", + "destination_block": "e3c3e25c-7e3b-5b36-85d4-70e96c434721", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 464 + }, + "name": "QuestionResponse", + "uuid": "05d3aa85-cee9-55bf-bacc-b6876ac2a66d" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 470 + }, + "type": "expression" + }, + "index": 5 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Output", + "config": { + "value": "question_num" + }, + "tags": [], + "uuid": "e3c3e25c-7e3b-5b36-85d4-70e96c434721", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num", + "config": {}, + "test": "", + "uuid": "14f21f1e-cda0-429e-a3fe-3de09addd93a", + "destination_block": "a762eb2d-f455-5e2d-9545-2ff1f3263050", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 464 + }, + "name": "QuestionResponse", + "uuid": "05d3aa85-cee9-55bf-bacc-b6876ac2a66d" + }, + "card_item": { + "meta": { + "column": 3, + "line": 471 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "a762eb2d-f455-5e2d-9545-2ff1f3263050", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].semantic_id", + "config": {}, + "test": "", + "uuid": "cf663558-7c2a-4976-bae4-3d8ab5ca2957", + "destination_block": "463e5dbd-552d-5942-b626-5e3f097ac691", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 464 + }, + "name": "QuestionResponse", + "uuid": "05d3aa85-cee9-55bf-bacc-b6876ac2a66d" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 472 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "463e5dbd-552d-5942-b626-5e3f097ac691", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_\", \"@question_id\")", + "config": {}, + "test": "", + "uuid": "55a0a5f1-833f-4629-a9f6-23a5fcf19451", + "destination_block": "77aab089-a3b1-5446-a7ca-11178397446d", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 464 + }, + "name": "QuestionResponse", + "uuid": "05d3aa85-cee9-55bf-bacc-b6876ac2a66d" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 473 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Output", + "config": { + "value": "\"skip\"" + }, + "tags": [], + "uuid": "77aab089-a3b1-5446-a7ca-11178397446d", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_id", + "config": {}, + "test": "", + "uuid": "8bb34a91-c3a5-46bd-b678-fe066f4fd6b5", + "destination_block": "a72a5236-3f6f-542c-ae01-4e8dc201a0ed", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 464 + }, + "name": "QuestionResponse", + "uuid": "05d3aa85-cee9-55bf-bacc-b6876ac2a66d" + }, + "card_item": { + "meta": { + "column": 3, + "line": 474 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "skip_count", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "a72a5236-3f6f-542c-ae01-4e8dc201a0ed", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "skip_count + 1", + "config": {}, + "test": "", + "uuid": "8014928a-c03e-4402-af8c-565cf38da978", + "destination_block": "0bb48fc5-c49c-54f3-a4dd-011a9b894c8b", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 464 + }, + "name": "QuestionResponse", + "uuid": "05d3aa85-cee9-55bf-bacc-b6876ac2a66d" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 476 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response_case_condition_5_log", + "type": "Core.Log", + "config": { + "message": "7230b2ab-ad91-4e47-93c5-801f865befd9" + }, + "tags": [], + "uuid": "0bb48fc5-c49c-54f3-a4dd-011a9b894c8b", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_response_case_condition_5_log", + "config": {}, + "test": "", + "uuid": "9f34c8c7-f034-474b-9d4e-273c41b7dd22", + "destination_block": "c48b1180-0904-5c2e-b6e5-3fd057e14cd2", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 464 + }, + "name": "QuestionResponse", + "uuid": "05d3aa85-cee9-55bf-bacc-b6876ac2a66d" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 478 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response_case_condition_5_log", + "type": "Core.Log", + "config": { + "message": "d1f62447-dd74-4bd3-8c85-50b10433a2c9" + }, + "tags": [], + "uuid": "c48b1180-0904-5c2e-b6e5-3fd057e14cd2", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_response_case_condition_5_log", + "config": {}, + "test": "", + "uuid": "28c52e9a-fce6-4930-96b3-6f0bb0c7a99d", + "destination_block": "8adfe457-34df-51a2-b688-e67f32f94684", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 464 + }, + "name": "QuestionResponse", + "uuid": "05d3aa85-cee9-55bf-bacc-b6876ac2a66d" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 479 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "8adfe457-34df-51a2-b688-e67f32f94684", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num + 1", + "config": {}, + "test": "", + "uuid": "ee4c7ca5-006f-4580-b461-3bde38ae5eb9", + "destination_block": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "lower(\"@question_response\") == \"skip\"", + "meta": { + "column": 1, + "line": 464 + }, + "name": "QuestionResponse", + "uuid": "05d3aa85-cee9-55bf-bacc-b6876ac2a66d" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 481 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response_case_condition_4_log", + "type": "Core.Log", + "config": { + "message": "85ae48a0-509b-4535-a2e8-0c468c229169" + }, + "tags": [], + "uuid": "af0f142f-ba7a-5604-b9f2-b43fd7097f83", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_response_case_condition_4_log", + "config": {}, + "test": "", + "uuid": "4788507c-7016-4f97-85c5-2c613d461d48", + "destination_block": "d59cd5c0-b490-594e-818a-371f93a7d00c", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_member(map(question.answers, &lower(&1.answer)), \"never\") and lower(\"@question_response\") == \"never\"", + "meta": { + "column": 1, + "line": 447 + }, + "name": "QuestionResponse", + "uuid": "a580df95-b8dd-57e0-9143-ae09a639c16f" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 451 + }, + "type": "log" + }, + "index": 4 + } + } + } + } + } + }, + { + "label": null, + "name": "answer", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "d59cd5c0-b490-594e-818a-371f93a7d00c", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "find(question.answers, &(&1.answer == question_response))", + "config": {}, + "test": "", + "uuid": "1eabf290-3786-4984-bd00-6b726885460a", + "destination_block": "d46edbbd-d98a-576a-ad76-3161dcf8e4c5", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_member(map(question.answers, &lower(&1.answer)), \"never\") and lower(\"@question_response\") == \"never\"", + "meta": { + "column": 1, + "line": 447 + }, + "name": "QuestionResponse", + "uuid": "a580df95-b8dd-57e0-9143-ae09a639c16f" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 452 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "d46edbbd-d98a-576a-ad76-3161dcf8e4c5", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question_num\")", + "config": {}, + "test": "", + "uuid": "4cd97429-ef63-482b-845c-536d17d0869b", + "destination_block": "530b3eaa-5ae1-543d-a794-4e9453c19f93", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_member(map(question.answers, &lower(&1.answer)), \"never\") and lower(\"@question_response\") == \"never\"", + "meta": { + "column": 1, + "line": 447 + }, + "name": "QuestionResponse", + "uuid": "a580df95-b8dd-57e0-9143-ae09a639c16f" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 453 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Output", + "config": { + "value": "question_num" + }, + "tags": [], + "uuid": "530b3eaa-5ae1-543d-a794-4e9453c19f93", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num", + "config": {}, + "test": "", + "uuid": "94dc38bb-40bf-4b97-a494-fc7e2b36d7e2", + "destination_block": "6db7bd13-65c1-55ae-a25b-0ac1b2b5a400", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_member(map(question.answers, &lower(&1.answer)), \"never\") and lower(\"@question_response\") == \"never\"", + "meta": { + "column": 1, + "line": 447 + }, + "name": "QuestionResponse", + "uuid": "a580df95-b8dd-57e0-9143-ae09a639c16f" + }, + "card_item": { + "meta": { + "column": 3, + "line": 454 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "6db7bd13-65c1-55ae-a25b-0ac1b2b5a400", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].semantic_id", + "config": {}, + "test": "", + "uuid": "d570224a-97d1-407e-bd07-b31725b6cf34", + "destination_block": "b3e39b19-899b-5b97-a82e-e86ec9ee75eb", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_member(map(question.answers, &lower(&1.answer)), \"never\") and lower(\"@question_response\") == \"never\"", + "meta": { + "column": 1, + "line": 447 + }, + "name": "QuestionResponse", + "uuid": "a580df95-b8dd-57e0-9143-ae09a639c16f" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 455 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "b3e39b19-899b-5b97-a82e-e86ec9ee75eb", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_\", \"@question_id\")", + "config": {}, + "test": "", + "uuid": "7046af64-0b06-41ed-8d46-98098ad358aa", + "destination_block": "607fa17e-7cc5-5a4e-bcbf-a22f23973b35", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_member(map(question.answers, &lower(&1.answer)), \"never\") and lower(\"@question_response\") == \"never\"", + "meta": { + "column": 1, + "line": 447 + }, + "name": "QuestionResponse", + "uuid": "a580df95-b8dd-57e0-9143-ae09a639c16f" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 456 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Output", + "config": { + "value": "\"@question_response\"" + }, + "tags": [], + "uuid": "607fa17e-7cc5-5a4e-bcbf-a22f23973b35", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_id", + "config": {}, + "test": "", + "uuid": "cf38e9e5-33c5-4a09-bd51-a9d785855b25", + "destination_block": "27fda864-1c19-51d2-b709-09fd9d560eb4", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_member(map(question.answers, &lower(&1.answer)), \"never\") and lower(\"@question_response\") == \"never\"", + "meta": { + "column": 1, + "line": 447 + }, + "name": "QuestionResponse", + "uuid": "a580df95-b8dd-57e0-9143-ae09a639c16f" + }, + "card_item": { + "meta": { + "column": 3, + "line": 457 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response_case_condition_4_log", + "type": "Core.Log", + "config": { + "message": "7c94a49f-279e-43f9-9b03-548e973e09a9" + }, + "tags": [], + "uuid": "27fda864-1c19-51d2-b709-09fd9d560eb4", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_response_case_condition_4_log", + "config": {}, + "test": "", + "uuid": "ea6d6317-9dee-439d-ac67-48f08d463e92", + "destination_block": "2a5dbd68-c47c-5670-8dd7-cfaec34fa614", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_member(map(question.answers, &lower(&1.answer)), \"never\") and lower(\"@question_response\") == \"never\"", + "meta": { + "column": 1, + "line": 447 + }, + "name": "QuestionResponse", + "uuid": "a580df95-b8dd-57e0-9143-ae09a639c16f" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 458 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "score", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "2a5dbd68-c47c-5670-8dd7-cfaec34fa614", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "score + answer.score", + "config": {}, + "test": "", + "uuid": "c34ce4cb-3c31-49a4-b1db-0be9732aeb7e", + "destination_block": "20d11075-49f6-5b58-88e7-986a2193a784", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_member(map(question.answers, &lower(&1.answer)), \"never\") and lower(\"@question_response\") == \"never\"", + "meta": { + "column": 1, + "line": 447 + }, + "name": "QuestionResponse", + "uuid": "a580df95-b8dd-57e0-9143-ae09a639c16f" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 460 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "20d11075-49f6-5b58-88e7-986a2193a784", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "count(questions)", + "config": {}, + "test": "", + "uuid": "16af7601-97cb-4118-9508-219f2415e28c", + "destination_block": "cebd16e3-4d94-572c-bcd1-6def9e904347", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "has_member(map(question.answers, &lower(&1.answer)), \"never\") and lower(\"@question_response\") == \"never\"", + "meta": { + "column": 1, + "line": 447 + }, + "name": "QuestionResponse", + "uuid": "a580df95-b8dd-57e0-9143-ae09a639c16f" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 461 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "6db197a1-b65d-512d-a1df-98cda90bab6e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].semantic_id", + "config": {}, + "test": "", + "uuid": "80f5c3f0-9977-4d70-87b4-0b3d2404561d", + "destination_block": "73433ad0-f4d2-5b70-9c30-e1fb10f59097", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 433 + }, + "name": "QuestionResponse", + "uuid": "2dcaedd3-a48d-5ca3-b184-63151b7b67c8" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 435 + }, + "type": "expression" + }, + "index": 3 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "73433ad0-f4d2-5b70-9c30-e1fb10f59097", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question_num\")", + "config": {}, + "test": "", + "uuid": "88e30379-aa30-4a95-8b10-983e27722746", + "destination_block": "8fd5d6cb-c342-5156-9327-2699c9ab70bb", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 433 + }, + "name": "QuestionResponse", + "uuid": "2dcaedd3-a48d-5ca3-b184-63151b7b67c8" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 436 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Output", + "config": { + "value": "question_num" + }, + "tags": [], + "uuid": "8fd5d6cb-c342-5156-9327-2699c9ab70bb", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num", + "config": {}, + "test": "", + "uuid": "225caad1-ad4b-4f09-9bc1-d1ff51474a6b", + "destination_block": "e7453fe5-ea7a-5672-b36f-969adf27475c", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 433 + }, + "name": "QuestionResponse", + "uuid": "2dcaedd3-a48d-5ca3-b184-63151b7b67c8" + }, + "card_item": { + "meta": { + "column": 3, + "line": 437 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "e7453fe5-ea7a-5672-b36f-969adf27475c", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question\")", + "config": {}, + "test": "", + "uuid": "7d1ac730-327f-42dd-84a1-91e2f3f7d980", + "destination_block": "0d33cb32-e829-5d5b-98db-8ed5578b022a", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 433 + }, + "name": "QuestionResponse", + "uuid": "2dcaedd3-a48d-5ca3-b184-63151b7b67c8" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 438 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question", + "type": "Core.Output", + "config": { + "value": "question.question" + }, + "tags": [], + "uuid": "0d33cb32-e829-5d5b-98db-8ed5578b022a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question", + "config": {}, + "test": "", + "uuid": "6fbf5488-ab8f-4a18-9439-4003cc1b2a82", + "destination_block": "f451b640-029d-5fec-9dae-a64e5652091a", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 433 + }, + "name": "QuestionResponse", + "uuid": "2dcaedd3-a48d-5ca3-b184-63151b7b67c8" + }, + "card_item": { + "meta": { + "column": 3, + "line": 439 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "f451b640-029d-5fec-9dae-a64e5652091a", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_\", \"@question_id\")", + "config": {}, + "test": "", + "uuid": "b6be2d0e-1c89-493b-a515-32aacf362ae7", + "destination_block": "1af7527c-09fa-5472-b9eb-41a833ad70fd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 433 + }, + "name": "QuestionResponse", + "uuid": "2dcaedd3-a48d-5ca3-b184-63151b7b67c8" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 440 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Output", + "config": { + "value": "\"@question_response\"" + }, + "tags": [], + "uuid": "1af7527c-09fa-5472-b9eb-41a833ad70fd", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_id", + "config": {}, + "test": "", + "uuid": "1f8fc03b-78fd-451a-9cce-690ba7262941", + "destination_block": "7051ba45-6923-50fd-9f63-1201728211af", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 433 + }, + "name": "QuestionResponse", + "uuid": "2dcaedd3-a48d-5ca3-b184-63151b7b67c8" + }, + "card_item": { + "meta": { + "column": 3, + "line": 441 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "7051ba45-6923-50fd-9f63-1201728211af", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num + 1", + "config": {}, + "test": "", + "uuid": "da30b865-a546-4c5a-8b5e-7371c66fd1e9", + "destination_block": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 433 + }, + "name": "QuestionResponse", + "uuid": "2dcaedd3-a48d-5ca3-b184-63151b7b67c8" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 443 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "1f96e9e2-63c7-5143-be23-ea5112986a87", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].semantic_id", + "config": {}, + "test": "", + "uuid": "0127c8af-d31c-40fc-87cd-9432e6e21cf2", + "destination_block": "1f1d3e64-3bb7-5af0-bdd0-e5132ea3ca45", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"age_question\"", + "meta": { + "column": 1, + "line": 421 + }, + "name": "QuestionResponse", + "uuid": "75a8cebf-518b-55fd-9a7d-b5e36d08c8b2" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 423 + }, + "type": "expression" + }, + "index": 2 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "1f1d3e64-3bb7-5af0-bdd0-e5132ea3ca45", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question_num\")", + "config": {}, + "test": "", + "uuid": "abd1d285-76d6-4923-898e-7c3a6347025e", + "destination_block": "d4a1f169-12ba-58ae-a133-0a7b582dd1e1", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"age_question\"", + "meta": { + "column": 1, + "line": 421 + }, + "name": "QuestionResponse", + "uuid": "75a8cebf-518b-55fd-9a7d-b5e36d08c8b2" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 424 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Output", + "config": { + "value": "question_num" + }, + "tags": [], + "uuid": "d4a1f169-12ba-58ae-a133-0a7b582dd1e1", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num", + "config": {}, + "test": "", + "uuid": "382ca220-0393-451d-bf47-6ce532d01426", + "destination_block": "204de44f-5a5c-5c96-90d9-8c5d095e4603", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"age_question\"", + "meta": { + "column": 1, + "line": 421 + }, + "name": "QuestionResponse", + "uuid": "75a8cebf-518b-55fd-9a7d-b5e36d08c8b2" + }, + "card_item": { + "meta": { + "column": 3, + "line": 425 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "204de44f-5a5c-5c96-90d9-8c5d095e4603", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_\", \"@question_id\")", + "config": {}, + "test": "", + "uuid": "2ec67b22-abf3-461f-b885-7a60f51b5034", + "destination_block": "31ea1d3f-71ca-539c-9489-68c3ddde2671", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"age_question\"", + "meta": { + "column": 1, + "line": 421 + }, + "name": "QuestionResponse", + "uuid": "75a8cebf-518b-55fd-9a7d-b5e36d08c8b2" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 426 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Output", + "config": { + "value": "\"@question_response\"" + }, + "tags": [], + "uuid": "31ea1d3f-71ca-539c-9489-68c3ddde2671", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_id", + "config": {}, + "test": "", + "uuid": "2686ff63-141d-47bb-9c4e-647f79f582b9", + "destination_block": "ea0dea12-a74a-54a1-9c73-8ab681c419f7", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"age_question\"", + "meta": { + "column": 1, + "line": 421 + }, + "name": "QuestionResponse", + "uuid": "75a8cebf-518b-55fd-9a7d-b5e36d08c8b2" + }, + "card_item": { + "meta": { + "column": 3, + "line": 427 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response_case_condition_2_log", + "type": "Core.Log", + "config": { + "message": "0281f0ba-5195-44e9-8d8b-90640714a604" + }, + "tags": [], + "uuid": "ea0dea12-a74a-54a1-9c73-8ab681c419f7", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_response_case_condition_2_log", + "config": {}, + "test": "", + "uuid": "a9f6fa04-b6a0-46b7-bbdd-e7d7c3113b5d", + "destination_block": "01b6be26-f392-5a7e-999d-d3c050984054", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"age_question\"", + "meta": { + "column": 1, + "line": 421 + }, + "name": "QuestionResponse", + "uuid": "75a8cebf-518b-55fd-9a7d-b5e36d08c8b2" + }, + "card_item": { + "log": {}, + "meta": { + "column": 3, + "line": 428 + }, + "type": "log" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "01b6be26-f392-5a7e-999d-d3c050984054", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num + 1", + "config": {}, + "test": "", + "uuid": "3b9bf93b-3f9d-4c8d-a4b4-8e2fc4ab6e0d", + "destination_block": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"age_question\"", + "meta": { + "column": 1, + "line": 421 + }, + "name": "QuestionResponse", + "uuid": "75a8cebf-518b-55fd-9a7d-b5e36d08c8b2" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 430 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "715cf269-d69a-587f-a07f-34810992ada9", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].semantic_id", + "config": {}, + "test": "", + "uuid": "3fc74009-bd55-41f4-b651-d5dffcb4cbdd", + "destination_block": "5b4a0fd8-bd2e-5c1f-ba8b-581b526a99ea", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"freetext_question\"", + "meta": { + "column": 1, + "line": 408 + }, + "name": "QuestionResponse", + "uuid": "36028161-43a6-52b0-a1fd-173fbc73cc2e" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 410 + }, + "type": "expression" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "5b4a0fd8-bd2e-5c1f-ba8b-581b526a99ea", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question_num\")", + "config": {}, + "test": "", + "uuid": "02c3a7f7-4055-4aa7-a185-b44246b7ac04", + "destination_block": "6b95a428-3302-595a-a063-b9f2604ffa77", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"freetext_question\"", + "meta": { + "column": 1, + "line": 408 + }, + "name": "QuestionResponse", + "uuid": "36028161-43a6-52b0-a1fd-173fbc73cc2e" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 411 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Output", + "config": { + "value": "question_num" + }, + "tags": [], + "uuid": "6b95a428-3302-595a-a063-b9f2604ffa77", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num", + "config": {}, + "test": "", + "uuid": "c7fe66fc-4c06-4e5c-afa0-c8d670d64cc4", + "destination_block": "7015dd19-145e-5ab7-935b-a15bf8729280", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"freetext_question\"", + "meta": { + "column": 1, + "line": 408 + }, + "name": "QuestionResponse", + "uuid": "36028161-43a6-52b0-a1fd-173fbc73cc2e" + }, + "card_item": { + "meta": { + "column": 3, + "line": 412 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "7015dd19-145e-5ab7-935b-a15bf8729280", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question\")", + "config": {}, + "test": "", + "uuid": "83dfcea1-737a-48a4-bdf6-1addc6673e52", + "destination_block": "eff19933-45f3-53a1-b6f9-79493bfad09e", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"freetext_question\"", + "meta": { + "column": 1, + "line": 408 + }, + "name": "QuestionResponse", + "uuid": "36028161-43a6-52b0-a1fd-173fbc73cc2e" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 413 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question", + "type": "Core.Output", + "config": { + "value": "question.question" + }, + "tags": [], + "uuid": "eff19933-45f3-53a1-b6f9-79493bfad09e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question", + "config": {}, + "test": "", + "uuid": "b0070930-15fc-411d-9ddb-a8457947eb30", + "destination_block": "c168ddc7-cf97-50c7-8c7f-be90eaaf2bd3", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"freetext_question\"", + "meta": { + "column": 1, + "line": 408 + }, + "name": "QuestionResponse", + "uuid": "36028161-43a6-52b0-a1fd-173fbc73cc2e" + }, + "card_item": { + "meta": { + "column": 3, + "line": 414 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "c168ddc7-cf97-50c7-8c7f-be90eaaf2bd3", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_\", \"@question_id\")", + "config": {}, + "test": "", + "uuid": "47bb12ab-0f68-4998-b40e-dfb562add6c0", + "destination_block": "74d3e1bd-62a0-582c-b24a-30bca151fa4f", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"freetext_question\"", + "meta": { + "column": 1, + "line": 408 + }, + "name": "QuestionResponse", + "uuid": "36028161-43a6-52b0-a1fd-173fbc73cc2e" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 415 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Output", + "config": { + "value": "\"@question_response\"" + }, + "tags": [], + "uuid": "74d3e1bd-62a0-582c-b24a-30bca151fa4f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_id", + "config": {}, + "test": "", + "uuid": "6f80351e-661b-4478-b403-37903177f371", + "destination_block": "9a795654-76a1-5477-bc8c-7d5ed4eab9d4", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"freetext_question\"", + "meta": { + "column": 1, + "line": 408 + }, + "name": "QuestionResponse", + "uuid": "36028161-43a6-52b0-a1fd-173fbc73cc2e" + }, + "card_item": { + "meta": { + "column": 3, + "line": 416 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "9a795654-76a1-5477-bc8c-7d5ed4eab9d4", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num + 1", + "config": {}, + "test": "", + "uuid": "9e67dc4b-a227-4ec9-9a25-5d9ad354d3d6", + "destination_block": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"freetext_question\"", + "meta": { + "column": 1, + "line": 408 + }, + "name": "QuestionResponse", + "uuid": "36028161-43a6-52b0-a1fd-173fbc73cc2e" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 418 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "a44f58c1-3ccc-5bc7-999b-5dda5295adac", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].semantic_id", + "config": {}, + "test": "", + "uuid": "1cedc2af-be17-4f46-b7c9-d8a6a74d2004", + "destination_block": "40404480-2fb7-5abe-9824-b26384ed857b", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 393 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "40404480-2fb7-5abe-9824-b26384ed857b", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question_num\")", + "config": {}, + "test": "", + "uuid": "75f0e1bc-f1fc-4245-86e2-b1770a9df76d", + "destination_block": "0894f8b1-a2ab-53a9-868f-6174f43bcee0", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 394 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Output", + "config": { + "value": "question_num" + }, + "tags": [], + "uuid": "0894f8b1-a2ab-53a9-868f-6174f43bcee0", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num", + "config": {}, + "test": "", + "uuid": "01e7c8ba-97bf-446c-821b-089cb56df8b0", + "destination_block": "8c0abb1f-3437-5809-a898-4e986d75a28b", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "meta": { + "column": 3, + "line": 395 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "8c0abb1f-3437-5809-a898-4e986d75a28b", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_question\")", + "config": {}, + "test": "", + "uuid": "16ba0667-50b0-4208-b180-40c082a4e508", + "destination_block": "b907d8e6-d21d-580c-a76f-ee49d3edf67b", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 396 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question", + "type": "Core.Output", + "config": { + "value": "question.question" + }, + "tags": [], + "uuid": "b907d8e6-d21d-580c-a76f-ee49d3edf67b", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question", + "config": {}, + "test": "", + "uuid": "ddc0fcac-ca93-48ee-aa66-d2f4b0a91934", + "destination_block": "7fdfbbe4-3efb-58fe-b789-db871ad587c1", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "meta": { + "column": 3, + "line": 397 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "7fdfbbe4-3efb-58fe-b789-db871ad587c1", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_\", \"@question_id\")", + "config": {}, + "test": "", + "uuid": "3c9d285b-671d-4b79-b5b5-d0cc966afff9", + "destination_block": "8ad7d61a-b18b-5082-ba3c-c06504be373c", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 398 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_id", + "type": "Core.Output", + "config": { + "value": "\"@question_response\"" + }, + "tags": [], + "uuid": "8ad7d61a-b18b-5082-ba3c-c06504be373c", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_id", + "config": {}, + "test": "", + "uuid": "5da651bb-3de4-4796-8166-f226e10da543", + "destination_block": "2a7349fb-7820-50aa-ab06-3cd04865c163", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "meta": { + "column": 3, + "line": 399 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "2a7349fb-7820-50aa-ab06-3cd04865c163", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_min\")", + "config": {}, + "test": "", + "uuid": "ff5628ae-c373-45ab-922c-9906ac06a29f", + "destination_block": "0c2d87f1-2d9f-5102-8990-e3e6e3a9a958", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 400 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "min", + "type": "Core.Output", + "config": { + "value": "min" + }, + "tags": [], + "uuid": "0c2d87f1-2d9f-5102-8990-e3e6e3a9a958", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "min", + "config": {}, + "test": "", + "uuid": "7a117e8a-46b0-41b5-9f42-593034efa1ba", + "destination_block": "069c8aae-50e6-5f54-b89c-76f865545c77", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "meta": { + "column": 3, + "line": 401 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "result_tag", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "069c8aae-50e6-5f54-b89c-76f865545c77", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "concatenate(\"@slug\", \"_\", \"@version\", \"_max\")", + "config": {}, + "test": "", + "uuid": "28b5004c-c6b7-4d67-a27e-85973c42f57f", + "destination_block": "e9247622-dded-58a1-b9ab-06976b32a822", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 402 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "max", + "type": "Core.Output", + "config": { + "value": "max" + }, + "tags": [], + "uuid": "e9247622-dded-58a1-b9ab-06976b32a822", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "max", + "config": {}, + "test": "", + "uuid": "e3e57d3b-a338-4219-9452-877062f2daf9", + "destination_block": "74113d9e-5d45-5d10-9745-5237d3dbcb05", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "meta": { + "column": 3, + "line": 403 + }, + "type": "write_result", + "write_result": { + "label": "@result_tag" + } + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "74113d9e-5d45-5d10-9745-5237d3dbcb05", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_num + 1", + "config": {}, + "test": "", + "uuid": "873f146c-ebb4-4385-ae8d-fc917be5a47c", + "destination_block": "9515b3f0-1bfb-574f-a522-f540401ba8bd", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 391 + }, + "name": "QuestionResponse", + "uuid": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 405 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "display_question_case", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "9ff3bcb3-256f-5fc2-b636-454c4fa816eb", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": false, + "name": "Exit for display_question_case_condition_0", + "config": {}, + "test": "questions[question_num].question_type == \"multiselect_question\"", + "uuid": "66186998-5a34-4896-9964-4ae003184716", + "destination_block": "275f103f-e416-5c6b-b9a6-c5cac58cad90", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for display_question_case_condition_1", + "config": {}, + "test": "count(questions[question_num].answers) > 3", + "uuid": "23f2a744-fb29-46ee-aecd-50e66b62b86b", + "destination_block": "1c7d42a3-533c-55a2-84b7-7c9298b10f51", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for display_question_case_condition_2", + "config": {}, + "test": "questions[question_num].question_type == \"year_of_birth_question\"", + "uuid": "6378ea45-b770-4bf5-bfd2-52b0cdad7436", + "destination_block": "4e978c93-3b26-5039-9553-a7d683cde046", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for display_question_case_condition_3", + "config": {}, + "test": "questions[question_num].question_type == \"freetext_question\"", + "uuid": "322d45c2-dec2-4ebc-ad7d-11f3198ed640", + "destination_block": "415f6fce-d0ba-5690-a3b6-f058d4159026", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for display_question_case_condition_4", + "config": {}, + "test": "questions[question_num].question_type == \"integer_question\"", + "uuid": "f53ff744-76d0-40b5-abed-43186267d7b3", + "destination_block": "6e5ab5bb-4a04-5c11-a762-44ed0de8c22c", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": false, + "name": "Exit for display_question_case_condition_5", + "config": {}, + "test": "questions[question_num].question_type == \"age_question\"", + "uuid": "9bd31c83-5892-4bc2-aa06-909e9b47d482", + "destination_block": "ada59a3a-2cf2-5b31-8135-fee24a436336", + "semantic_label": null, + "vendor_metadata": {} + }, + { + "default": true, + "name": "Exit for display_question_case_condition_6", + "config": {}, + "test": null, + "uuid": "17d1c3c3-b3b5-4943-a426-1526c4d09501", + "destination_block": "189d350a-e30f-51a1-ae83-3210859623a0", + "semantic_label": null, + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\"", + "meta": { + "column": 1, + "line": 73 + }, + "name": "DisplayQuestion", + "uuid": "9ff3bcb3-256f-5fc2-b636-454c4fa816eb" + } + } + } + } + } + } + }, + { + "label": null, + "name": "question", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "189d350a-e30f-51a1-ae83-3210859623a0", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num]", + "config": {}, + "test": "", + "uuid": "982179e3-5d7b-4fae-9045-1604eb39f5d0", + "destination_block": "78cd59ae-c837-5425-856a-24c0eabca292", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 136 + }, + "name": "DisplayQuestion", + "uuid": "defb5bca-57e7-58f3-9fa0-b0a30c9e2275" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 138 + }, + "type": "expression" + }, + "index": 6 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response", + "type": "Io.Turn.DynamicSelectOneResponse", + "config": { + "prompt": "e76f3f76-1fb9-4bf4-9dc3-087d360ce632", + "choices": [], + "destination_block": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231", + "choice_expression": "map(question.answers, &[&1.answer, &1.answer])" + }, + "tags": [], + "uuid": "78cd59ae-c837-5425-856a-24c0eabca292", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"QuestionExplainer\"", + "config": {}, + "test": "", + "uuid": "82ad2f5e-d62c-4745-9249-bc19f3907e9c", + "destination_block": "802042c7-f7d3-5f2e-b639-cddfe9a63eed", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": null, + "meta": { + "column": 1, + "line": 136 + }, + "name": "DisplayQuestion", + "uuid": "defb5bca-57e7-58f3-9fa0-b0a30c9e2275" + }, + "card_item": { + "dynamic_button": {}, + "meta": { + "column": 3, + "line": 140 + }, + "type": "dynamic_button" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "ada59a3a-2cf2-5b31-8135-fee24a436336", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num]", + "config": {}, + "test": "", + "uuid": "d5d69f6e-3316-49b6-969c-32a8af490ef0", + "destination_block": "f4d9282c-e1b1-5472-b648-1b2cbfeac7aa", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"age_question\"", + "meta": { + "column": 1, + "line": 128 + }, + "name": "DisplayQuestion", + "uuid": "36549b5c-32a0-5c4c-a3d7-4938c96762be" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 131 + }, + "type": "expression" + }, + "index": 5 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response", + "type": "MobilePrimitives.OpenResponse", + "config": { + "prompt": "218aa62c-123e-4eeb-89cf-3bae60a0740a", + "max_response_characters": null + }, + "tags": [], + "uuid": "f4d9282c-e1b1-5472-b648-1b2cbfeac7aa", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"ValidateAge\"", + "config": {}, + "test": "", + "uuid": "a6e5903e-efa0-4a5b-acc2-3ddcefa3606d", + "destination_block": "8dd16dbc-b714-56d2-88e2-513d738e5a27", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"age_question\"", + "meta": { + "column": 1, + "line": 128 + }, + "name": "DisplayQuestion", + "uuid": "36549b5c-32a0-5c4c-a3d7-4938c96762be" + }, + "card_item": { + "ask": {}, + "meta": { + "column": 3, + "line": 133 + }, + "type": "ask" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "6e5ab5bb-4a04-5c11-a762-44ed0de8c22c", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num]", + "config": {}, + "test": "", + "uuid": "2acc322e-8b2a-4ed5-960f-295a1482e430", + "destination_block": "c9de662f-9f2e-5d1c-b4cb-71fdf9990879", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 114 + }, + "name": "DisplayQuestion", + "uuid": "d2be39e1-78aa-5426-a5eb-6c3806e1b700" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 117 + }, + "type": "expression" + }, + "index": 4 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response", + "type": "MobilePrimitives.OpenResponse", + "config": { + "prompt": "9f8a91a2-a818-44b2-9c6e-4397ff47f3a1", + "max_response_characters": null + }, + "tags": [], + "uuid": "c9de662f-9f2e-5d1c-b4cb-71fdf9990879", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_response", + "config": {}, + "test": "", + "uuid": "4ef8075b-3aa0-4b24-bd2f-c7ad9bb775c8", + "destination_block": "9d6822e0-6ead-50ce-a858-51815c33c831", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 114 + }, + "name": "DisplayQuestion", + "uuid": "d2be39e1-78aa-5426-a5eb-6c3806e1b700" + }, + "card_item": { + "ask": {}, + "meta": { + "column": 3, + "line": 119 + }, + "type": "ask" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "min", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "9d6822e0-6ead-50ce-a858-51815c33c831", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].min", + "config": {}, + "test": "", + "uuid": "1f9ae613-8a87-4939-b674-3727ce4432d9", + "destination_block": "078b6aca-b4d1-50be-9407-72ef6e64dfa1", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 114 + }, + "name": "DisplayQuestion", + "uuid": "d2be39e1-78aa-5426-a5eb-6c3806e1b700" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 120 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "max", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "078b6aca-b4d1-50be-9407-72ef6e64dfa1", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num].max", + "config": {}, + "test": "", + "uuid": "17dcfe2b-3965-4541-926c-25cadc8b4895", + "destination_block": "2e674072-3688-56dd-8f91-c1d4a89c3e0e", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 114 + }, + "name": "DisplayQuestion", + "uuid": "d2be39e1-78aa-5426-a5eb-6c3806e1b700" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 121 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "assertion", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "2e674072-3688-56dd-8f91-c1d4a89c3e0e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "and(and(has_number(\"@question_response\"), has_number_gte(\"@question_response\", \"@min\")), has_number_lte(\"@question_response\", \"@max\"))", + "config": {}, + "test": "", + "uuid": "211df9fa-3326-4f2a-98b9-2ca9b841e184", + "destination_block": "802042c7-f7d3-5f2e-b639-cddfe9a63eed", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"integer_question\"", + "meta": { + "column": 1, + "line": 114 + }, + "name": "DisplayQuestion", + "uuid": "d2be39e1-78aa-5426-a5eb-6c3806e1b700" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 123 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "415f6fce-d0ba-5690-a3b6-f058d4159026", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num]", + "config": {}, + "test": "", + "uuid": "8f055ce7-9b4e-471b-bfd0-25f28f47ee70", + "destination_block": "1bfade46-6a08-520e-be61-c45e9d87c02e", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"freetext_question\"", + "meta": { + "column": 1, + "line": 106 + }, + "name": "DisplayQuestion", + "uuid": "670fc02d-9e0c-5483-b35e-f7027ac5c854" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 109 + }, + "type": "expression" + }, + "index": 3 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response", + "type": "MobilePrimitives.OpenResponse", + "config": { + "prompt": "d97aa0c8-abb3-42b8-9763-05ab5b812c51", + "max_response_characters": null + }, + "tags": [], + "uuid": "1bfade46-6a08-520e-be61-c45e9d87c02e", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"QuestionExplainer\"", + "config": {}, + "test": "", + "uuid": "fbb93f95-5559-4f43-8dda-b3bbc840f755", + "destination_block": "802042c7-f7d3-5f2e-b639-cddfe9a63eed", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"freetext_question\"", + "meta": { + "column": 1, + "line": 106 + }, + "name": "DisplayQuestion", + "uuid": "670fc02d-9e0c-5483-b35e-f7027ac5c854" + }, + "card_item": { + "ask": {}, + "meta": { + "column": 3, + "line": 111 + }, + "type": "ask" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "4e978c93-3b26-5039-9553-a7d683cde046", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num]", + "config": {}, + "test": "", + "uuid": "f8079b01-c8a7-461a-bb3d-ad8c35393e6b", + "destination_block": "baea128d-7cda-5de5-a04d-e784b8bea58f", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 93 + }, + "name": "DisplayQuestion", + "uuid": "a73a8770-d33e-5f13-aeda-7802f57093c7" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 96 + }, + "type": "expression" + }, + "index": 2 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response", + "type": "MobilePrimitives.OpenResponse", + "config": { + "prompt": "c0b4d284-c9b6-41f3-a51e-4116358dfe79", + "max_response_characters": null + }, + "tags": [], + "uuid": "baea128d-7cda-5de5-a04d-e784b8bea58f", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "question_response", + "config": {}, + "test": "", + "uuid": "0937bd94-f3f7-4c08-8901-9a9496dce644", + "destination_block": "43669bff-30bd-5cc4-8676-ac8a024e9151", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 93 + }, + "name": "DisplayQuestion", + "uuid": "a73a8770-d33e-5f13-aeda-7802f57093c7" + }, + "card_item": { + "ask": {}, + "meta": { + "column": 3, + "line": 98 + }, + "type": "ask" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "difference", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "43669bff-30bd-5cc4-8676-ac8a024e9151", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "get_year - question_response", + "config": {}, + "test": "", + "uuid": "cd3d3d5a-61de-42e7-a3a7-233af2a4e77b", + "destination_block": "bc397978-c3c1-5755-aab3-7e61b0ca7c71", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 93 + }, + "name": "DisplayQuestion", + "uuid": "a73a8770-d33e-5f13-aeda-7802f57093c7" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 99 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "assertion", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "bc397978-c3c1-5755-aab3-7e61b0ca7c71", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "and(and(and(has_number(\"@question_response\"), has_number_lte(\"@question_response\", \"@get_year\")), has_number_lte(\"@difference\", \"@range\")), has_pattern(\"@question_response\", \"^[0-9]+$\"))", + "config": {}, + "test": "", + "uuid": "5dfe4fc8-bdae-4aed-aa84-a7299cc330d9", + "destination_block": "802042c7-f7d3-5f2e-b639-cddfe9a63eed", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"year_of_birth_question\"", + "meta": { + "column": 1, + "line": 93 + }, + "name": "DisplayQuestion", + "uuid": "a73a8770-d33e-5f13-aeda-7802f57093c7" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 101 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "question", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "1c7d42a3-533c-55a2-84b7-7c9298b10f51", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "questions[question_num]", + "config": {}, + "test": "", + "uuid": "2adf1a3a-b8ff-4e3c-9287-30c41f377145", + "destination_block": "4842e51a-e6ab-5075-be6b-6876357e64d8", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "count(questions[question_num].answers) > 3", + "meta": { + "column": 1, + "line": 83 + }, + "name": "DisplayQuestion", + "uuid": "7ae8a003-3532-5525-a5ff-141121af718c" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 85 + }, + "type": "expression" + }, + "index": 1 + } + } + } + } + } + }, + { + "label": null, + "name": "question_response", + "type": "Io.Turn.DynamicSelectOneResponse", + "config": { + "prompt": "1bdd8a7a-3528-4730-9287-6f96409e9990", + "choices": [], + "destination_block": "832b9b6d-96a8-5a58-b3c9-d94a5b2d0231", + "choice_expression": "map(question.answers, &[&1.answer, &1.answer])" + }, + "tags": [], + "uuid": "4842e51a-e6ab-5075-be6b-6876357e64d8", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "Default exit to \"QuestionExplainer\"", + "config": {}, + "test": "", + "uuid": "33cc6831-dabf-4e35-97fa-edb7237b7d47", + "destination_block": "802042c7-f7d3-5f2e-b639-cddfe9a63eed", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "count(questions[question_num].answers) > 3", + "meta": { + "column": 1, + "line": 83 + }, + "name": "DisplayQuestion", + "uuid": "7ae8a003-3532-5525-a5ff-141121af718c" + }, + "card_item": { + "dynamic_list": {}, + "meta": { + "column": 3, + "line": 87 + }, + "type": "dynamic_list" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "answer_num", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "275f103f-e416-5c6b-b9a6-c5cac58cad90", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "0", + "config": {}, + "test": "", + "uuid": "42ea3d29-b4b5-4c3c-b62b-bbbdc7101792", + "destination_block": "a0ae728f-6eda-53e7-8c2b-b264236879f0", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\"", + "meta": { + "column": 1, + "line": 73 + }, + "name": "DisplayQuestion", + "uuid": "9ff3bcb3-256f-5fc2-b636-454c4fa816eb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 76 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "multiselect_answer", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "a0ae728f-6eda-53e7-8c2b-b264236879f0", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "\"\"", + "config": {}, + "test": "", + "uuid": "83d65dbe-a5ef-4349-8865-27ee7c8e8ac1", + "destination_block": "7193ccfc-0012-5e0c-a10c-ee29e3d111ac", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\"", + "meta": { + "column": 1, + "line": 73 + }, + "name": "DisplayQuestion", + "uuid": "9ff3bcb3-256f-5fc2-b636-454c4fa816eb" + }, + "card_item": { + "literal": {}, + "meta": { + "column": 3, + "line": 77 + }, + "type": "literal" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "scores", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "7193ccfc-0012-5e0c-a10c-ee29e3d111ac", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "map(question.answers, & &1.score)", + "config": {}, + "test": "", + "uuid": "20bd5d30-8674-4fcd-8026-26ac3467eeca", + "destination_block": "09d126cd-1b7d-5a88-89bf-b828e74de3ec", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\"", + "meta": { + "column": 1, + "line": 73 + }, + "name": "DisplayQuestion", + "uuid": "9ff3bcb3-256f-5fc2-b636-454c4fa816eb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 78 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "max_question_score", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "09d126cd-1b7d-5a88-89bf-b828e74de3ec", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "reduce(scores, 0, &(&1 + &2))", + "config": {}, + "test": "", + "uuid": "8e704eb6-2d6f-42a5-ba64-9109c70bdfa0", + "destination_block": "39aad5c4-4151-57f3-b5a2-8d0c987090f1", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\"", + "meta": { + "column": 1, + "line": 73 + }, + "name": "DisplayQuestion", + "uuid": "9ff3bcb3-256f-5fc2-b636-454c4fa816eb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 79 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + }, + { + "label": null, + "name": "max_score", + "type": "Core.Case", + "config": {}, + "tags": [], + "uuid": "39aad5c4-4151-57f3-b5a2-8d0c987090f1", + "ui_metadata": { + "canvas_coordinates": { + "x": 0, + "y": 0 + } + }, + "exits": [ + { + "default": true, + "name": "max_score + max_question_score", + "config": {}, + "test": "", + "uuid": "9b95ae1c-d8db-4a25-98bf-aa6eca6a6b0f", + "destination_block": "066ffca5-6baa-5331-a1c3-75a7eb8c8b77", + "semantic_label": "", + "vendor_metadata": {} + } + ], + "semantic_label": null, + "vendor_metadata": { + "io": { + "turn": { + "stacks_dsl": { + "0.1.0": { + "card": { + "condition": "questions[question_num].question_type == \"multiselect_question\"", + "meta": { + "column": 1, + "line": 73 + }, + "name": "DisplayQuestion", + "uuid": "9ff3bcb3-256f-5fc2-b636-454c4fa816eb" + }, + "card_item": { + "expression": {}, + "meta": { + "column": 3, + "line": 80 + }, + "type": "expression" + }, + "index": 0 + } + } + } + } + } + } + ], + "last_modified": "2025-01-13T14:03:16.132332Z", + "uuid": "af03ecca-b9e4-5950-ba67-b22bcec01b9b", + "languages": [ + { + "id": "61ec331d-2510-417c-bc29-bed6d596ad08", + "label": "English", + "variant": null, + "bcp_47": null, + "iso_639_3": "eng" + } + ], + "interaction_timeout": 300, + "first_block_id": "53f47793-39d4-5241-9309-a82a22dde970", + "vendor_metadata": {}, + "supported_modes": [ + "RICH_MESSAGING" + ], + "exit_block_id": "" + } + ], + "vendor_metadata": {}, + "specification_version": "1.0.0-rc3" +} \ No newline at end of file diff --git a/Onboarding/QA/tests/quiz-breastfeeding_test.exs b/Onboarding/QA/tests/quiz-breastfeeding_test.exs new file mode 100644 index 0000000..461c788 --- /dev/null +++ b/Onboarding/QA/tests/quiz-breastfeeding_test.exs @@ -0,0 +1,524 @@ +defmodule QuizBreastfeedingTest do + use FlowTester.Case + + alias FlowTester.WebhookHandler, as: WH + alias FlowTester.FlowStep + + alias Onboarding.QA.Helpers + + def setup_fake_cms(auth_token) do + use FakeCMS + # Start the handler. + wh_pid = start_link_supervised!({FakeCMS, %FakeCMS.Config{auth_token: auth_token}}) + FakeCMS.add_images(wh_pid, [ + %Image{ + id: 1, + download_url: "https://example.com/champion.jpg", + title: "Breastfeeding quiz champion" + }, + %Image{ + id: 2, + download_url: "https://example.com/good.jpg", + title: "Breastfeeding quiz good" + }, + %Image{ + id: 3, + download_url: "https://example.com/learner.jpg", + title: "Breastfeeding quiz learner" + }, + ]) + assert :ok = FakeCMS.add_pages(wh_pid, [ + %Index{slug: "home", title: "Home"}, + %ContentPage{ + slug: "breastfeeding-quiz-champion", + title: "Breastfeeding Quiz Champion", + parent: "home", + wa_messages: [ + %WAMsg{ + message: "*You are a champion!* 🏆\r\n\r\nYou got {score} out of {max_score} answers right. Well done!\r\n\r\nYou’ve earned your breastfeeding hero sticker.\r\n\r\nWhat do you want to explore next?", + image: 1, + } + ] + }, + %ContentPage{ + slug: "breastfeeding-quiz-good", + title: "Breastfeeding Quiz Good", + parent: "home", + wa_messages: [ + %WAMsg{ + message: "*Getting there*\r\n\r\nYou got {score} out of {max_score} answers right. Hopefully, you learnt some useful things about breastfeeding along the way.\r\n\r\nThanks for taking part. Here's a special breastfeeding sticker for you.\r\n\r\nWhat would you like to explore next?", + image: 2, + } + ] + }, + %ContentPage{ + slug: "breastfeeding-quiz-learner", + title: "Breastfeeding Quiz Learner", + parent: "home", + wa_messages: [ + %WAMsg{ + message: "*Up for the challenge?*\r\n\r\nYou didn't get any answers correct this time. Hopefully you learnt some useful things about breastfeeding along the way.\r\n\r\nHere's a special breastfeeding sticker for you.\r\n\r\nWhat would you like to explore next?", + image: 3, + } + ] + } + ]) + + assert :ok = FakeCMS.add_form(wh_pid, %Forms.Form{ + id: 1, + title: "Breastfeeding Quiz", + slug: "breastfeeding-quiz", + generic_error: "Sorry, I didn't understand that. Please click one of the buttons.", + locale: "en", + version: "1.0", + tags: ["breastfeeding_quiz"], + high_result_page: "breastfeeding-quiz-champion", + high_inflection: 75.0, + medium_result_page: "breastfeeding-quiz-good", + medium_inflection: 25.0, + low_result_page: "breastfeeding-quiz-learner", + skip_threshold: 100.0, + skip_high_result_page: nil, + questions: [ + %Forms.CategoricalQuestion{ + question: "*Question 1*\r\n🟩🟩⬜⬜⬜⬜⬜⬜\r\n\r\nWhat’s the best food for a baby from birth to 6 months?\r\n\r\n• Formula\r\n• Formula + breast milk\r\n• Breast milk only", + explainer: "", + error: "", + semantic_id: "baby-food", + answers: [ + %Forms.Answer{ + score: 0.0, + answer: "Formula", + response: "🤔\r\n\r\nActually, it's best to give your baby *only breast milk* from birth to 6 months if you can.\r\n\r\nBreast milk has everything your baby needs, and your body will make as much milk as she needs.\r\n\r\nIf you are struggling to breastfeed, speak to a health worker about what to try.\r\n\r\nLet's keep going ...", + semantic_id: "formula" + }, + %Forms.Answer{ + score: 0.0, + answer: "Formula+breast milk", + response: "🤔\r\n\r\nActually, it's best to give your baby *only breast milk* from birth to 6 months if you can.\r\n\r\nBreast milk has everything your baby needs, and your body will make as much milk as she needs.\r\n\r\nIf you are struggling to breastfeed, speak to a health worker about what to try.\r\n\r\nLet's keep going ...", + semantic_id: "formula-and-breast-milk" + }, + %Forms.Answer{ + score: 1.0, + answer: "Breast milk only", + response: "*Yes!* ✅\r\n\r\nIt's best to give your baby only breast milk from birth to 6 months if you can.\r\n\r\nBreast milk has everything your baby needs, and your body will make as much milk as she needs.\r\n\r\nLet's keep going ...", + semantic_id: "breast-milk-only" + }, + ] + }, + %Forms.CategoricalQuestion{ + question: "*Question 2*\r\n🟩🟩🟩🟩⬜⬜⬜⬜\r\n\r\nHow does breastfeeding help you as a mother?\r\n\r\n• It helps bonding with baby\r\n• It saves money\r\n• It helps you sleep better\r\n• It lowers your risk of depression\r\n• All of the above", + explainer: "", + error: "", + semantic_id: "breastfeeding-help-mother", + answers: [ + %Forms.Answer{ + score: 0.0, + answer: "It helps bonding", + response: "🤔 It's even better than that!\r\n\r\nBreastfeeding is great for moms for many practical and health reasons.\r\n\r\nIt helps mom:\r\n• bleed less after birth\r\n• bond with baby\r\n• save money and time\r\n• sleep better\r\n• lose pregnancy weight\r\n\r\nIt also lowers the risk of illnesses like:\r\n• depression\r\n• some cancers\r\n• heart disease\r\n• diabetes\r\n\r\nLet's keep going ...", + semantic_id: "bonding" + }, + %Forms.Answer{ + score: 0.0, + answer: "It can save money", + response: "🤔 It's even better than that!\r\n\r\nBreastfeeding is great for moms for many practical and health reasons.\r\n\r\nIt helps mom:\r\n• bleed less after birth\r\n• bond with baby\r\n• save money and time\r\n• sleep better\r\n• lose pregnancy weight\r\n\r\nIt also lowers the risk of illnesses like:\r\n• depression\r\n• some cancers\r\n• heart disease\r\n• diabetes\r\n\r\nLet's keep going ...", + semantic_id: "save-money" + }, + %Forms.Answer{ + score: 0.0, + answer: "It helps sleep", + response: "🤔 It's even better than that!\r\n\r\nBreastfeeding is great for moms for many practical and health reasons.\r\n\r\nIt helps mom:\r\n• bleed less after birth\r\n• bond with baby\r\n• save money and time\r\n• sleep better\r\n• lose pregnancy weight\r\n\r\nIt also lowers the risk of illnesses like:\r\n• depression\r\n• some cancers\r\n• heart disease\r\n• diabetes\r\n\r\nLet's keep going ...", + semantic_id: "sleep" + }, + %Forms.Answer{ + score: 0.0, + answer: "Depression risk", + response: "🤔 It's even better than that!\r\n\r\nBreastfeeding is great for moms for many practical and health reasons.\r\n\r\nIt helps mom:\r\n• bleed less after birth\r\n• bond with baby\r\n• save money and time\r\n• sleep better\r\n• lose pregnancy weight\r\n\r\nIt also lowers the risk of illnesses like:\r\n• depression\r\n• some cancers\r\n• heart disease\r\n• diabetes\r\n\r\nLet's keep going ...", + semantic_id: "depression-risk" + }, + %Forms.Answer{ + score: 1.0, + answer: "All of the above", + response: "*Yes!* ✅\r\n\r\nBreastfeeding is great for moms for practical and health reasons.\r\n\r\nIt helps mom:\r\n• bleed less after birth\r\n• bond with baby\r\n• save money and time\r\n• sleep better\r\n• lose pregnancy weight\r\n\r\nIt also lowers the risk of illnesses like:\r\n• depression\r\n• some cancers\r\n• heart disease\r\n• diabetes\r\n\r\nLet's keep going ...", + semantic_id: "all-of-the-above" + } + ] + }, + %Forms.CategoricalQuestion{ + question: "*Question 3*\r\n🟩🟩🟩🟩🟩🟩⬜⬜\r\n\r\nHow does breastfeeding help a baby?\r\n\r\n• It boost baby's immune system\r\n• It gives a baby everything he needs\r\n• It's clean and safe\r\n• All of the above", + explainer: "", + error: "", + semantic_id: "breastfeeding-baby", + answers: [ + %Forms.Answer{ + score: 0.0, + answer: "Immune boost", + response: "*It's even better than that - all of these are true!* 🤔\r\n\r\nBreast milk gives a baby everything he needs, and it's available whenever he’s hungry.\r\n\r\nBreastfeeding strengthens the bond between the baby and the mother.\r\n\r\nBreast milk makes a baby's immune system stronger. This protects him against illness. It lowers the risk of:\r\n\r\n• infections\r\n• diarrhoea and vomiting\r\n• sudden infant death syndrome (SIDS)\r\n• obesity\r\n• heart disease as an adult\r\n\r\nWith breastfeeding, you don’t need to wash and sterilise bottles or boil water to make formula.\r\n\r\nTime for the last question ...", + semantic_id: "immune-boost" + }, + %Forms.Answer{ + score: 0.0, + answer: "Everything he needs", + response: "*It's even better than that - all of these are true!* 🤔\r\n\r\nBreast milk gives a baby everything he needs, and it's available whenever he’s hungry.\r\n\r\nBreastfeeding strengthens the bond between the baby and the mother.\r\n\r\nBreast milk makes a baby's immune system stronger. This protects him against illness. It lowers the risk of:\r\n\r\n• infections\r\n• diarrhoea and vomiting\r\n• sudden infant death syndrome (SIDS)\r\n• obesity\r\n• heart disease as an adult\r\n\r\nWith breastfeeding, you don’t need to wash and sterilise bottles or boil water to make formula.\r\n\r\nTime for the last question ...", + semantic_id: "everything-he-needs" + }, + %Forms.Answer{ + score: 0.0, + answer: "It's clean and safe", + response: "*It's even better than that - all of these are true!* 🤔\r\n\r\nBreast milk gives a baby everything he needs, and it's available whenever he’s hungry.\r\n\r\nBreastfeeding strengthens the bond between the baby and the mother.\r\n\r\nBreast milk makes a baby's immune system stronger. This protects him against illness. It lowers the risk of:\r\n\r\n• infections\r\n• diarrhoea and vomiting\r\n• sudden infant death syndrome (SIDS)\r\n• obesity\r\n• heart disease as an adult\r\n\r\nWith breastfeeding, you don’t need to wash and sterilise bottles or boil water to make formula.\r\n\r\nTime for the last question ...", + semantic_id: "clean-and-safe" + }, + %Forms.Answer{ + score: 1.0, + answer: "All of the above", + response: "*Yes, all of these benefits are true* ✅\r\n\r\nBreast milk gives a baby everything he needs, and it's available whenever he needs it.\r\n\r\nBreastfeeding strengthens the bond between the baby and the mother.\r\n\r\nBreast milk makes a baby's immune system stronger. This protects him against illness. It lowers the risk of:\r\n\r\n• infections\r\n• diarrhoea and vomiting\r\n• sudden infant death syndrome (SIDS)\r\n• obesity\r\n• heart disease as an adult\r\n\r\nWith breastfeeding, you don’t need to wash and sterilise bottles or boil water to make formula.\r\n\r\nLast question ...", + semantic_id: "all-of-the-above" + } + ] + }, + %Forms.CategoricalQuestion{ + question: "*Question 4*\r\n🟩🟩🟩🟩🟩🟩🟩🟩\r\n\r\nHow often should you breastfeed your baby?\r\n\r\n• Whenever he is hungry\r\n• Every 4 hours\r\n• Every 2 hours", + explainer: "", + error: "", + semantic_id: "how-often-breastfeed", + answers: [ + %Forms.Answer{ + score: 1.0, + answer: "When he is hungry", + response: "*That's correct* ✅\r\n\r\nExperts around the world recommend that you breastfeed your baby whenever he is hungry. This is called demand feeding.\r\n\r\nWhen your baby is a newborn, feed him at least 8 times in 24 hours. As he gets older he will have bigger feeds less often.\r\n\r\nThe more your baby breastfeeds, the more milk you will make.\r\n\r\nAlmost all mothers produce enough milk so baby doesn't need anything else for the first 6 months of life.\r\n\r\nAnd that's it!", + semantic_id: "when-he-is-hungry" + }, + %Forms.Answer{ + score: 0.0, + answer: "Every 4 hours", + response: "🤔\r\n\r\nIn fact, experts around the world recommend that you breastfeed your baby whenever he is hungry. This is called demand feeding.\r\n\r\nWhen your baby is a newborn, feed him at least 8 times in 24 hours. As he gets older he will have bigger feeds less often.\r\n\r\nThe more your baby breastfeeds, the more milk your body makes.\r\n\r\nAlmost all mothers make enough milk so that their baby doesn't need anything else for the first 6 months of life.\r\n\r\nAnd that's it!", + semantic_id: "every-4-hours" + }, + %Forms.Answer{ + score: 0.0, + answer: "Every 2 hours", + response: "🤔\r\n\r\nIn fact, experts around the world recommend that you breastfeed your baby whenever he is hungry. This is called demand feeding.\r\n\r\nWhen your baby is a newborn, feed him at least 8 times in 24 hours. As he gets older he will have bigger feeds less often.\r\n\r\nThe more your baby breastfeeds, the more milk your body makes.\r\n\r\nAlmost all mothers make enough milk so that their baby doesn't need anything else for the first 6 months of life.\r\n\r\nAnd that's it!", + semantic_id: "every-2-hours" + } + ] + } + ] + }) + # Return the adapter. + FakeCMS.wh_adapter(wh_pid) + end + + defp real_or_fake_cms(step, base_url, _auth_token, :real), + do: WH.allow_http(step, base_url) + + defp real_or_fake_cms(step, base_url, auth_token, :fake), + do: WH.set_adapter(step, base_url, setup_fake_cms(auth_token)) + + setup_all _ctx, do: %{init_flow: Helpers.load_flow("quiz-breastfeeding")} + + defp setup_flow(ctx) do + # When talking to real contentrepo, get the auth token from the API_TOKEN envvar. + auth_token = System.get_env("API_TOKEN", "CRauthTOKEN123") + kind = if auth_token == "CRauthTOKEN123", do: :fake, else: :real + + flow = + ctx.init_flow + |> real_or_fake_cms("https://content-repo-api-qa.prk-k8s.prd-p6t.org/", auth_token, kind) + |> FlowTester.set_global_dict("config", %{"contentrepo_token" => auth_token}) + |> FlowTester.set_local_params("config", %{"assessment_tag" => "breastfeeding_quiz", "response_button_text" => "Next question"}) + %{flow: flow} + end + + setup [:setup_flow] + + describe "Breastfeeding quiz" do + test "First question", %{flow: flow} do + flow + |> FlowTester.start() + |> receive_message(%{ + text: "*Question 1*" <> _, + buttons: [{"Formula", "Formula"}, {"Formula+breast milk", "Formula+breast milk"}, {"Breast milk only", "Breast milk only"}] + }) + |> results_match([ + %{name: "version", value: "1.0"}, + %{name: "started", value: "breastfeeding_quiz", label: "@v_start"}, + %{name: "locale", value: "en"} + ]) + end + + test "First question correct", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("Breast milk only") + |> receive_message(%{ + text: "*Yes!* ✅\r\n\r\nIt's best to give your baby only breast milk" <> _, + buttons: [{"@config.items.response_button_text", "Next question"}] + }) + |> results_match([ + %{name: "question_num", value: 0}, + %{name: "question_id", value: "breast-milk-only"}, + ]) + end + + test "First question incorrect", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("Formula") + |> receive_message(%{ + text: "🤔\r\n\r\nActually, it's best to give your baby *only breast milk*" <> _, + buttons: [{"@config.items.response_button_text", "Next question"}] + }) + |> results_match([ + %{name: "question_num", value: 0}, + %{name: "question_id", value: "formula"}, + ]) + end + + test "Second question", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("Next question") + |> receive_message(%{ + text: "*Question 2*" <> _, + list: {"Select option", [{"It helps bonding", "It helps bonding"}, {"It can save money", "It can save money"}, {"It helps sleep", "It helps sleep"}, {"Depression risk", "Depression risk"}, {"All of the above", "All of the above"}]} + }) + |> results_match([]) + end + + test "Second question correct", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowTester.send("Next question") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("All of the above") + |> receive_message(%{ + text: "*Yes!* ✅\r\n\r\nBreastfeeding is great for moms for practical" <> _, + buttons: [{"@config.items.response_button_text", "Next question"}] + }) + |> results_match([ + %{name: "question_num", value: 1}, + %{name: "question_id", value: "all-of-the-above"}, + ]) + end + + test "Second question incorrect", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowTester.send("Next question") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("It helps bonding") + |> receive_message(%{ + text: "🤔 It's even better than that!\r\n\r\nBreastfeeding is great for" <> _, + buttons: [{"@config.items.response_button_text", "Next question"}] + }) + |> results_match([ + %{name: "question_num", value: 1}, + %{name: "question_id", value: "bonding"}, + ]) + end + + test "Third question", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("Next question") + |> receive_message(%{ + text: "*Question 3*" <> _, + list: {"Select option", [{"Immune boost", "Immune boost"}, {"Everything he needs", "Everything he needs"}, {"It's clean and safe", "It's clean and safe"}, {"All of the above", "All of the above"}]}, + }) + |> results_match([]) + end + + test "Third question correct", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowTester.send("Next question") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("All of the above") + |> receive_message(%{ + text: "*Yes, all of these benefits are true* ✅" <> _, + buttons: [{"@config.items.response_button_text", "Next question"}] + }) + |> results_match([ + %{name: "question_num", value: 2}, + %{name: "question_id", value: "all-of-the-above"}, + ]) + end + + test "Third question incorrect", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowTester.send("Next question") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("Immune boost") + |> receive_message(%{ + text: "*It's even better than that - all of these are true!* 🤔" <> _, + buttons: [{"@config.items.response_button_text", "Next question"}] + }) + |> results_match([ + %{name: "question_num", value: 2}, + %{name: "question_id", value: "immune-boost"}, + ]) + end + + test "Fourth question", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("Next question") + |> receive_message(%{ + text: "*Question 4*" <> _, + buttons: [{"When he is hungry", "When he is hungry"}, {"Every 4 hours", "Every 4 hours"}, {"Every 2 hours", "Every 2 hours"}] + }) + |> results_match([]) + end + + test "Fourth question correct", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowTester.send("Next question") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("When he is hungry") + |> receive_message(%{ + text: "*That's correct* ✅" <> _, + buttons: [{"@config.items.response_button_text", "Next question"}] + }) + |> results_match([ + %{name: "question_num", value: 3}, + %{name: "question_id", value: "when-he-is-hungry"}, + ]) + end + + test "Fourth question incorrect", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowTester.send("Next question") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("Every 4 hours") + |> receive_message(%{ + text: "🤔\r\n\r\nIn fact, experts around the world recommend that you" <> _, + buttons: [{"@config.items.response_button_text", "Next question"}] + }) + |> results_match([ + %{name: "question_num", value: 3}, + %{name: "question_id", value: "every-4-hours"}, + ]) + end + + test "Champion result", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Breast milk only") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowTester.send("Next question") + |> FlowTester.send("When he is hungry") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("Next question") + |> receive_message(%{ + text: "*You are a champion!* 🏆\r\n\r\nYou got 4 out of 4 answers right." <> _, + image: "https://example.com/champion.jpg" + }) + |> results_match([ + %{name: "end", value: "breastfeeding-quiz"}, + %{name: "risk", value: "high"}, + %{name: "score", value: 4.0}, + %{name: "max_score", value: 4.0}, + ]) + end + + test "Good result", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowTester.send("Next question") + |> FlowTester.send("It helps bonding") + |> FlowTester.send("Next question") + |> FlowTester.send("All of the above") + |> FlowTester.send("Next question") + |> FlowTester.send("When he is hungry") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("Next question") + |> receive_message(%{ + text: "*Getting there*\r\n\r\nYou got 2 out of 4 answers right." <> _, + image: "https://example.com/good.jpg" + }) + |> results_match([ + %{name: "end", value: "breastfeeding-quiz"}, + %{name: "risk", value: "medium"}, + %{name: "score", value: 2.0}, + %{name: "max_score", value: 4.0}, + ]) + end + + test "Learner result", %{flow: flow} do + flow + |> FlowTester.start() + |> FlowTester.send("Formula") + |> FlowTester.send("Next question") + |> FlowTester.send("It helps bonding") + |> FlowTester.send("Next question") + |> FlowTester.send("Immune boost") + |> FlowTester.send("Next question") + |> FlowTester.send("Every 4 hours") + |> FlowStep.clear_messages() + |> FlowStep.clear_results() + |> FlowTester.send("Next question") + |> receive_message(%{ + text: "*Up for the challenge?*\r\n\r\nYou didn't get any answers correct" <> _, + image: "https://example.com/learner.jpg" + }) + |> results_match([ + %{name: "end", value: "breastfeeding-quiz"}, + %{name: "risk", value: "low"}, + %{name: "score", value: +0.0}, + %{name: "max_score", value: 4.0}, + ]) + end + end +end diff --git a/Onboarding/stacks_config.yaml b/Onboarding/stacks_config.yaml index 4e9cd5d..98b1655 100644 --- a/Onboarding/stacks_config.yaml +++ b/Onboarding/stacks_config.yaml @@ -1,4 +1,5 @@ --- +# base_url: "https://whatsapp-praekelt-cloud.turn.io/" tokens: - name: contentrepo qa_token: badly_managed_token_prod @@ -10,7 +11,8 @@ urls: stack_uuids: - name: "intro-and-welcome" # "Onboarding: Intro & Welcome" prod_uuid: 47111691-cb8d-4cf0-8ecc-ed6792108157 - qa_uuid: 5e59aafb-fc30-41f9-b268-6268173b2aff + # qa_uuid: 5e59aafb-fc30-41f9-b268-6268173b2aff + qa_uuid: dc3f2c5f-94ce-467b-a12f-52f8561fe667 - name: "intro-and-welcome-reminders" # "Onboarding: Intro & Welcome Reminders" prod_uuid: d28a1658-18af-4552-a985-905cf040d50e qa_uuid: ce992f8b-49d8-4876-8bfd-a62b6482206d @@ -70,4 +72,7 @@ stack_uuids: qa_uuid: 21b892d6-685c-458e-adae-304ece46022a - name: "dma-form" # DMA Form prod_uuid: b283e7c1-0a79-45ab-976c-5566d9ba06cd - qa_uuid: 690a9ffd-db6d-42df-ad8f-a1e5b469a099 \ No newline at end of file + qa_uuid: 690a9ffd-db6d-42df-ad8f-a1e5b469a099 + - name: "quiz-breastfeeding" # Quiz: Breastfeeding + prod_uuid: todo + qa_uuid: 9be6bd36-a687-44de-8cdd-f5ec758908c2 \ No newline at end of file