forked from CDCgov/covid19healthbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
covid_19_cdc_wrapper_non-english.json
10 lines (10 loc) · 35 KB
/
covid_19_cdc_wrapper_non-english.json
1
2
3
4
5
6
7
8
9
10
{
"name": "COVID-19 - CDC WRAPPER - Other Languages",
"id": "0899580a-5151-47e0-af86-db5948ff2832",
"scenario_trigger": "covid19_non_eng",
"description": "The CDC wrapper for the CORE CDC COVID-19 Protocol",
"active": true,
"updated": "2020-09-18T18:28:40.7840000Z",
"userDisplayName": "White, Peter M. (CDC/OCOO/OCIO)",
"code": "{\"version\":3,\"steps\":[{\"id\":\"92f0cce660a0-4619735961c4c19b-0bd8\",\"type\":\"assignVariable\",\"designer\":{\"xLocation\":908,\"yLocation\":100,\"next\":\"8420730a9913-a69c1f78eb3e8dc9-c27f\"},\"scope\":\"scenario\",\"operation\":\"set\",\"variable\":\"version\",\"value\":\"63\"},{\"id\":\"aeda96cb0b14-f59815b00710192c-d26a\",\"type\":\"prompt\",\"dataType\":\"scenario.dictionary.responses.disclaimer_response\",\"designer\":{\"xLocation\":908,\"yLocation\":340,\"next\":\"8f59dabfc635-32c4420b4bd13ca1-26d8\",\"listStyle\":3},\"text\":\"scenario.messages.disclaimer_msg\",\"variable\":\"disclaimer\",\"label\":\"Disclaimer\",\"stringId\":\"stringId_8f6afe84ba5a748e\",\"suggestions\":\"\",\"choiceType\":\"choice\"},{\"id\":\"d6d4667f4820-37efe92b505f7df8-caae\",\"type\":\"prompt\",\"dataType\":\"object\",\"designer\":{\"xLocation\":689,\"yLocation\":840,\"next\":\"42636423254f-7c7e4564d0a31021-55b6\"},\"text\":\"scenario.dictionary.other_questions.state_question\",\"variable\":\"user_state\",\"layout\":\"vertical\",\"attachment\":[{\"type\":\"AdaptiveCard\",\"cardCode\":\"{\\n\\t\\\"$schema\\\": \\\"http://adaptivecards.io/schemas/adaptive-card.json\\\",\\n\\t\\\"type\\\": \\\"AdaptiveCard\\\",\\n\\t\\\"version\\\": \\\"1.0\\\",\\n\\t\\\"body\\\": [\\n\\n\\t\\t{\\n\\t\\t\\t\\\"type\\\": \\\"Input.ChoiceSet\\\",\\n\\t\\t\\t\\\"id\\\": \\\"state\\\",\\n\\t\\t\\t\\\"style\\\": \\\"compact\\\",\\n\\t\\t\\t\\\"value\\\": \\\"default_message\\\",\\n\\t\\t\\t\\\"choices\\\": scenario.state_list\\n\\t\\t}\\n\\t],\\n\\t\\\"actions\\\": [\\n\\t\\t{\\n\\t\\t\\t\\\"type\\\": \\\"Action.Submit\\\",\\n\\t\\t\\t\\\"title\\\": scenario.dictionary.submit_button,\\n\\t\\t}\\n\\t]\\n}\"}],\"stringId\":\"stringId_fcaac8a1a283cd7c\",\"label\":\"State\"},{\"id\":\"547535af8b11-35de85daaa9d55ec-3166\",\"type\":\"branch\",\"condition\":\"scenario.disclaimer.index == 0\",\"designer\":{\"xLocation\":914,\"yLocation\":480,\"reverse\":true,\"next\":\"a3d9631652db-0c78a436dded6f01-405d\"},\"label\":\"Agree\",\"targetStepId\":\"28b059f3ab7a-bf9534bd71d8e651-cf89\"},{\"id\":\"abe9e2b59d19-aa0fab902cc370f6-554a\",\"type\":\"statement\",\"designer\":{\"xLocation\":991,\"yLocation\":413,\"next\":\"aeda96cb0b14-f59815b00710192c-d26a\"},\"text\":\"scenario.messages.decline_msg\",\"label\":\"Decline\",\"stringId\":\"stringId_e54bcb0fdfce6cdb\"},{\"id\":\"0076e55c75b7-326ee7a7a7ec97de-b150\",\"type\":\"branch\",\"condition\":\"scenario.user_state.state !== \\\"default_message\\\"\",\"designer\":{\"xLocation\":700,\"yLocation\":960,\"next\":\"33ca0d73eee5-b3dab51bc3040978-928f\"},\"label\":\"State\",\"targetStepId\":\"d8da500f1577-84bf1443033dfcc4-13f4\"},{\"id\":\"aae32c29388d-acad6c62868e53c1-e306\",\"type\":\"statement\",\"designer\":{\"xLocation\":600,\"yLocation\":900,\"next\":\"d6d4667f4820-37efe92b505f7df8-caae\"},\"text\":\"scenario.dictionary.responses.location_error\",\"stringId\":\"stringId_c57d505914f4039a\",\"label\":\"state\"},{\"id\":\"1215e0d59be3-881f2ad03faf2092-8a4b\",\"type\":\"branch\",\"condition\":\"scenario.country.index == 0\",\"designer\":{\"xLocation\":827,\"yLocation\":760,\"next\":\"8decdc9ff9e8-0b02a95dd9e6de0d-f7ad\",\"reverse\":true},\"label\":\"US\",\"targetStepId\":\"d6d4667f4820-37efe92b505f7df8-caae\"},{\"id\":\"daa402dfcdd8-6b812f6dded0e57e-eba8\",\"type\":\"prompt\",\"dataType\":\"scenario.dictionary.responses.location_response\",\"designer\":{\"xLocation\":820,\"yLocation\":692,\"listStyle\":3,\"next\":\"1215e0d59be3-881f2ad03faf2092-8a4b\"},\"text\":\"scenario.dictionary.other_questions.location_question\",\"variable\":\"country\",\"label\":\"US\",\"stringId\":\"stringId_0655b314a99de622\",\"choiceType\":\"choice\"},{\"id\":\"28b059f3ab7a-bf9534bd71d8e651-cf89\",\"type\":\"statement\",\"designer\":{\"xLocation\":820,\"yLocation\":580,\"next\":\"2070b2ea9e67-52c772187e3e896b-89ff\"},\"text\":\"scenario.messages.intro_msg\",\"stringId\":\"stringId_4c093721a34f007e\",\"label\":\"INTRO\"},{\"id\":\"2070b2ea9e67-52c772187e3e896b-89ff\",\"type\":\"statement\",\"designer\":{\"xLocation\":820,\"yLocation\":633,\"next\":\"daa402dfcdd8-6b812f6dded0e57e-eba8\"},\"text\":\"scenario.messages.instruct_msg\",\"stringId\":\"stringId_938f4b8fa6f67387\",\"label\":\"INSTR\"},{\"id\":\"8f59dabfc635-32c4420b4bd13ca1-26d8\",\"type\":\"assignVariable\",\"designer\":{\"xLocation\":907,\"yLocation\":413,\"next\":\"547535af8b11-35de85daaa9d55ec-3166\"},\"scope\":\"scenario\",\"operation\":\"incrementBy\",\"variable\":\"disclaimer_prompt_count\",\"value\":\"1\"},{\"id\":\"a3d9631652db-0c78a436dded6f01-405d\",\"type\":\"branch\",\"condition\":\"scenario.disclaimer_prompt_count > 2\",\"designer\":{\"xLocation\":1000,\"yLocation\":540,\"next\":\"abe9e2b59d19-aa0fab902cc370f6-554a\",\"reverse\":false},\"label\":\"CNT > 3\",\"targetStepId\":\"609e085a05aa-bc58e15662700b8e-d64d\"},{\"id\":\"a2733ea9fc43-265380e96e48dd1e-bdbe\",\"type\":\"statement\",\"designer\":{\"xLocation\":1060,\"yLocation\":800},\"text\":\"scenario.messages.msg12\",\"stringId\":\"stringId_f32a99d7a6ece081\",\"label\":\"MSG 12\",\"entity\":\"{\\n name: \\\"completion_event\\\",\\n message_id: 12 \\n}\"},{\"id\":\"562a186329ff-e0527c852a84abc5-6740\",\"type\":\"branch\",\"condition\":\"scenario.redirect\",\"designer\":{\"xLocation\":794,\"yLocation\":1180,\"next\":\"3d4b4fee43a8-daac73a7ae11779a-898e\"},\"label\":\"redirect\",\"targetStepId\":\"27b8c8976a8d-104d1135b3d3682a-2968\"},{\"id\":\"050274dd2bc9-1a65eb375f32fa47-885a\",\"type\":\"statement\",\"designer\":{\"xLocation\":867,\"yLocation\":1460},\"text\":\"scenario.state_msg\",\"stringId\":\"stringId_2583edb2dd096161\",\"label\":\"MSG 13\",\"entity\":\"{\\n name: \\\"completion_event\\\",\\n message_id: 13 \\n}\"},{\"id\":\"9cd0b8238414-6a4ea50ab40e5aa9-65f5\",\"type\":\"replaceScenario\",\"designer\":{\"xLocation\":690,\"yLocation\":1400},\"scenario\":\"covid19_core_non_eng\",\"args\":\"{\\n custom_outcome_message: scenario.state_msg,\\n show_core_message: true,\\n locale: scenario.locale,\\n outsideUS: scenario.outsideUS\\n}\"},{\"id\":\"7d4c913693c6-e571d89f1b3cd9e5-71ab\",\"type\":\"action\",\"label\":\"Outcome\",\"designer\":{\"xLocation\":1067,\"yLocation\":720,\"next\":\"a2733ea9fc43-265380e96e48dd1e-bdbe\"},\"onInit\":\"// store the contents of the conversation\\nconversation.wrapper_outcome = {\\n message_outcome: scenario.message_outcome.map(outcome => outcome.replace(/msg/, 'MSG ')),\\n version: scenario.version,\\n wrapper_scenario_data: {\\n country: scenario.country || null,\\n disclaimer: scenario.disclaimer || null,\\n user_state: scenario.user_state || null\\n }\\n}\\n\\nsession.logCustomEvent('CDC_WRAPPER_OUTCOME', conversation.wrapper_outcome)\"},{\"id\":\"609e085a05aa-bc58e15662700b8e-d64d\",\"type\":\"action\",\"label\":\"MSG 12\",\"designer\":{\"xLocation\":1067,\"yLocation\":640,\"next\":\"7d4c913693c6-e571d89f1b3cd9e5-71ab\"},\"onInit\":\"scenario.message_outcome = ['msg12']\"},{\"id\":\"8decdc9ff9e8-0b02a95dd9e6de0d-f7ad\",\"type\":\"action\",\"label\":\"OutsideUS\",\"designer\":{\"xLocation\":954,\"yLocation\":873,\"next\":\"562a186329ff-e0527c852a84abc5-6740\"},\"onInit\":\"scenario.message_outcome = ['msg11']\\r\\nscenario.outsideUS = 1\"},{\"id\":\"27b8c8976a8d-104d1135b3d3682a-2968\",\"type\":\"action\",\"label\":\"MSG 13\",\"designer\":{\"xLocation\":874,\"yLocation\":1280,\"next\":\"79bfb76f427e-dc04bc770a25aa72-e37b\"},\"onInit\":\"scenario.message_outcome = ['msg13']\"},{\"id\":\"3d4b4fee43a8-daac73a7ae11779a-898e\",\"type\":\"action\",\"label\":\"Outcome\",\"designer\":{\"xLocation\":694,\"yLocation\":1274,\"next\":\"9cd0b8238414-6a4ea50ab40e5aa9-65f5\"},\"onInit\":\"// store the contents of the conversation\\nconversation.wrapper_outcome = {\\n message_outcome: scenario.message_outcome || null,\\n version: scenario.version,\\n wrapper_scenario_data: {\\n country: scenario.country || null,\\n disclaimer: scenario.disclaimer || null,\\n user_state: scenario.user_state || null\\n }\\n}\\n\\nsession.logCustomEvent('CDC_WRAPPER_OUTCOME', conversation.wrapper_outcome)\"},{\"id\":\"8420730a9913-a69c1f78eb3e8dc9-c27f\",\"type\":\"action\",\"label\":\"DICT\",\"designer\":{\"xLocation\":914,\"yLocation\":160,\"next\":\"41d143006e49-adac0af4ffc3d6c7-afa0\"},\"onInit\":\"scenario.dictionary = {\\n\\n comorbidity: {\\n chronic_lung: customLocalizedStrings[\\\"CDC/comorbidity/chronic_lung\\\"],\\n serious_heart: customLocalizedStrings[\\\"CDC/comorbidity/serious_heart\\\"],\\n weak_immune: customLocalizedStrings[\\\"CDC/comorbidity/weak_immune\\\"],\\n pregnancy: customLocalizedStrings[\\\"CDC/comorbidity/pregnancy\\\"],\\n severe_obesity: customLocalizedStrings[\\\"CDC/comorbidity/severe_obesity\\\"],\\n underlying_conditions: customLocalizedStrings[\\\"CDC/comorbidity/underlying_conditions\\\"],\\n none_of_above: customLocalizedStrings[\\\"CDC/comorbidity/none_of_above\\\"],\\n },\\n\\n covid_symptoms: {\\n fever: customLocalizedStrings[\\\"CDC/covid_symptoms/fever\\\"],\\n cough: customLocalizedStrings[\\\"CDC/covid_symptoms/cough\\\"],\\n mild_mod_breathing: customLocalizedStrings[\\\"CDC/covid_symptoms/mild_mod_breathing\\\"],\\n sore_throat: customLocalizedStrings[\\\"CDC/covid_symptoms/sore_throat\\\"],\\n muscle_aches: customLocalizedStrings[\\\"CDC/covid_symptoms/muscle_aches\\\"],\\n vomiting: customLocalizedStrings[\\\"CDC/covid_symptoms/vomiting\\\"],\\n new_loss_taste_smell: customLocalizedStrings[\\\"CDC/covid_symptoms/new_loss_taste_smell\\\"],\\n other_symptoms: customLocalizedStrings[\\\"CDC/covid_symptoms/other_symptoms\\\"]\\n },\\n\\n submit_button: customLocalizedStrings[\\\"CDC/submit_button\\\"],\\n \\n responses: {\\n disclaimer_response: customLocalizedStrings[\\\"CDC/disclaimer_response\\\"],\\n yes_no_response: customLocalizedStrings[\\\"CDC/yes_no_response\\\"],\\n location_response: customLocalizedStrings[\\\"CDC/location_response\\\"],\\n location_error: customLocalizedStrings[\\\"CDC/location_error\\\"],\\n who_for_response: customLocalizedStrings[\\\"CDC/who_for_response\\\"],\\n age_response: customLocalizedStrings[\\\"CDC/age_response\\\"],\\n gender_response: customLocalizedStrings[\\\"CDC/gender_response\\\"],\\n yes_no_idk_response: customLocalizedStrings[\\\"CDC/yes_no_idk_response\\\"],\\n yes_or_idk_no_response: customLocalizedStrings[\\\"CDC/yes_or_idk_no_response\\\"]\\n },\\n\\n other_questions: {\\n location_question: customLocalizedStrings[\\\"CDC/location_question\\\"],\\n state_question: customLocalizedStrings[\\\"CDC/state_question\\\"],\\n who_for_question: customLocalizedStrings[\\\"CDC/who_for_question\\\"]\\n },\\n \\n second_person_questions: {\\n check_box_question: customLocalizedStrings[\\\"CDC/second_person_questions/check_box_question\\\"],\\n ppe: customLocalizedStrings[\\\"CDC/second_person_questions/ppe\\\"],\\n hcf_short: customLocalizedStrings[\\\"CDC/second_person_questions/hcf_short\\\"],\\n close_contact: customLocalizedStrings[\\\"CDC/second_person_questions/close_contact\\\"],\\n ltcf_question: customLocalizedStrings[\\\"CDC/second_person_questions/ltcf_question\\\"],\\n hcf_question: customLocalizedStrings[\\\"CDC/second_person_questions/hcf_question\\\"],\\n gender_question: customLocalizedStrings[\\\"CDC/second_person_questions/gender_question\\\"],\\n risk_factor_question: customLocalizedStrings[\\\"CDC/second_person_questions/risk_factor_question\\\"],\\n exposure_question: customLocalizedStrings[\\\"CDC/second_person_questions/exposure_question\\\"],\\n is_ill_question: customLocalizedStrings[\\\"CDC/second_person_questions/is_ill_question\\\"],\\n age_question: customLocalizedStrings[\\\"CDC/second_person_questions/age_question\\\"],\\n life_threat_question: customLocalizedStrings[\\\"CDC/second_person_questions/life_threat_question\\\"]\\n },\\n\\n third_person_questions: {\\n check_box_question: customLocalizedStrings[\\\"CDC/third_person_questions/check_box_question\\\"],\\n ppe: customLocalizedStrings[\\\"CDC/third_person_questions/ppe\\\"],\\n hcf_short: customLocalizedStrings[\\\"CDC/third_person_questions/hcf_short\\\"],\\n close_contact: customLocalizedStrings[\\\"CDC/third_person_questions/close_contact\\\"],\\n ltcf_question: customLocalizedStrings[\\\"CDC/third_person_questions/ltcf_question\\\"],\\n hcf_question: customLocalizedStrings[\\\"CDC/third_person_questions/hcf_question\\\"],\\n gender_question: customLocalizedStrings[\\\"CDC/third_person_questions/gender_question\\\"],\\n risk_factor_question: customLocalizedStrings[\\\"CDC/third_person_questions/risk_factor_question\\\"],\\n exposure_question: customLocalizedStrings[\\\"CDC/third_person_questions/exposure_question\\\"],\\n is_ill_question: customLocalizedStrings[\\\"CDC/third_person_questions/is_ill_question\\\"],\\n age_question: customLocalizedStrings[\\\"CDC/third_person_questions/age_question\\\"],\\n life_threat_question: customLocalizedStrings[\\\"CDC/third_person_questions/life_threat_question\\\"]\\n }\\n}\\n\\nscenario.messages = {\\n disclaimer_msg: customLocalizedStrings[\\\"CDC/messages/disclaimer_msg\\\"],\\n decline_msg: customLocalizedStrings[\\\"CDC/messages/decline_msg\\\"],\\n intro_msg: customLocalizedStrings[\\\"CDC/messages/intro_msg\\\"],\\n instruct_msg: customLocalizedStrings[\\\"CDC/messages/instruct_msg\\\"],\\n continue_msg: customLocalizedStrings[\\\"CDC/messages/continue_msg\\\"],\\n\\n msg0: customLocalizedStrings[\\\"CDC/messages/msg0\\\"],\\n msg1: customLocalizedStrings[\\\"CDC/messages/msg1\\\"],\\n msg2: customLocalizedStrings[\\\"CDC/messages/msg2\\\"],\\n msg3: customLocalizedStrings[\\\"CDC/messages/msg3\\\"],\\n msg4: customLocalizedStrings[\\\"CDC/messages/msg4\\\"],\\n msg5: customLocalizedStrings[\\\"CDC/messages/msg5\\\"],\\n msg6: customLocalizedStrings[\\\"CDC/messages/msg6\\\"],\\n msg7: customLocalizedStrings[\\\"CDC/messages/msg7\\\"],\\n msg8: customLocalizedStrings[\\\"CDC/messages/msg8\\\"],\\n \\n msg9: customLocalizedStrings[\\\"CDC/messages/msg9\\\"], \\n msg10: customLocalizedStrings[\\\"CDC/messages/msg10\\\"],\\n msg11: customLocalizedStrings[\\\"CDC/messages/msg11\\\"],\\n msg12: customLocalizedStrings[\\\"CDC/messages/msg12\\\"],\\n \\n msg13a: customLocalizedStrings[\\\"CDC/messages/msg13a\\\"],\\n msg13b: customLocalizedStrings[\\\"CDC/messages/msg13b\\\"],\\n\\n local_a: customLocalizedStrings[\\\"CDC/messages/local_a\\\"],\\n local_b: customLocalizedStrings[\\\"CDC/messages/local_b\\\"],\\n local_c: customLocalizedStrings[\\\"CDC/messages/local_c\\\"],\\n\\n msg14: customLocalizedStrings[\\\"CDC/messages/msg14\\\"],\\n msg15: customLocalizedStrings[\\\"CDC/messages/msg15\\\"],\\n msg16: customLocalizedStrings[\\\"CDC/messages/msg16\\\"],\\n msg17: customLocalizedStrings[\\\"CDC/messages/msg17\\\"],\\n msg18: customLocalizedStrings[\\\"CDC/messages/msg18\\\"],\\n\\n t0: customLocalizedStrings[\\\"CDC/messages/t0\\\"],\\n t1: customLocalizedStrings[\\\"CDC/messages/t1\\\"],\\n t2: customLocalizedStrings[\\\"CDC/messages/t2\\\"]\\n}\\n\\nscenario.state_list = [\\n {\\n name: customLocalizedStrings['CDC/Please_select_a_location/state_name'],\\n abbreviation: 'default_message',\\n link: null\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Alabama/state_name\\\"],\\n abbreviation: 'AL',\\n link: customLocalizedStrings[\\\"CDC/Alabama/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Alaska/state_name\\\"],\\n abbreviation: 'AK',\\n link: customLocalizedStrings[\\\"CDC/Alaska/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/American_Samoa/state_name\\\"],\\n abbreviation: 'AS',\\n link: customLocalizedStrings[\\\"CDC/American_Samoa/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Arizona/state_name\\\"],\\n abbreviation: 'AZ',\\n link: customLocalizedStrings[\\\"CDC/Arizona/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Arkansas/state_name\\\"],\\n abbreviation: 'AR',\\n link: customLocalizedStrings[\\\"CDC/Arkansas/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/California/state_name\\\"],\\n abbreviation: 'CA',\\n link: customLocalizedStrings[\\\"CDC/California/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/California_-_Los_Angeles_County/state_name\\\"],\\n abbreviation: 'Los_Angeles',\\n link: customLocalizedStrings[\\\"CDC/California_-_Los_Angeles_County/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Colorado/state_name\\\"],\\n abbreviation: 'CO',\\n link: customLocalizedStrings[\\\"CDC/Colorado/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Connecticut/state_name\\\"],\\n abbreviation: 'CT',\\n link: customLocalizedStrings[\\\"CDC/Connecticut/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Delaware/state_name\\\"],\\n abbreviation: 'DE',\\n link: customLocalizedStrings[\\\"CDC/Delaware/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/District_Of_Columbia/state_name\\\"],\\n abbreviation: 'DC',\\n link: customLocalizedStrings[\\\"CDC/District_Of_Columbia/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Federated_States_Of_Micronesia/state_name\\\"],\\n abbreviation: 'FM',\\n link: customLocalizedStrings[\\\"CDC/Federated_States_Of_Micronesia/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Florida/state_name\\\"],\\n abbreviation: 'FL',\\n link: customLocalizedStrings[\\\"CDC/Florida/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Georgia/state_name\\\"],\\n abbreviation: 'GA',\\n link: customLocalizedStrings[\\\"CDC/Georgia/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Guam/state_name\\\"],\\n abbreviation: 'GU',\\n link: customLocalizedStrings[\\\"CDC/Guam/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Hawaii/state_name\\\"],\\n abbreviation: 'HI',\\n link: customLocalizedStrings[\\\"CDC/Hawaii/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Idaho/state_name\\\"],\\n abbreviation: 'ID',\\n link: customLocalizedStrings[\\\"CDC/Idaho/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Illinois/state_name\\\"],\\n abbreviation: 'IL',\\n link: customLocalizedStrings[\\\"CDC/Illinois/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Illinois_–_Chicago/state_name\\\"],\\n abbreviation: 'Chicago',\\n link: customLocalizedStrings[\\\"CDC/Illinois_–_Chicago/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Indiana/state_name\\\"],\\n abbreviation: 'IN',\\n link: customLocalizedStrings[\\\"CDC/Indiana/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Iowa/state_name\\\"],\\n abbreviation: 'IA',\\n link: customLocalizedStrings[\\\"CDC/Iowa/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Kansas/state_name\\\"],\\n abbreviation: 'KS',\\n link: customLocalizedStrings[\\\"CDC/Kansas/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Kentucky/state_name\\\"],\\n abbreviation: 'KY',\\n link: customLocalizedStrings[\\\"CDC/Kentucky/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Louisiana/state_name\\\"],\\n abbreviation: 'LA',\\n link: customLocalizedStrings[\\\"CDC/Louisiana/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Maine/state_name\\\"],\\n abbreviation: 'ME',\\n link: customLocalizedStrings[\\\"CDC/Maine/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Marshall_Islands/state_name\\\"],\\n abbreviation: 'MH',\\n link: customLocalizedStrings[\\\"CDC/Marshall_Islands/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Maryland/state_name\\\"],\\n abbreviation: 'MD',\\n link: customLocalizedStrings[\\\"CDC/Maryland/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Massachusetts/state_name\\\"],\\n abbreviation: 'MA',\\n link: customLocalizedStrings[\\\"CDC/Massachusetts/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Michigan/state_name\\\"],\\n abbreviation: 'MI',\\n link: customLocalizedStrings[\\\"CDC/Michigan/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Minnesota/state_name\\\"],\\n abbreviation: 'MN',\\n link: customLocalizedStrings[\\\"CDC/Minnesota/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Mississippi/state_name\\\"],\\n abbreviation: 'MS',\\n link: customLocalizedStrings[\\\"CDC/Mississippi/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Missouri/state_name\\\"],\\n abbreviation: 'MO',\\n link: customLocalizedStrings[\\\"CDC/Missouri/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Montana/state_name\\\"],\\n abbreviation: 'MT',\\n link: customLocalizedStrings[\\\"CDC/Montana/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Nebraska/state_name\\\"],\\n abbreviation: 'NE',\\n link: customLocalizedStrings[\\\"CDC/Nebraska/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Nevada/state_name\\\"],\\n abbreviation: 'NV',\\n link: customLocalizedStrings[\\\"CDC/Nevada/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/New_Hampshire/state_name\\\"],\\n abbreviation: 'NH',\\n link: customLocalizedStrings[\\\"CDC/New_Hampshire/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/New_Jersey/state_name\\\"],\\n abbreviation: 'NJ',\\n link: customLocalizedStrings[\\\"CDC/New_Jersey/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/New_Mexico/state_name\\\"],\\n abbreviation: 'NM',\\n link: customLocalizedStrings[\\\"CDC/New_Mexico/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/New_York/state_name\\\"],\\n abbreviation: 'NY',\\n link: customLocalizedStrings[\\\"CDC/New_York/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/New_York_–_New_York_City/state_name\\\"],\\n abbreviation: 'New_York_City',\\n link: customLocalizedStrings[\\\"CDC/New_York_–_New_York_City/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/North_Carolina/state_name\\\"],\\n abbreviation: 'NC',\\n link: customLocalizedStrings[\\\"CDC/North_Carolina/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/North_Dakota/state_name\\\"],\\n abbreviation: 'ND',\\n link: customLocalizedStrings[\\\"CDC/North_Dakota/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Northern_Mariana_Islands/state_name\\\"],\\n abbreviation: 'MP',\\n link: customLocalizedStrings[\\\"CDC/Northern_Mariana_Islands/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Ohio/state_name\\\"],\\n abbreviation: 'OH',\\n link: customLocalizedStrings[\\\"CDC/Ohio/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Oklahoma/state_name\\\"],\\n abbreviation: 'OK',\\n link: customLocalizedStrings[\\\"CDC/Oklahoma/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Oregon/state_name\\\"],\\n abbreviation: 'OR',\\n link: customLocalizedStrings[\\\"CDC/Oregon/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Palau/state_name\\\"],\\n abbreviation: 'PW',\\n link: customLocalizedStrings[\\\"CDC/Palau/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Pennsylvania/state_name\\\"],\\n abbreviation: 'PA',\\n link: customLocalizedStrings[\\\"CDC/Pennsylvania/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Puerto_Rico/state_name\\\"],\\n abbreviation: 'PR',\\n link: customLocalizedStrings[\\\"CDC/Puerto_Rico/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Rhode_Island/state_name\\\"],\\n abbreviation: 'RI',\\n link: customLocalizedStrings[\\\"CDC/Rhode_Island/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/South_Carolina/state_name\\\"],\\n abbreviation: 'SC',\\n link: customLocalizedStrings[\\\"CDC/South_Carolina/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/South_Dakota/state_name\\\"],\\n abbreviation: 'SD',\\n link: customLocalizedStrings[\\\"CDC/South_Dakota/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Tennessee/state_name\\\"],\\n abbreviation: 'TN',\\n link: customLocalizedStrings[\\\"CDC/Tennessee/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Texas/state_name\\\"],\\n abbreviation: 'TX',\\n link: customLocalizedStrings[\\\"CDC/Texas/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Utah/state_name\\\"],\\n abbreviation: 'UT',\\n link: customLocalizedStrings[\\\"CDC/Utah/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Vermont/state_name\\\"],\\n abbreviation: 'VT',\\n link: customLocalizedStrings[\\\"CDC/Vermont/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Virgin_Islands/state_name\\\"],\\n abbreviation: 'VI',\\n link: customLocalizedStrings[\\\"CDC/Virgin_Islands/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Virginia/state_name\\\"],\\n abbreviation: 'VA',\\n link: customLocalizedStrings[\\\"CDC/Virginia/state_link\\\"]\\n },\\n { \\n name: customLocalizedStrings[\\\"CDC/Washington/state_name\\\"], \\n abbreviation: 'WA', \\n link: customLocalizedStrings[\\\"CDC/Washington/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/West_Virginia/state_name\\\"],\\n abbreviation: 'WV',\\n link: customLocalizedStrings[\\\"CDC/West_Virginia/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Wisconsin/state_name\\\"],\\n abbreviation: 'WI',\\n link: customLocalizedStrings[\\\"CDC/Wisconsin/state_link\\\"]\\n },\\n {\\n name: customLocalizedStrings[\\\"CDC/Wyoming/state_name\\\"],\\n abbreviation: 'WY',\\n link: customLocalizedStrings[\\\"CDC/Wyoming/state_link\\\"]\\n }\\n]\"},{\"id\":\"d8da500f1577-84bf1443033dfcc4-13f4\",\"type\":\"action\",\"label\":\"STATE MSG\",\"designer\":{\"xLocation\":794,\"yLocation\":1071,\"next\":\"562a186329ff-e0527c852a84abc5-6740\"},\"onInit\":\"const abbr = scenario.user_state.state\\nconst userState = scenario.state_list.find(state => state.abbreviation === abbr)\\nconst stateLink = scenario.state_links[abbr]\\n\\nif (stateLink.url) {\\n const selected_link = userState.link\\n const selected_url = stateLink.url\\n\\n if (stateLink.redirect_patients) {\\n scenario.redirect = true\\n scenario.state_msg = scenario.messages.msg13a + selected_url + scenario.messages.msg13b \\n } else {\\n scenario.state_msg = scenario.messages.local_a + selected_link + scenario.messages.local_b + selected_url + scenario.messages.local_c\\n }\\n}\"},{\"id\":\"41d143006e49-adac0af4ffc3d6c7-afa0\",\"type\":\"action\",\"label\":\"STATE LIST\",\"designer\":{\"xLocation\":914,\"yLocation\":253,\"next\":\"aeda96cb0b14-f59815b00710192c-d26a\"},\"onInit\":\"scenario.state_list = scenario.state_list.map(item => ({ ...item, title: item.name, value: item.abbreviation }))\\n\\nscenario.state_links = {\\n AL: { url: 'http://www.adph.org/', redirect_patients: false },\\n AK: {\\n url: 'http://dhss.alaska.gov/Pages/default.aspx',\\n redirect_patients: false\\n },\\n AS: { url: 'http://dhss.as/', redirect_patients: false },\\n AZ: { url: 'http://www.azdhs.gov/', redirect_patients: false },\\n AR: {\\n url: 'https://www.healthy.arkansas.gov/',\\n redirect_patients: false\\n },\\n CA: { url: 'https://www.cdph.ca.gov/', redirect_patients: false },\\n Los_Angeles: {\\n url: 'http://publichealth.lacounty.gov/',\\n redirect_patients: false\\n },\\n CO: { url: 'https://www.colorado.gov/cdphe', redirect_patients: false },\\n CT: {\\n url: 'http://www.ct.gov/dph/site/default.asp',\\n redirect_patients: false\\n },\\n DE: {\\n url: 'http://www.dhss.delaware.gov/dhss/dph/index.html',\\n redirect_patients: false\\n },\\n DC: { url: 'http://doh.dc.gov/', redirect_patients: false },\\n FM: { url: 'http://www.fsmgov.org/ngovt.html', redirect_patients: false },\\n FL: { url: 'http://www.floridahealth.gov/', redirect_patients: false },\\n GA: { url: 'http://dph.georgia.gov/', redirect_patients: false },\\n GU: { url: 'https://dphss.guam.gov/dph/', redirect_patients: false },\\n HI: {\\n url: 'https://health.hawaii.gov/docd/advisories/novel-coronavirus-2019/',\\n redirect_patients: false\\n },\\n ID: {\\n url: 'http://www.healthandwelfare.idaho.gov/',\\n redirect_patients: false\\n },\\n IL: { url: 'http://www.idph.state.il.us/', redirect_patients: false },\\n Chicago: {\\n url: 'https://www.chicago.gov/city/en/sites/covid-19/home.html',\\n redirect_patients: false\\n },\\n IN: { url: 'http://www.in.gov/isdh/', redirect_patients: false },\\n IA: { url: 'http://idph.iowa.gov/', redirect_patients: false },\\n KS: { url: 'http://www.kdheks.gov/', redirect_patients: false },\\n KY: {\\n url: 'https://chfs.ky.gov/agencies/dph/Pages/default.aspx',\\n redirect_patients: false\\n },\\n LA: { url: 'http://dhh.louisiana.gov/', redirect_patients: false },\\n ME: {\\n url: 'http://www.maine.gov/dhhs/index.shtml',\\n redirect_patients: false\\n },\\n MH: { url: null, redirect_patients: false },\\n MD: {\\n url: 'http://dhmh.maryland.gov/Pages/Index.aspx',\\n redirect_patients: false\\n },\\n MA: {\\n url: 'https://www.mass.gov/orgs/department-of-public-health',\\n redirect_patients: false\\n },\\n MI: { url: 'http://www.michigan.gov/mdch', redirect_patients: false },\\n MN: {\\n url: 'https://www.health.state.mn.us/diseases/coronavirus/basics.html',\\n redirect_patients: false\\n },\\n MS: { url: 'http://www.msdh.state.ms.us/', redirect_patients: false },\\n MO: { url: 'http://health.mo.gov/index.php', redirect_patients: false },\\n MT: { url: 'http://dphhs.mt.gov/', redirect_patients: false },\\n NE: {\\n url: 'http://dhhs.ne.gov/Pages/default.aspx',\\n redirect_patients: false\\n },\\n NV: { url: 'http://dpbh.nv.gov/', redirect_patients: false },\\n NH: { url: 'http://www.dhhs.nh.gov/', redirect_patients: false },\\n NJ: { url: 'http://www.state.nj.us/health/', redirect_patients: false },\\n NM: { url: 'http://nmhealth.org/', redirect_patients: false },\\n NY: { url: 'https://www.health.ny.gov/', redirect_patients: false },\\n New_York_City: { url: 'http://www.nyc.gov/health', redirect_patients: false },\\n NC: { url: 'http://www.ncdhhs.gov/', redirect_patients: false },\\n ND: { url: 'http://www.ndhealth.gov/', redirect_patients: false },\\n MP: { url: 'http://chcc.gov.mp/', redirect_patients: false },\\n OH: { url: 'https://www.odh.ohio.gov/', redirect_patients: false },\\n OK: { url: 'https://www.ok.gov/health/', redirect_patients: false },\\n OR: {\\n url: 'http://www.oregon.gov/oha/ph/pages/index.aspx',\\n redirect_patients: false\\n },\\n PW: { url: 'http://www.palauhealth.org/', redirect_patients: false },\\n PA: {\\n url: 'https://www.health.pa.gov/Pages/default.aspx',\\n redirect_patients: false\\n },\\n PR: {\\n url: 'http://www.salud.gov.pr/Pages/Home.aspx',\\n redirect_patients: false\\n },\\n RI: { url: 'https://health.ri.gov/', redirect_patients: false },\\n SC: { url: 'http://www.scdhec.gov/', redirect_patients: false },\\n SD: { url: 'http://doh.sd.gov/', redirect_patients: false },\\n TN: { url: 'https://www.tn.gov/health.html', redirect_patients: false },\\n TX: { url: 'https://www.dshs.state.tx.us/', redirect_patients: false },\\n UT: { url: 'https://health.utah.gov/', redirect_patients: false },\\n VT: { url: 'http://healthvermont.gov/', redirect_patients: false },\\n VI: { url: 'https://doh.vi.gov/', redirect_patients: false },\\n VA: { url: 'http://www.vdh.virginia.gov/', redirect_patients: false },\\n WA: {\\n url: ' https://www.providence.org/patients-and-visitors/coronavirus-advisory',\\n redirect_patients: false\\n },\\n WV: {\\n url: 'http://www.dhhr.wv.gov/bph/Pages/default.aspx',\\n redirect_patients: false\\n },\\n WI: { url: 'https://www.dhs.wisconsin.gov/', redirect_patients: false },\\n WY: { url: 'http://health.wyo.gov/', redirect_patients: false }\\n}\"},{\"id\":\"79bfb76f427e-dc04bc770a25aa72-e37b\",\"type\":\"action\",\"label\":\"Outcome\",\"designer\":{\"xLocation\":874,\"yLocation\":1370,\"next\":\"050274dd2bc9-1a65eb375f32fa47-885a\"},\"onInit\":\"// store the contents of the conversation\\nconversation.wrapper_outcome = {\\n message_outcome: scenario.message_outcome.map(outcome => outcome.replace(/msg/, 'MSG ')),\\n version: scenario.version,\\n wrapper_scenario_data: {\\n country: scenario.country || null,\\n disclaimer: scenario.disclaimer || null,\\n user_state: scenario.user_state || null\\n }\\n}\\n\\nsession.logCustomEvent('CDC_WRAPPER_OUTCOME', conversation.wrapper_outcome)\"},{\"id\":\"42636423254f-7c7e4564d0a31021-55b6\",\"type\":\"assignVariable\",\"designer\":{\"xLocation\":688,\"yLocation\":900,\"next\":\"0076e55c75b7-326ee7a7a7ec97de-b150\"},\"scope\":\"scenario\",\"operation\":\"incrementBy\",\"label\":\"prompt count\",\"variable\":\"prompt_count\",\"value\":\"1\"},{\"id\":\"33ca0d73eee5-b3dab51bc3040978-928f\",\"type\":\"branch\",\"condition\":\"scenario.prompt_count > 2\",\"designer\":{\"xLocation\":580,\"yLocation\":990,\"next\":\"aae32c29388d-acad6c62868e53c1-e306\"},\"label\":\"CNT = 3\",\"targetStepId\":\"59259b15ab04-382c15ebc1d63bb0-a65f\"},{\"id\":\"59259b15ab04-382c15ebc1d63bb0-a65f\",\"type\":\"action\",\"label\":\"MSG 0\",\"designer\":{\"xLocation\":600,\"yLocation\":1088,\"next\":\"e08e56346858-6063d18aaa2ce21a-3893\"},\"onInit\":\"scenario.message_outcome = ['msg0']\"},{\"id\":\"e08e56346858-6063d18aaa2ce21a-3893\",\"type\":\"action\",\"label\":\"Outcome\",\"designer\":{\"xLocation\":600,\"yLocation\":1166,\"next\":\"690a84774ef7-46345871da81a557-9117\"},\"onInit\":\"// store the contents of the conversation\\nconversation.wrapper_outcome = {\\n message_outcome: scenario.message_outcome.map(outcome => outcome.replace(/msg/, 'MSG ')),\\n version: scenario.version,\\n wrapper_scenario_data: {\\n country: scenario.country || null,\\n disclaimer: scenario.disclaimer || null,\\n user_state: scenario.user_state || null\\n }\\n}\\n\\nsession.logCustomEvent('CDC_WRAPPER_OUTCOME', conversation.wrapper_outcome)\"},{\"id\":\"690a84774ef7-46345871da81a557-9117\",\"type\":\"statement\",\"designer\":{\"xLocation\":590,\"yLocation\":1248},\"text\":\"scenario.messages.msg0\",\"stringId\":\"stringId_2c4d11f50a637cc9\",\"label\":\"MSG 0\",\"entity\":\"{\\n name: \\\"completion_event\\\",\\n message_id: 0 \\n}\"}],\"interrupting\":false,\"breaking\":false,\"returningMessage\":\"Let's resume the COVID-19 assessment\"}"
}