From 325a085f49ff197b4331ea8951999ea50d907656 Mon Sep 17 00:00:00 2001 From: Cassidy Symons Date: Sat, 7 Dec 2024 15:55:02 -0800 Subject: [PATCH 1/5] Add skin surveys --- microsetta_private_api/api/_survey.py | 2 + .../api/tests/test_integration.py | 8 +- microsetta_private_api/db/patches/0143.sql | 1823 +++++++++++++++++ .../repo/survey_template_repo.py | 14 + 4 files changed, 1844 insertions(+), 3 deletions(-) create mode 100644 microsetta_private_api/db/patches/0143.sql diff --git a/microsetta_private_api/api/_survey.py b/microsetta_private_api/api/_survey.py index a138df1de..1484c87f0 100644 --- a/microsetta_private_api/api/_survey.py +++ b/microsetta_private_api/api/_survey.py @@ -52,6 +52,8 @@ def read_survey_templates(account_id, source_id, language_tag, token_info): SurveyTemplateRepo.ALLERGIES_ID, SurveyTemplateRepo.DIET_ID, SurveyTemplateRepo.DETAILED_DIET_ID, + SurveyTemplateRepo.SKIN_ID, + SurveyTemplateRepo.SKIN_HEALTH_DIAGNOSIS_ID, SurveyTemplateRepo.OTHER_ID ]]), 200 elif source.source_type == Source.SOURCE_TYPE_ANIMAL: diff --git a/microsetta_private_api/api/tests/test_integration.py b/microsetta_private_api/api/tests/test_integration.py index 4b6451d94..b8a1c394f 100644 --- a/microsetta_private_api/api/tests/test_integration.py +++ b/microsetta_private_api/api/tests/test_integration.py @@ -419,6 +419,8 @@ def test_surveys(self): SurveyTemplateRepo.ALLERGIES_ID, SurveyTemplateRepo.DIET_ID, SurveyTemplateRepo.DETAILED_DIET_ID, + SurveyTemplateRepo.SKIN_ID, + SurveyTemplateRepo.SKIN_HEALTH_DIAGNOSIS_ID, SurveyTemplateRepo.OTHER_ID]) self.assertListEqual([x["survey_template_id"] for x in doggy_surveys], [2]) @@ -702,9 +704,9 @@ def test_bobo_takes_all_local_surveys(self): SurveyTemplateRepo.ALLERGIES_ID, SurveyTemplateRepo.DIET_ID, SurveyTemplateRepo.DETAILED_DIET_ID, - SurveyTemplateRepo.MIGRAINE_ID, - SurveyTemplateRepo.SURFERS_ID, - SurveyTemplateRepo.COVID19_ID): + SurveyTemplateRepo.SKIN_ID, + SurveyTemplateRepo.SKIN_HEALTH_DIAGNOSIS_ID, + SurveyTemplateRepo.OTHER_ID): continue resp = self.client.get( diff --git a/microsetta_private_api/db/patches/0143.sql b/microsetta_private_api/db/patches/0143.sql new file mode 100644 index 000000000..de84da62e --- /dev/null +++ b/microsetta_private_api/db/patches/0143.sql @@ -0,0 +1,1823 @@ +-- Add question about understanding of 'microbiome' to Basic Information survey +INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (522, 'Which of the following best describes your level of exposure and understanding of the word ''microbiome'' prior to enrolling in this research study?', '¿Cuál de las siguientes opciones describe mejor su nivel de exposición y comprensión de la palabra ''microbioma'' antes de inscribirse en este estudio de investigación?', '¿Cuál de las siguientes opciones describe mejor su nivel de exposición y comprensión de la palabra ''microbioma'' antes de inscribirse en este estudio de investigación?', 'FAMILIARITY_WITH_MICROBIOME', FALSE, 'tmi-survey-radio-vertical'); +INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (522, 'SINGLE'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I was not familiar with it', 'Yo no la conocía', 'Yo no la conocía'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I had heard of it, but I didn''t really know what it meant', 'Había oído hablar de ella, pero realmente no sabía lo que significaba', 'Había oído hablar de ella, pero realmente no sabía lo que significaba'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I was already familiar with it', 'Ya la conocía', 'Ya la conocía'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I was already familiar with it, and I am actively trying to take care of my gut microbiome', 'Ya la conocía, y estoy intentando activamente cuidar mi microbioma intestinal', 'Ya la conocía, y estoy intentando activamente cuidar mi microbioma intestinal'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I was already familiar with it, and I am actively trying to take care of my skin microbiome', 'Ya la conocía, y estoy intentando activamente cuidar el microbioma de mi piel', 'Ya la conocía, y estoy intentando activamente cuidar el microbioma de mi piel'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I was already familiar with it, and I am actively trying to take care of all my various microbiomes', 'Ya la conocía, y estoy tratando activamente de cuidar todos mis microbiomas', 'Ya la conocía, y estoy tratando activamente de cuidar todos mis microbiomas'); +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (522, 'I was not familiar with it', 1), + (522, 'I had heard of it, but I didn''t really know what it meant', 2), + (522, 'I was already familiar with it', 3), + (522, 'I was already familiar with it, and I am actively trying to take care of my gut microbiome', 4), + (522, 'I was already familiar with it, and I am actively trying to take care of my skin microbiome', 5), + (522, 'I was already familiar with it, and I am actively trying to take care of all my various microbiomes', 6); +INSERT INTO ag.group_questions (survey_group, survey_question_id, display_index) VALUES (-10, 522, 94); + +-- Fix wording on question about travel outside country of residence. Spanish versions are already correct. +UPDATE ag.survey_question SET american = 'I have traveled outside of my country of residence in the past _________.' WHERE survey_question_id = 16; + +-- Resequence questions in the Lifestyle survey to make room for new ones +UPDATE ag.group_questions SET display_index = 34 WHERE survey_question_id = 225 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 33 WHERE survey_question_id = 219 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 32 WHERE survey_question_id = 354 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 31 WHERE survey_question_id = 27 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 30 WHERE survey_question_id = 26 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 29 WHERE survey_question_id = 36 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 28 WHERE survey_question_id = 350 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 27 WHERE survey_question_id = 349 AND survey_group = -12; +-- Leave display_index = 26 open for new question +UPDATE ag.group_questions SET display_index = 25 WHERE survey_question_id = 348 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 24 WHERE survey_question_id = 347 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 23 WHERE survey_question_id = 346 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 22 WHERE survey_question_id = 345 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 21 WHERE survey_question_id = 344 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 20 WHERE survey_question_id = 35 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 19 WHERE survey_question_id = 34 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 18 WHERE survey_question_id = 33 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 17 WHERE survey_question_id = 32 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 16 WHERE survey_question_id = 495 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 15 WHERE survey_question_id = 163 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 14 WHERE survey_question_id = 494 AND survey_group = -12; +UPDATE ag.group_questions SET display_index = 13 WHERE survey_question_id = 29 AND survey_group = -12; +-- New questions will be added in display_index = 10-12 + +-- Add new questions to the Lifestyle survey +INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (523, 'How long have you been sleeping atypical hours?', '¿Cuánto tiempo lleva durmiendo horas atípicas?', '¿Cuánto tiempo lleva durmiendo horas atípicas?', 'ATYPICAL_SLEEP_TIME_HOW_LONG', FALSE, 'tmi-survey-radio-horizontal tmi-survey-triggered-question'); +INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (523, 'SINGLE'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Less than 1 year', 'Menos de 1 año', 'Menos de 1 año'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('More than 1 year', 'Más de 1 año', 'Más de 1 año'); +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (523, 'Less than 1 year', 1), + (523, 'More than 1 year', 2); +INSERT INTO ag.group_questions (survey_group, survey_question_id, display_index) VALUES (-12, 523, 26); +INSERT INTO ag.survey_question_triggers (survey_question_id, triggering_response, triggered_question) VALUES (348, 'Yes', 523); + +INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (524, 'At any point in your life (even if you don''t currently smoke), did you smoke more than 5 packs of cigarettes per year?', 'En algún momento de su vida (incluso si actualmente no fuma), ¿fumó más de 5 paquetes de cigarrillos al año?', 'En algún momento de su vida (incluso si actualmente no fuma), ¿fumó más de 5 paquetes de cigarrillos al año?', 'SMOKING_FIVE_PACKS_YEAR_EVER', FALSE, 'tmi-survey-radio-horizontal'); +INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (524, 'SINGLE'); +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (524, 'Yes', 1), + (524, 'No', 2), + (524, 'Not sure', 3); +INSERT INTO ag.group_questions (survey_group, survey_question_id, display_index) VALUES (-12, 524, 10); + +INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (525, 'For how many years?', '¿Por cuantos años?', '¿Por cuantos años?', 'SMOKING_FIVE_PACKS_YEAR_HOW_MANY', FALSE, 'tmi-survey-radio-vertical tmi-survey-triggered-question'); +INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (525, 'SINGLE'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('5 or fewer', '5 o menos', '5 o menos'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('More than 20', 'Más de 20', 'Más de 20'); +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (525, '5 or fewer', 1), + (525, '6 to 10', 2), + (525, '11 to 20', 3), + (525, 'More than 20', 4), + (525, 'Not sure', 5); +INSERT INTO ag.group_questions (survey_group, survey_question_id, display_index) VALUES (-12, 525, 11); +INSERT INTO ag.survey_question_triggers (survey_question_id, triggering_response, triggered_question) VALUES (524, 'Yes', 525); + +INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (526, 'On an average day, how many cigarettes do you (or did you) smoke?', 'En un día normal, ¿cuántos cigarrillos fuma (o fumaba)?', 'En un día normal, ¿cuántos cigarrillos fuma (o fumaba)?', 'SMOKING_AVERAGE_PER_DAY', FALSE, 'tmi-survey-radio-vertical tmi-survey-triggered-question'); +INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (526, 'SINGLE'); +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (526, '5 or fewer', 1), + (526, '6 to 10', 2), + (526, '11 to 20', 3), + (526, 'More than 20', 4), + (526, 'Not sure', 5); +INSERT INTO ag.group_questions (survey_group, survey_question_id, display_index) VALUES (-12, 526, 12); +INSERT INTO ag.survey_question_triggers (survey_question_id, triggering_response, triggered_question) VALUES (524, 'Yes', 526); +-- End new questions in Lifestyle survey + +-- Retire a few questions from the General Health survey. Newer, more detailed versions will exist in the skin-specific surveys. +UPDATE ag.survey_question SET retired = TRUE WHERE survey_question_id IN (500, 374, 375, 47); +-- Move them to negative display_index values to make resequencing/maintenance easier +UPDATE ag.group_questions SET display_index = -1 WHERE survey_question_id = 500 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = -2 WHERE survey_question_id = 374 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = -3 WHERE survey_question_id = 375 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = -4 WHERE survey_question_id = 47 AND survey_group = -14; + +-- Remove non-prescription acne products question from General Health group +DELETE FROM ag.group_questions WHERE survey_question_id = 48 AND survey_group = -14; + +-- And update the non-prescription acne products question's CSS classes to reflect that it will now be a triggered question in the Skin Health Diagnosis survey +UPDATE ag.survey_question SET css_classes = 'tmi-survey-radio-horizontal tmi-survey-triggered-question' WHERE survey_question_id = 48; + +-- Adjust wording of medication for other conditions question +UPDATE ag.survey_question SET american = 'Do you currently take non-prescription or prescription medication for conditions not related to facial acne?', spanish = '¿Toma algún medicamento de venta con o sin receta para afecciones no relacionadas con el acné facial?', spain_spanish = '¿Toma algún medicamento de venta con o sin receta para afecciones no relacionadas con el acné facial?' WHERE survey_question_id = 49; + +-- Resequence questions in the General Health survey +-- First, update all >0 values to values over 1000 to avoid collisions as we resequence +UPDATE ag.group_questions SET display_index = display_index + 1000 WHERE survey_group = -14 AND display_index > 0; +-- Then, set real values +UPDATE ag.group_questions SET display_index = 36 WHERE survey_question_id = 210 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 35 WHERE survey_question_id = 235 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 34 WHERE survey_question_id = 234 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 33 WHERE survey_question_id = 233 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 32 WHERE survey_question_id = 232 AND survey_group = -14; +-- Leave space for new question at 31 +UPDATE ag.group_questions SET display_index = 30 WHERE survey_question_id = 231 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 29 WHERE survey_question_id = 230 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 28 WHERE survey_question_id = 229 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 27 WHERE survey_question_id = 224 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 26 WHERE survey_question_id = 223 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 25 WHERE survey_question_id = 222 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 24 WHERE survey_question_id = 221 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 23 WHERE survey_question_id = 214 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 22 WHERE survey_question_id = 521 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 21 WHERE survey_question_id = 212 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 20 WHERE survey_question_id = 211 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 19 WHERE survey_question_id = 387 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 18 WHERE survey_question_id = 46 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 17 WHERE survey_question_id = 45 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 16 WHERE survey_question_id = 44 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 15 WHERE survey_question_id = 40 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 14 WHERE survey_question_id = 126 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 13 WHERE survey_question_id = 124 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 12 WHERE survey_question_id = 39 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 11 WHERE survey_question_id = 99 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 10 WHERE survey_question_id = 49 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 9 WHERE survey_question_id = 156 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 8 WHERE survey_question_id = 43 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 7 WHERE survey_question_id = 370 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 6 WHERE survey_question_id = 42 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 5 WHERE survey_question_id = 497 AND survey_group = -14; +-- Leave space for new question at 4 +-- Leave space for new question at 3 +UPDATE ag.group_questions SET display_index = 2 WHERE survey_question_id = 51 AND survey_group = -14; +UPDATE ag.group_questions SET display_index = 1 WHERE survey_question_id = 50 AND survey_group = -14; + +-- Add new questions to General Health survey +INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (527, 'Which reproductive stage are you in?', '¿En qué etapa reproductiva te encuentras?', '¿En qué etapa reproductiva te encuentras?', 'REPRODUCTIVE_STAGE', FALSE, 'tmi-survey-radio-vertical'); +INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (527, 'SINGLE'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Puberty', 'Pubertad', 'Pubertad'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Reproductive maturity', 'Madurez reproductiva', 'Madurez reproductiva'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Menopause (at least 12 months have passed since the last menstrual period)', 'Menopausia (han pasado al menos 12 meses desde el último período menstrual)', 'Menopausia (han pasado al menos 12 meses desde el último período menstrual)'); +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (527, 'Puberty', 1), + (527, 'Reproductive maturity', 2), + (527, 'Menopause (at least 12 months have passed since the last menstrual period)', 3), + (527, 'Not sure', 4), + (527, 'Not applicable', 5); +INSERT INTO ag.group_questions (survey_group, survey_question_id, display_index) VALUES (-14, 527, 3); + +INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (528, 'Do you commonly have an irregular menstrual cycle (for example: frequently fluctuating cycle length, period duration, or flow)', '¿Tiene comúnmente un ciclo menstrual irregular (por ejemplo: la duración del ciclo, la duración del período o flujo fluctúan con frecuencia)?', '¿Tiene comúnmente un ciclo menstrual irregular (por ejemplo: la duración del ciclo, la duración del período o flujo fluctúan con frecuencia)?', 'IRREGULAR_MENSTRUAL_CYCLE', FALSE, 'tmi-survey-radio-vertical tmi-survey-triggered-question'); +INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (528, 'SINGLE'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I don''t know because I don''t currently have periods (e.g. due to hormonal contraceptives)', 'No lo sé porque actualmente no tengo períodos (por ejemplo, debido a los anticonceptivos hormonales)', 'No lo sé porque actualmente no tengo períodos (por ejemplo, debido a los anticonceptivos hormonales)'); +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (528, 'Yes', 1), + (528, 'No', 2), + (528, 'Not sure', 3), + (528, 'I don''t know because I don''t currently have periods (e.g. due to hormonal contraceptives)', 4), + (528, 'Not applicable', 5); +INSERT INTO ag.group_questions (survey_group, survey_question_id, display_index) VALUES (-14, 528, 4); +INSERT INTO ag.survey_question_triggers (survey_question_id, triggering_response, triggered_question) VALUES (527, 'Reproductive maturity', 528); + +INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (529, 'During the past month, how often have you taken prescription or over-the-counter medicine to help you sleep? This does not include supplements like melatonin.', 'Durante el último mes, ¿con qué frecuencia tomó medicamentos recetados o de venta libre para ayudarle a dormir? Esto no incluye suplementos como la melatonina.', 'Durante el último mes, ¿con qué frecuencia tomó medicamentos recetados o de venta libre para ayudarle a dormir? Esto no incluye suplementos como la melatonina.', 'SLEEP_MEDICATION_PAST_MONTH', FALSE, 'tmi-survey-radio-vertical'); +INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (529, 'SINGLE'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Not during the past month', 'No durante el último mes', 'No durante el último mes'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Less than once a week', 'Menos de una vez a la semana', 'Menos de una vez a la semana'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Once or twice a week', 'Una o dos veces a la semana', 'Una o dos veces a la semana'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Three or more times a week', 'Tres o más veces por semana', 'Tres o más veces por semana'); +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I have never taken medicine to help me sleep', 'Nunca he tomado medicamentos para ayudarme a dormir', 'Nunca he tomado medicamentos para ayudarme a dormir'); +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (529, 'Not during the past month', 1), + (529, 'Less than once a week', 2), + (529, 'Once or twice a week', 3), + (529, 'Three or more times a week', 4), + (529, 'I have never taken medicine to help me sleep', 5); +INSERT INTO ag.group_questions (survey_group, survey_question_id, display_index) VALUES (-14, 529, 31); + +-- We need to change the "Poison ivy/oak" response to "Poison ivy/oak/sumac" (already exists as a potential response, but is unused). +-- To avoid issues with foreign keys, we need to update all existing responses to reflect this wording. From a data integrity standpoint, there's no issue since the old wording is a subset of the new wording. +-- This will necessitate repopulating both qiita and redbiom. +UPDATE ag.survey_response SET spanish = 'Roble/hiedra venenoso/zumaque', spain_spanish = 'Roble/hiedra venenoso/zumaque' WHERE american = 'Poison ivy/oak/sumac'; +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES (54, 'Poison ivy/oak/sumac', 6); +UPDATE ag.survey_answers SET response = 'Poison ivy/oak/sumac' WHERE response = 'Poison ivy/oak'; +DELETE FROM ag.survey_question_response WHERE survey_question_id = 54 AND response = 'Poison ivy/oak'; +UPDATE ag.survey_question_response SET display_index = 3 WHERE response = 'Poison ivy/oak/sumac' AND survey_question_id = 54; + +-- Create Skin survey +INSERT INTO ag.survey_group (group_order, american, spanish, spain_spanish) VALUES (-23, 'Skin', 'Piel', 'Piel'); +INSERT INTO ag.surveys (survey_id, survey_group) VALUES (23, -23); + +-- Create Skin Health Diagnosis survey +INSERT INTO ag.survey_group (group_order, american, spanish, spain_spanish) VALUES (-24, 'Skin Health Diagnosis', 'Diagnóstico de salud de la piel', 'Diagnóstico de salud de la piel'); +INSERT INTO ag.surveys (survey_id, survey_group) VALUES (24, -24); + +-- Create new responses we'll need +INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES + ('Very dry', 'Muy seca', 'Muy seca'), + ('Balanced (not oily or dry)', 'Equilibrada (ni grasa ni seca)', 'Equilibrada (ni grasa ni seca)'), + ('Combination (oily or dry in different places)', 'Combinada (grasa o seca en diferentes áreas)', 'Combinada (grasa o seca en diferentes áreas)'), + ('Oily', 'Grasa', 'Grasa'), + ('Very oily', 'Muy grasa', 'Muy grasa'), + ('I do not remember', 'No recuerdo', 'No recuerdo'), + ('I - Reddish-white', 'I - Rosada-blanca', 'I - Rosada-blanca'), + ('II - White-beige', 'II - Blanca-beige', 'II - Blanca-beige'), + ('III - Beige', 'III - Beige', 'III - Beige'), + ('IV - Light brown', 'IV - Morena clara', 'IV - Morena clara'), + ('V - Brown', 'V - Morena', 'V - Morena'), + ('VI - Black', 'VI - Negra', 'VI - Negra'), + ('More than 4 hours a day', 'Más de 4 horas al día', 'Más de 4 horas al día'), + ('Between 2-4 hours a day', 'Entre 2-4 horas al día', 'Entre 2-4 horas al día'), + ('Less than 2 hours a day', 'Menos de 2 horas al día', 'Menos de 2 horas al día'), + ('Always burns without tanning', 'Siempre se quema sin broncearse', 'Siempre se quema sin broncearse'), + ('Usually burns and tans poorly', 'Suele quemarse y broncearse mal', 'Suele quemarse y broncearse mal'), + ('Moderately burns but tans afterwards', 'Se quema moderadamente pero se broncea después', 'Se quema moderadamente pero se broncea después'), + ('Minimally burns and tans easily', 'Se quema mínimamente y se broncea fácilmente', 'Se quema mínimamente y se broncea fácilmente'), + ('Very rarely burns and develops a dark tan easily', 'Muy raramente se quema y desarrolla un bronceado oscuro con facilidad', 'Muy raramente se quema y desarrolla un bronceado oscuro con facilidad'), + ('Never sunburns and always develops a very dark tan', 'Nunca se quema con el sol y siempre desarrolla un bronceado muy oscuro', 'Nunca se quema con el sol y siempre desarrolla un bronceado muy oscuro'), + ('Acne scars (holes or indentation of the skin)', 'Cicatrices de acné (agujeros o hendiduras en la piel)', 'Cicatrices de acné (agujeros o hendiduras en la piel)'), + ('Blackheads/clogged pores', 'Puntos negros/poros obstruidos', 'Puntos negros/poros obstruidos'), + ('Dark spots', 'Manchas oscuras', 'Manchas oscuras'), + ('Depigmentation (vitiligo or spots that are lighter than the rest of the skin)', 'Despigmentación (vitíligo o manchas más claras que el resto de la piel)', 'Despigmentación (vitíligo o manchas más claras que el resto de la piel)'), + ('Dry skin/lack of moisture', 'Piel seca/falta de humedad', 'Piel seca/falta de humedad'), + ('Dull skin/lack of radiance', 'Falta de luminosidad', 'Falta de luminosidad'), + ('Fine lines', 'Lineas finas', 'Lineas finas'), + ('Hyperpigmentation (brown, black, gray, red, or pink spots or patches; also known as age spots or sun spots)', 'Hiperpigmentación (manchas o parches marrones, negros, grises, rojos o rosados; también conocidas como manchas de la edad o manchas solares)', 'Hiperpigmentación (manchas o parches marrones, negros, grises, rojos o rosados; también conocidas como manchas de la edad o manchas solares)'), + ('Large pores', 'Poros grandes', 'Poros grandes'), + ('Moles (raised brown, tan, or black spots on the skin)', 'Lunares (manchas elevadas de color café o negro en la piel)', 'Lunares (manchas elevadas de color café o negro en la piel)'), + ('Oily skin', 'Piel grasosa', 'Piel grasosa'), + ('Pigmented acne marks on face', 'Marcas pigmentadas de acné en la cara', 'Marcas pigmentadas de acné en la cara'), + ('Pimples/breakouts/blemishes', 'Granos/brotes/imperfecciones', 'Granos/brotes/imperfecciones'), + ('Redness', 'Enrojecimiento', 'Enrojecimiento'), + ('Rough or uneven skin texture', 'Textura de la piel áspera o desigual', 'Textura de la piel áspera o desigual'), + ('Sagging or loss of firmness (loose skin)', 'Flacidez o pérdida de firmeza (piel flácida)', 'Flacidez o pérdida de firmeza (piel flácida)'), + ('Sensitive skin', 'Piel sensible', 'Piel sensible'), + ('Shiny skin', 'Piel brillante', 'Piel brillante'), + ('Under eye bags (swelling or puffiness)', 'Bolsas debajo de los ojos (hinchazón)', 'Bolsas debajo de los ojos (hinchazón)'), + ('Under eye dark circles (darkening of under eye skin)', 'Círculos oscuros debajo de los ojos (oscurecimiento de la piel debajo de los ojos)', 'Círculos oscuros debajo de los ojos (oscurecimiento de la piel debajo de los ojos)'), + ('Uneven skin tone', 'Tono desigual de la piel', 'Tono desigual de la piel'), + ('Unpredictable or temperamental skin', 'Piel impredecible o temperamental', 'Piel impredecible o temperamental'), + ('Unwanted facial hair', 'Vello facial no deseado', 'Vello facial no deseado'), + ('Wrinkles', 'Arrugas', 'Arrugas'), + ('Hair loss', 'Perdida de cabello', 'Perdida de cabello'), + ('Dandruff (scalp is usually oily, larger flakes)', 'Caspa (el cuero cabelludo suele ser graso y con escamas más grandes)', 'Caspa (el cuero cabelludo suele ser graso y con escamas más grandes)'), + ('Dry scalp (scalp feels dry, very small, white flakes)', 'Cuero cabelludo seco (el cuero cabelludo se siente seco, con escamas blancas muy pequeñas)', 'Cuero cabelludo seco (el cuero cabelludo se siente seco, con escamas blancas muy pequeñas)'), + ('Itchy scalp', 'Picazón en el cuero cabelludo', 'Picazón en el cuero cabelludo'), + ('Anti-aging facial lotion, cream, or serum with UV protection', 'Loción, crema o suero facial antienvejecimiento con protección UV', 'Loción, crema o suero facial antienvejecimiento con protección UV'), + ('Anti-aging facial lotion, cream, or serum without UV protection', 'Loción, crema o suero facial antienvejecimiento sin protección UV', 'Loción, crema o suero facial antienvejecimiento sin protección UV'), + ('Anti-acne lotion', 'Loción antiacné', 'Loción antiacné'), + ('Brightening facial lotion, cream, or serum with UV protection', 'Loción, crema o suero facial iluminador con protección UV', 'Loción, crema o suero facial iluminador con protección UV'), + ('Brightening facial lotion, cream, or serum without UV protection', 'Loción, crema o suero facial iluminador sin protección UV', 'Loción, crema o suero facial iluminador sin protección UV'), + ('Eye skincare products (e.g., eye cream, balm, etc.)', 'Productos para el cuidado de la piel de los ojos (por ejemplo, crema para los ojos, bálsamo, etc.)', 'Productos para el cuidado de la piel de los ojos (por ejemplo, crema para los ojos, bálsamo, etc.)'), + ('Bar soap', 'Barra de jabón', 'Barra de jabón'), + ('Facial wash/cleanser (e.g., foam, gel, etc.)', 'Limpiador/lavado facial (por ejemplo, espuma, gel, etc.)', 'Limpiador/lavado facial (por ejemplo, espuma, gel, etc.)'), + ('Medicated facial cleanser (e.g., anti-acne cleanser containing salicylic acid or benzyl peroxide)', 'Limpiador facial con medicamento (por ejemplo, limpiador antiacné que contiene ácido salicílico o peróxido de bencilo)', 'Limpiador facial con medicamento (por ejemplo, limpiador antiacné que contiene ácido salicílico o peróxido de bencilo)'), + ('Antibacterial cleanser', 'Limpiador antibacteriano', 'Limpiador antibacteriano'), + ('Face-covering makeup (foundations, powders, concealers)', 'Maquillaje (bases, polvos, correctores)', 'Maquillaje (bases, polvos, correctores)'), + ('Facial scrub', 'Exfoliante facial', 'Exfoliante facial'), + ('Hair remover for face', 'Removedor de vello facial', 'Removedor de vello facial'), + ('Makeup removers', 'Desmaquillante', 'Desmaquillante'), + ('Moisturizer facial lotion, cream, or serum with UV protection', 'Loción, crema o suero facial humectante con protección UV', 'Loción, crema o suero facial humectante con protección UV'), + ('Moisturizer facial lotion, cream, or serum without UV protection', 'Loción, crema o suero facial humectante sin protección UV', 'Loción, crema o suero facial humectante sin protección UV'), + ('Razor or shaver for face', 'Afeitadora para la cara', 'Afeitadora para la cara'), + ('Self-tan products', 'Productos para broncearse', 'Productos para broncearse'), + ('Shaving foam or gel for face', 'Espuma o gel de afeitar para el rostro', 'Espuma o gel de afeitar para el rostro'), + ('Shower gel or body wash', 'Gel de ducha o jabón de baño líquido', 'Gel de ducha o jabón de baño líquido'), + ('Shampoo', 'Champú', 'Champú'), + ('Soft peeling (chemical exfoliant containing AHA (e.g., glycolic acid, lactic acid, etc.))', 'Peeling suave (exfoliante químico que contiene AHA (por ejemplo, ácido glicólico, ácido láctico, etc.))', 'Peeling suave (exfoliante químico que contiene AHA (por ejemplo, ácido glicólico, ácido láctico, etc.))'), + ('Sunscreen', 'Protector solar', 'Protector solar'), + ('Toner/astringent', 'Tónico astringente', 'Tónico astringente'), + ('Radiofrequency/thermage', 'Radiofrecuencia/térmica', 'Radiofrecuencia/térmica'), + ('Micro-needling', 'Microaguja', 'Microaguja'), + ('Professional peel', 'Peeling profesional', 'Peeling profesional'), + ('Dermabrasion', 'Dermoabrasión', 'Dermoabrasión'), + ('Ablative laser (no removing of top skin layer)', 'Láser ablativo (sin eliminación de la capa superior de la piel)', 'Láser ablativo (sin eliminación de la capa superior de la piel)'), + ('Non-ablative laser (removing of top skin layer)', 'Láser no ablativo (eliminación de la capa superior de la piel)', 'Láser no ablativo (eliminación de la capa superior de la piel)'), + ('Filler', 'Relleno', 'Relleno'), + ('Botox', 'Bótox', 'Bótox'), + ('Face lift', 'Lifting facial', 'Lifting facial'), + ('Others not listed', 'Otros', 'Otros'), + ('Laser', 'Láser', 'Láser'), + ('LED mask', 'Máscara LED', 'Máscara LED'), + ('Red light wand', 'Luz roja', 'Luz roja'), + ('Microneedling roller', 'Rodillo de microagujas', 'Rodillo de microagujas'), + ('Face', 'Cara', 'Cara'), + ('Neck', 'Cuello', 'Cuello'), + ('Scalp', 'Cuero cabelludo', 'Cuero cabelludo'), + ('Back', 'Espalda', 'Espalda'), + ('Chest', 'Pecho', 'Pecho'), + ('Abdomen', 'Abdomen', 'Abdomen'), + ('Legs', 'Piernas', 'Piernas'), + ('Arms', 'Brazos', 'Brazos'), + ('Feet', 'Pies', 'Pies'), + ('Hands', 'Manos', 'Manos'), + ('Knees', 'Rodillas', 'Rodillas'), + ('Elbows', 'Codos', 'Codos'), + ('Armpits', 'Axilas', 'Axilas'), + ('Infancy (0-2)', 'Infancia (0-2)', 'Infancia (0-2)'), + ('Childhood (3-8)', 'Niñez (3-8)', 'Niñez (3-8)'), + ('Adolescence (9-12)', 'Adolescencia (9-12)', 'Adolescencia (9-12)'), + ('Teenage (13-19)', 'Adolescencia (13-19)', 'Adolescencia (13-19)'), + ('20-29', '20-29', '20-29'), + ('30-39', '30-39', '30-39'), + ('40-49', '40-49', '40-49'), + ('50-59', '50-59', '50-59'), + ('60-69', '60-69', '60-69'), + ('70+', '70+', '70+'), + ('Yes, oral antibiotics', 'Sí, antibióticos orales', 'Sí, antibióticos orales'), + ('Yes, topical antibiotics', 'Sí, antibióticos tópicos', 'Sí, antibióticos tópicos'), + ('Yes, non-antibiotic topical treatments', 'Sí, tratamientos tópicos sin antibióticos', 'Sí, tratamientos tópicos sin antibióticos'), + ('More than a year ago', 'Hace más de un año', 'Hace más de un año'), + ('Season', 'Estación del año', 'Estación del año'), + ('Stress', 'Estres', 'Estres'), + ('Menstruation', 'Menstruación', 'Menstruación'), + ('Use of certain skin care products', 'Uso de ciertos productos para el cuidado de la piel', 'Uso de ciertos productos para el cuidado de la piel'), + ('Spring', 'Primavera', 'Primavera'), + ('Summer', 'Verano', 'Verano'), + ('Fall', 'Otoño', 'Otoño'), + ('Winter', 'Invierno', 'Invierno'), + ('Mildly', 'Levemente', 'Levemente'), + ('Moderately', 'Moderadamente', 'Moderadamente'), + ('Severely', 'Severamente', 'Severamente'), + ('Before menstruation begins', 'Antes de que comience la menstruación', 'Antes de que comience la menstruación'), + ('During menstruation', 'Durante la menstruación', 'Durante la menstruación'), + ('After menstruation ends', 'Después de que termina la menstruación', 'Después de que termina la menstruación'), + ('Yes, oral antifungals', 'Sí, antifúngico orales', 'Sí, antifúngico orales'), + ('Yes, topical antifungals', 'Sí, antifúngico tópicos', 'Sí, antifúngico tópicos'), + ('Yes, non-antifungal topical treatments', 'Sí, tratamientos tópicos no antifúngico', 'Sí, tratamientos tópicos no antifúngico'), + ('Yes, oral antivirals', 'Sí, antivirales orales', 'Sí, antivirales orales'), + ('Yes, topical antivirals', 'Sí, antivirales tópicos', 'Sí, antivirales tópicos'), + ('Yes, non-antiviral topical treatments', 'Sí, tratamientos tópicos no antivirales', 'Sí, tratamientos tópicos no antivirales'); + +-- Create new questions +INSERT INTO ag.survey_question (survey_question_id, american, question_shortname, spanish, spain_spanish, css_classes) VALUES + (530, 'What is your facial skin type?', 'FACIAL_SKIN_TYPE', '¿Cuál es su tipo de piel facial?', '¿Cuál es su tipo de piel facial?', 'tmi-survey-radio-vertical'), + (531, 'If you are currently in menopause (at least 12 months have passed since your last menstrual period), what was your facial skin type when you were in your 20s?', 'FACIAL_SKIN_TYPE_MENOPAUSE_20S', 'Si actualmente está en la menopausia (han pasado al menos 12 meses desde su último período menstrual), ¿cuál era su tipo de piel facial cuando tenía 20 años?', 'Si actualmente está en la menopausia (han pasado al menos 12 meses desde su último período menstrual), ¿cuál era su tipo de piel facial cuando tenía 20 años?', 'tmi-survey-radio-vertical'), + (532, 'Which image best describes your skin color?
', 'SKIN_COLOR', '¿Qué imagen describe mejor su color de piel?
', '¿Qué imagen describe mejor su color de piel?
', 'tmi-survey-radio-vertical'), + (533, 'On average, how many hours a day did you spend outdoors before the age of 18 (or do you spend if currently under the age of 18)?', 'HOURS_PER_DAY_OUTDOORS_UNDER_18', 'En promedio, ¿cuántas horas al día pasaba usted al aire libre antes de los 18 años (o pasa si actualmente tiene menos de 18 años)?', 'En promedio, ¿cuántas horas al día pasaba usted al aire libre antes de los 18 años (o pasa si actualmente tiene menos de 18 años)?', 'tmi-survey-radio-vertical'), + (534, 'On average, how many hours a day do you currently spend outdoors between 10am-2pm?', 'HOURS_PER_DAY_OUTDOORS_10AM_2PM', 'En promedio, ¿cuántas horas al día pasa actualmente al aire libre entre las 10 a. m. y las 2 p. m.?', 'En promedio, ¿cuántas horas al día pasa actualmente al aire libre entre las 10 a. m. y las 2 p. m.?', 'tmi-survey-radio-vertical'), + (535, 'How often do you use sunscreen with SPF under 50 on your face to protect yourself from sun exposure?', 'SUNSCREEN_UNDER_SPF_50', '¿Con qué frecuencia utiliza protector solar con SPF inferior a 50 en la cara para protegerse de la exposición al sol?', '¿Con qué frecuencia utiliza protector solar con SPF inferior a 50 en la cara para protegerse de la exposición al sol?', 'tmi-survey-radio-axis'), + (536, 'How often do you use sunscreen with SPF 50 or above (50+) on your face to protect yourself from sun exposure?', 'SUNSCREEN_OVER_SPF_50', '¿Con qué frecuencia utiliza protector solar con SPF 50 o superior (50+) en la cara para protegerse de la exposición al sol?', '¿Con qué frecuencia utiliza protector solar con SPF 50 o superior (50+) en la cara para protegerse de la exposición al sol?', 'tmi-survey-radio-axis'), + (537, 'Which best describes your skin''s reaction after sun exposure without sunscreen?', 'SKIN_REACTION_WITHOUT_SUNSCREEN', '¿Qué describe mejor la reacción de su piel después de la exposición al sol sin protector solar?', '¿Qué describe mejor la reacción de su piel después de la exposición al sol sin protector solar?', 'tmi-survey-radio-vertical'), + (538, 'Which of the following are you currently experiencing on your face? Select all that apply.', 'FACIAL_SKIN_CURRENT_CONDITIONS', '¿Cuál de las siguientes opciones está experimentando actualmente en su cara? Seleccione todas las que correspondan.', '¿Cuál de las siguientes opciones está experimentando actualmente en su cara? Seleccione todas las que correspondan.', 'tmi-survey-checkbox'), + (539, 'How would you describe the symptoms of acne scars (holes or indentation of the skin)?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_ACNE', '¿Cómo describiría los síntomas de cicatrices de acné (agujeros o hendiduras en la piel)?', '¿Cómo describiría los síntomas de cicatrices de acné (agujeros o hendiduras en la piel)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (540, 'How would you describe the symptoms of blackheads/clogged pores?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_BLACKHEADS', '¿Cómo describiría los síntomas de puntos negros/poros obstruidos?', '¿Cómo describiría los síntomas de puntos negros/poros obstruidos?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (541, 'How would you describe the symptoms of dark spots?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_DARK_SPOTS', '¿Cómo describiría los síntomas de manchas oscuras?', '¿Cómo describiría los síntomas de manchas oscuras?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (542, 'How would you describe the symptoms of depigmentation (vitiligo or spots that are lighter than the rest of the skin)?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_DEPIGMENTATION', '¿Cómo describiría los síntomas de despigmentación (vitíligo o manchas más claras que el resto de la piel)?', '¿Cómo describiría los síntomas de despigmentación (vitíligo o manchas más claras que el resto de la piel)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (543, 'How would you describe the symptoms of dry skin/lack of moisture?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_DRY_SKIN', '¿Cómo describiría los síntomas de piel seca/falta de humedad?', '¿Cómo describiría los síntomas de piel seca/falta de humedad?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (544, 'How would you describe the symptoms of dull skin/lack of radiance?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_DULL_SKIN', '¿Cómo describiría los síntomas de falta de luminosidad?', '¿Cómo describiría los síntomas de falta de luminosidad?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (545, 'How would you describe the symptoms of fine lines?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_FINE_LINES', '¿Cómo describiría los síntomas de lineas finas?', '¿Cómo describiría los síntomas de lineas finas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (546, 'How would you describe the symptoms of hyperpigmentation (brown, black, gray, red, or pink spots or patches; also known as age spots or sun spots)?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_HYPER_PIGMENTATION', '¿Cómo describiría los síntomas de hiperpigmentación (manchas o parches marrones, negros, grises, rojos o rosados; también conocidas como manchas de la edad o manchas solares)?', '¿Cómo describiría los síntomas de hiperpigmentación (manchas o parches marrones, negros, grises, rojos o rosados; también conocidas como manchas de la edad o manchas solares)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (547, 'How would you describe the symptoms of large pores?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_LARGE_PORES', '¿Cómo describiría los síntomas de poros grandes?', '¿Cómo describiría los síntomas de poros grandes?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (548, 'How would you describe the symptoms of moles (raised brown, tan, or black spots on the skin)?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_MOLES', '¿Cómo describiría los síntomas de lunares (manchas elevadas de color café o negro en la piel)?', '¿Cómo describiría los síntomas de lunares (manchas elevadas de color café o negro en la piel)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (549, 'How would you describe the symptoms of oily skin?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_OILY_SKIN', '¿Cómo describiría los síntomas de piel grasosa?', '¿Cómo describiría los síntomas de piel grasosa?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (550, 'How would you describe the symptoms of pigmented acne marks on face?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_PIGMENTED_ACNE', '¿Cómo describiría los síntomas de marcas pigmentadas de acné en la cara?', '¿Cómo describiría los síntomas de marcas pigmentadas de acné en la cara?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (551, 'How would you describe the symptoms of pimples/breakouts/blemishes?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_PIMPLES_BREAKOUTS_BLEMISHES', '¿Cómo describiría los síntomas de granos/brotes/imperfecciones?', '¿Cómo describiría los síntomas de granos/brotes/imperfecciones?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (552, 'How would you describe the symptoms of redness?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_REDNESS', '¿Cómo describiría los síntomas de enrojecimiento?', '¿Cómo describiría los síntomas de enrojecimiento?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (553, 'How would you describe the symptoms of rough or uneven skin texture?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_ROUGH_SKIN', '¿Cómo describiría los síntomas de textura de la piel áspera o desigual?', '¿Cómo describiría los síntomas de textura de la piel áspera o desigual?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (554, 'How would you describe the symptoms of sagging or loss of firmness (loose skin)?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_SAGGING', '¿Cómo describiría los síntomas de flacidez o pérdida de firmeza (piel flácida)?', '¿Cómo describiría los síntomas de flacidez o pérdida de firmeza (piel flácida)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (555, 'How would you describe the symptoms of sensitive skin?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_SENSITIVE_SKIN', '¿Cómo describiría los síntomas de piel sensible?', '¿Cómo describiría los síntomas de piel sensible?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (556, 'How would you describe the symptoms of shiny skin?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_SHINY_SKIN', '¿Cómo describiría los síntomas de piel brillante?', '¿Cómo describiría los síntomas de piel brillante?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (557, 'How would you describe the symptoms of under eye bags (swelling or puffiness)?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_UNDER_EYE_BAGS', '¿Cómo describiría los síntomas de bolsas debajo de los ojos (hinchazón)?', '¿Cómo describiría los síntomas de bolsas debajo de los ojos (hinchazón)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (558, 'How would you describe the symptoms of under eye dark circles (darkening of under eye skin)?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_UNDER_EYE_CIRCLES', '¿Cómo describiría los síntomas de círculos oscuros debajo de los ojos (oscurecimiento de la piel debajo de los ojos)?', '¿Cómo describiría los síntomas de círculos oscuros debajo de los ojos (oscurecimiento de la piel debajo de los ojos)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (559, 'How would you describe the symptoms of uneven skin tone?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_UNEVEN_SKIN_TONE', '¿Cómo describiría los síntomas de tono desigual de la piel?', '¿Cómo describiría los síntomas de tono desigual de la piel?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (560, 'How would you describe the symptoms of unpredictable or temperamental skin?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_UNPREDICTABLE_SKIN', '¿Cómo describiría los síntomas de piel impredecible o temperamental?', '¿Cómo describiría los síntomas de piel impredecible o temperamental?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (561, 'How would you describe the symptoms of unwanted facial hair?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_UNWANTED_FACIAL_HAIR', '¿Cómo describiría los síntomas de vello facial no deseado?', '¿Cómo describiría los síntomas de vello facial no deseado?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (562, 'How would you describe the symptoms of wrinkles?', 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_WRINKLES', '¿Cómo describiría los síntomas de arrugas?', '¿Cómo describiría los síntomas de arrugas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (563, 'Which of the following are you currently experiencing on your scalp? Select all that apply.', 'SCALP_CURRENT_CONDITIONS', '¿Cuál de los siguientes síntomas experimenta actualmente en su cuero cabelludo? Seleccione todas las que correspondan.', '¿Cuál de los siguientes síntomas experimenta actualmente en su cuero cabelludo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox'), + (564, 'How would you describe the symptoms of hair loss?', 'SCALP_CURRENT_CONDITIONS_SEVERITY_HAIR_LOSS', '¿Cómo describiría los síntomas de perdida de cabello?', '¿Cómo describiría los síntomas de perdida de cabello?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (565, 'How would you describe the symptoms of dandruff (scalp is usually oily, larger flakes)?', 'SCALP_CURRENT_CONDITIONS_SEVERITY_DANDRUFF', '¿Cómo describiría los síntomas de caspa (el cuero cabelludo suele ser graso y con escamas más grandes)?', '¿Cómo describiría los síntomas de caspa (el cuero cabelludo suele ser graso y con escamas más grandes)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (566, 'How would you describe the symptoms of dry scalp (scalp feels dry, very small, white flakes)?', 'SCALP_CURRENT_CONDITIONS_SEVERITY_DRY_SCALP', '¿Cómo describiría los síntomas de cuero cabelludo seco (el cuero cabelludo se siente seco, con escamas blancas muy pequeñas)?', '¿Cómo describiría los síntomas de cuero cabelludo seco (el cuero cabelludo se siente seco, con escamas blancas muy pequeñas)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (567, 'How would you describe the symptoms of itchy scalp?', 'SCALP_CURRENT_CONDITIONS_SEVERITY_ITCHY_SCALP', '¿Cómo describiría los síntomas de picazón en el cuero cabelludo?', '¿Cómo describiría los síntomas de picazón en el cuero cabelludo?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (568, 'Which of the following products do you currently use on your face regularly (3-5 times a week)? Select all that apply.', 'FACIAL_PRODUCTS_USED_REGULARLY', '¿Cuál de los siguientes productos utiliza actualmente en su rostro con regularidad (3-5 veces por semana)? Seleccione todas las que correspondan.', '¿Cuál de los siguientes productos utiliza actualmente en su rostro con regularidad (3-5 veces por semana)? Seleccione todas las que correspondan.', 'tmi-survey-checkbox'), + (569, 'Within the past 6 months, have you undergone any of the following professional treatments on the face performed by a doctor or aesthetician? Select all that apply.', 'FACIAL_PROCEDURES_LAST_SIX_MONTHS', 'En los últimos 6 meses, ¿se ha sometido a alguno de los siguientes tratamientos profesionales en el rostro realizados por un médico o esteticista? Seleccione todas las opciones que correspondan.', 'En los últimos 6 meses, ¿se ha sometido a alguno de los siguientes tratamientos profesionales en el rostro realizados por un médico o esteticista? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox'), + (570, 'Within the past 6 months, have you used any of the following at-home devices on your face? Select all that apply.', 'FACIAL_DEVICES_AT_HOME_LAST_SIX_MONTHS', 'En los últimos 6 meses, ¿ha utilizado alguno de los siguientes dispositivos domésticos en su cara? Seleccione todas las opciones que correspondan.', 'En los últimos 6 meses, ¿ha utilizado alguno de los siguientes dispositivos domésticos en su cara? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox'), + (571, 'Do you currently suffer or have recently (within the last 3 months) suffered from acne vulgaris (i.e. acne)?', 'SKIN_CONDITIONS_RECENT_ACNE', '¿Sufre actualmente o ha sufrido recientemente (en los últimos 3 meses) acné vulgaris (es decir, acné)?', '¿Sufre actualmente o ha sufrido recientemente (en los últimos 3 meses) acné vulgaris (es decir, acné)?', 'tmi-survey-radio-horizontal'), + (572, 'How was this condition diagnosed?', 'SKIN_CONDITIONS_RECENT_ACNE_DIAGNOSED_HOW', '¿Cómo se diagnosticó esta condición?', '¿Cómo se diagnosticó esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (573, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_ACNE_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (574, 'At what age did you start experiencing this condition?', 'SKIN_CONDITIONS_RECENT_ACNE_ONSET', '¿A qué edad empezó a experimentar esta condición?', '¿A qué edad empezó a experimentar esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (575, 'In the last 3 months, have you been prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_ACNE_PRESCRIPTIONS', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (576, 'Which antibiotic(s)?', 'SKIN_CONDITIONS_RECENT_ACNE_ANTIBIOTICS', '¿Qué antibiótico(s)?', '¿Qué antibiótico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (577, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_ACNE_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (578, 'Are you currently experiencing symptoms of the condition?', 'SKIN_CONDITIONS_RECENT_ACNE_CURRENT_SYMPTOMS', '¿Está experimentando actualmente síntomas de esta condición?', '¿Está experimentando actualmente síntomas de esta condición?', 'tmi-survey-radio-horizontal tmi-survey-triggered-question'), + (579, 'How would you describe the symptoms?', 'SKIN_CONDITIONS_RECENT_ACNE_SEVERITY', '¿Cómo describirías los síntomas?', '¿Cómo describirías los síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (580, 'When was the last time you experienced symptoms?', 'SKIN_CONDITIONS_RECENT_ACNE_LAST_EXPERIENCED', '¿Cuándo fue la última vez que experimentó síntomas?', '¿Cuándo fue la última vez que experimentó síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (581, 'Do you feel that any of the following factors worsens the skin condition?', 'SKIN_CONDITIONS_RECENT_ACNE_FACTORS', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (582, 'Which season(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_ACNE_FACTORS_SEASONS_WHICH', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (583, 'How much worse are symptoms during these seasons?', 'SKIN_CONDITIONS_RECENT_ACNE_FACTORS_SEASONS_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (584, 'It tends to worsen', 'SKIN_CONDITIONS_RECENT_ACNE_FACTORS_MENSTRUATION_TIMING', 'Tiende a empeorar', 'Tiende a empeorar', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (585, 'How much worse are symptoms during this part of the menstrual cycle?', 'SKIN_CONDITIONS_RECENT_ACNE_FACTORS_MENSTRUATION_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (586, 'Do you currently suffer or have recently (within the last 3 months) suffered from atopic dermatitis (also known as eczema)?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS', '¿Sufre actualmente o ha sufrido recientemente (en los últimos 3 meses) dermatitis atópica (también conocida como eccema)?', '¿Sufre actualmente o ha sufrido recientemente (en los últimos 3 meses) dermatitis atópica (también conocida como eccema)?', 'tmi-survey-radio-horizontal'), + (587, 'How was this condition diagnosed?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_DIAGNOSED_HOW', '¿Cómo se diagnosticó esta condición?', '¿Cómo se diagnosticó esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (588, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (589, 'At what age did you start experiencing this condition?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_ONSET', '¿A qué edad empezó a experimentar esta condición?', '¿A qué edad empezó a experimentar esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (590, 'In the last 3 months, have you been prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_PRESCRIPTIONS', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (591, 'Which antibiotic(s)?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_ANTIBIOTICS', '¿Qué antibiótico(s)?', '¿Qué antibiótico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (592, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (593, 'Are you currently experiencing symptoms of the condition?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_CURRENT_SYMPTOMS', '¿Está experimentando actualmente síntomas de esta condición?', '¿Está experimentando actualmente síntomas de esta condición?', 'tmi-survey-radio-horizontal tmi-survey-triggered-question'), + (594, 'How would you describe the symptoms?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_SEVERITY', '¿Cómo describirías los síntomas?', '¿Cómo describirías los síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (595, 'When was the last time you experienced symptoms?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_LAST_EXPERIENCED', '¿Cuándo fue la última vez que experimentó síntomas?', '¿Cuándo fue la última vez que experimentó síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (596, 'Do you feel that any of the following factors worsens the skin condition?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_FACTORS', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (597, 'Which season(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_FACTORS_SEASONS_WHICH', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (598, 'How much worse are symptoms during these seasons?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_FACTORS_SEASONS_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (599, 'It tends to worsen', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_FACTORS_MENSTRUATION_TIMING', 'Tiende a empeorar', 'Tiende a empeorar', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (600, 'How much worse are symptoms during this part of the menstrual cycle?', 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_FACTORS_MENSTRUATION_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (601, 'Do you currently suffer or have recently (within the last 3 months) suffered from psoriasis?', 'SKIN_CONDITIONS_RECENT_PSORIASIS', '¿Sufre actualmente o ha padecido recientemente (en los últimos 3 meses) psoriasis?', '¿Sufre actualmente o ha padecido recientemente (en los últimos 3 meses) psoriasis?', 'tmi-survey-radio-horizontal'), + (602, 'How was this condition diagnosed?', 'SKIN_CONDITIONS_RECENT_PSORIASIS_DIAGNOSED_HOW', '¿Cómo se diagnosticó esta condición?', '¿Cómo se diagnosticó esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (603, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_PSORIASIS_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (604, 'At what age did you start experiencing this condition?', 'SKIN_CONDITIONS_RECENT_PSORIASIS_ONSET', '¿A qué edad empezó a experimentar esta condición?', '¿A qué edad empezó a experimentar esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (605, 'In the last 3 months, have you been prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_PSORIASIS_PRESCRIPTIONS', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (606, 'Which antibiotic(s)?', 'SKIN_CONDITIONS_RECENT_PSORIASIS_ANTIBIOTICS', '¿Qué antibiótico(s)?', '¿Qué antibiótico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (607, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_PSORIASIS_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (608, 'Are you currently experiencing symptoms of the condition?', 'SKIN_CONDITIONS_RECENT_PSORIASIS_CURRENT_SYMPTOMS', '¿Está experimentando actualmente síntomas de esta condición?', '¿Está experimentando actualmente síntomas de esta condición?', 'tmi-survey-radio-horizontal tmi-survey-triggered-question'), + (609, 'How would you describe the symptoms?', 'SKIN_CONDITIONS_RECENT_PSORIASIS_SEVERITY', '¿Cómo describirías los síntomas?', '¿Cómo describirías los síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (610, 'When was the last time you experienced symptoms?', 'SKIN_CONDITIONS_RECENT_PSORIASIS_LAST_EXPERIENCED', '¿Cuándo fue la última vez que experimentó síntomas?', '¿Cuándo fue la última vez que experimentó síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (611, 'Do you feel that any of the following factors worsens the skin condition?', 'SKIN_CONDITIONS_RECENT_PSORIASIS_FACTORS', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (612, 'Which season(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_PSORIASIS_FACTORS_SEASONS_WHICH', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (613, 'How much worse are symptoms during these seasons?', 'SKIN_CONDITIONS_RECENT_PSORIASIS_FACTORS_SEASONS_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (614, 'It tends to worsen', 'SKIN_CONDITIONS_RECENT_PSORIASIS_FACTORS_MENSTRUATION_TIMING', 'Tiende a empeorar', 'Tiende a empeorar', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (615, 'How much worse are symptoms during this part of the menstrual cycle?', 'SKIN_CONDITIONS_RECENT_PSORIASIS_FACTORS_MENSTRUATION_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (616, 'Do you currently suffer or have recently (within the last 3 months) suffered from rosacea?', 'SKIN_CONDITIONS_RECENT_ROSACEA', '¿Sufre actualmente o ha sufrido recientemente (en los últimos 3 meses) rosácea?', '¿Sufre actualmente o ha sufrido recientemente (en los últimos 3 meses) rosácea?', 'tmi-survey-radio-horizontal'), + (617, 'How was this condition diagnosed?', 'SKIN_CONDITIONS_RECENT_ROSACEA_DIAGNOSED_HOW', '¿Cómo se diagnosticó esta condición?', '¿Cómo se diagnosticó esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (618, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_ROSACEA_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (619, 'At what age did you start experiencing this condition?', 'SKIN_CONDITIONS_RECENT_ROSACEA_ONSET', '¿A qué edad empezó a experimentar esta condición?', '¿A qué edad empezó a experimentar esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (620, 'In the last 3 months, have you been prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_ROSACEA_PRESCRIPTIONS', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (621, 'Which antibiotic(s)?', 'SKIN_CONDITIONS_RECENT_ROSACEA_ANTIBIOTICS', '¿Qué antibiótico(s)?', '¿Qué antibiótico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (622, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_ROSACEA_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (623, 'Are you currently experiencing symptoms of the condition?', 'SKIN_CONDITIONS_RECENT_ROSACEA_CURRENT_SYMPTOMS', '¿Está experimentando actualmente síntomas de esta condición?', '¿Está experimentando actualmente síntomas de esta condición?', 'tmi-survey-radio-horizontal tmi-survey-triggered-question'), + (624, 'How would you describe the symptoms?', 'SKIN_CONDITIONS_RECENT_ROSACEA_SEVERITY', '¿Cómo describirías los síntomas?', '¿Cómo describirías los síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (625, 'When was the last time you experienced symptoms?', 'SKIN_CONDITIONS_RECENT_ROSACEA_LAST_EXPERIENCED', '¿Cuándo fue la última vez que experimentó síntomas?', '¿Cuándo fue la última vez que experimentó síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (626, 'Do you feel that any of the following factors worsens the skin condition?', 'SKIN_CONDITIONS_RECENT_ROSACEA_FACTORS', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (627, 'Which season(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_ROSACEA_FACTORS_SEASONS_WHICH', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (628, 'How much worse are symptoms during these seasons?', 'SKIN_CONDITIONS_RECENT_ROSACEA_FACTORS_SEASONS_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (629, 'It tends to worsen', 'SKIN_CONDITIONS_RECENT_ROSACEA_FACTORS_MENSTRUATION_TIMING', 'Tiende a empeorar', 'Tiende a empeorar', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (630, 'How much worse are symptoms during this part of the menstrual cycle?', 'SKIN_CONDITIONS_RECENT_ROSACEA_FACTORS_MENSTRUATION_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (631, 'Do you currently suffer or have recently (within the last 3 months) suffered from seborrheic dermatitis?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS', '¿Sufre actualmente o ha sufrido recientemente (en los últimos 3 meses) rosácea?', '¿Sufre actualmente o ha sufrido recientemente (en los últimos 3 meses) rosácea?', 'tmi-survey-radio-horizontal'), + (632, 'How was this condition diagnosed?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_DIAGNOSED_HOW', '¿Cómo se diagnosticó esta condición?', '¿Cómo se diagnosticó esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (633, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (634, 'At what age did you start experiencing this condition?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_ONSET', '¿A qué edad empezó a experimentar esta condición?', '¿A qué edad empezó a experimentar esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (635, 'In the last 3 months, have you been prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_PRESCRIPTIONS', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (636, 'Which antifungal(s)?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_ANTIFUNGALS', '¿Qué antifúngico(s)?', '¿Qué antifúngico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (637, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (638, 'Are you currently experiencing symptoms of the condition?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_CURRENT_SYMPTOMS', '¿Está experimentando actualmente síntomas de esta condición?', '¿Está experimentando actualmente síntomas de esta condición?', 'tmi-survey-radio-horizontal tmi-survey-triggered-question'), + (639, 'How would you describe the symptoms?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_SEVERITY', '¿Cómo describirías los síntomas?', '¿Cómo describirías los síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (640, 'When was the last time you experienced symptoms?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_LAST_EXPERIENCED', '¿Cuándo fue la última vez que experimentó síntomas?', '¿Cuándo fue la última vez que experimentó síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (641, 'Do you feel that any of the following factors worsens the skin condition?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (642, 'Which season(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_SEASONS_WHICH', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (643, 'How much worse are symptoms during these seasons?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_SEASONS_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (644, 'It tends to worsen', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_MENSTRUATION_TIMING', 'Tiende a empeorar', 'Tiende a empeorar', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (645, 'How much worse are symptoms during this part of the menstrual cycle?', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_MENSTRUATION_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (646, 'Do you currently suffer or have recently (within the last 3 months) suffered from vitiligo?', 'SKIN_CONDITIONS_RECENT_VITILIGO', '¿Sufre usted actualmente o ha sufrido recientemente (en los últimos 3 meses) de vitíligo?', '¿Sufre usted actualmente o ha sufrido recientemente (en los últimos 3 meses) de vitíligo?', 'tmi-survey-radio-horizontal'), + (647, 'How was this condition diagnosed?', 'SKIN_CONDITIONS_RECENT_VITILIGO_DIAGNOSED_HOW', '¿Cómo se diagnosticó esta condición?', '¿Cómo se diagnosticó esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (648, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_VITILIGO_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (649, 'At what age did you start experiencing this condition?', 'SKIN_CONDITIONS_RECENT_VITILIGO_ONSET', '¿A qué edad empezó a experimentar esta condición?', '¿A qué edad empezó a experimentar esta condición?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (650, 'In the last 3 months, have you been prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_VITILIGO_PRESCRIPTIONS', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'En los últimos 3 meses, ¿le han recetado algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (651, 'Which antibiotic(s)?', 'SKIN_CONDITIONS_RECENT_VITILIGO_ANTIBIOTICS', '¿Qué antibiótico(s)?', '¿Qué antibiótico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (652, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_VITILIGO_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (653, 'Are you currently experiencing symptoms of the condition?', 'SKIN_CONDITIONS_RECENT_VITILIGO_CURRENT_SYMPTOMS', '¿Está experimentando actualmente síntomas de esta condición?', '¿Está experimentando actualmente síntomas de esta condición?', 'tmi-survey-radio-horizontal tmi-survey-triggered-question'), + (654, 'How would you describe the symptoms?', 'SKIN_CONDITIONS_RECENT_VITILIGO_SEVERITY', '¿Cómo describirías los síntomas?', '¿Cómo describirías los síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (655, 'When was the last time you experienced symptoms?', 'SKIN_CONDITIONS_RECENT_VITILIGO_LAST_EXPERIENCED', '¿Cuándo fue la última vez que experimentó síntomas?', '¿Cuándo fue la última vez que experimentó síntomas?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (656, 'Do you feel that any of the following factors worsens the skin condition?', 'SKIN_CONDITIONS_RECENT_VITILIGO_FACTORS', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', '¿Siente que alguno de los siguientes factores empeora la condición de la piel?', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (657, 'Which season(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_VITILIGO_FACTORS_SEASONS_WHICH', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', '¿Qué estación(es) del año? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (658, 'How much worse are symptoms during these seasons?', 'SKIN_CONDITIONS_RECENT_VITILIGO_FACTORS_SEASONS_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', '¿Qué tanto empeoran sus síntomas durante esta(s) estación(es)?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (659, 'It tends to worsen', 'SKIN_CONDITIONS_RECENT_VITILIGO_FACTORS_MENSTRUATION_TIMING', 'Tiende a empeorar', 'Tiende a empeorar', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (660, 'How much worse are symptoms during this part of the menstrual cycle?', 'SKIN_CONDITIONS_RECENT_VITILIGO_FACTORS_MENSTRUATION_SEVERITY', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', '¿Qué tanto empeoran sus síntomas durante esta etapa del ciclo menstrual?', 'tmi-survey-radio-vertical tmi-survey-triggered-question'), + (661, 'Have you had impetigo (as diagnosed by a medical practitioner) within the last 3 months?', 'SKIN_CONDITIONS_RECENT_IMPETIGO', '¿Ha tenido impétigo (diagnosticado por un médico) en los últimos 3 meses?', '¿Ha tenido impétigo (diagnosticado por un médico) en los últimos 3 meses?', 'tmi-survey-radio-horizontal'), + (662, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_IMPETIGO_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (663, 'Were you prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_IMPETIGO_PRESCRIPTIONS', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (664, 'Which antibiotic(s)?', 'SKIN_CONDITIONS_RECENT_IMPETIGO_ANTIBIOTICS', '¿Qué antibiótico(s)?', '¿Qué antibiótico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (665, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_IMPETIGO_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (666, 'Have you had cellulitis (as diagnosed by a medical practitioner) within the last 3 months?', 'SKIN_CONDITIONS_RECENT_CELLULITIS', '¿Ha tenido celulitis (diagnosticada por un médico) en los últimos 3 meses?', '¿Ha tenido celulitis (diagnosticada por un médico) en los últimos 3 meses?', 'tmi-survey-radio-horizontal'), + (667, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_CELLULITIS_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (668, 'Were you prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_CELLULITIS_PRESCRIPTIONS', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (669, 'Which antibiotic(s)?', 'SKIN_CONDITIONS_RECENT_CELLULITIS_ANTIBIOTICS', '¿Qué antibiótico(s)?', '¿Qué antibiótico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (670, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_CELLULITIS_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (671, 'Have you had a Staphylococcal (Staph) skin infection (as diagnosed by a medical practitioner) within the last 3 months?', 'SKIN_CONDITIONS_RECENT_STAPH', '¿Ha tenido una infección cutánea por estafilococos (diagnosticado por un médico) en los últimos 3 meses?', '¿Ha tenido una infección cutánea por estafilococos (diagnosticado por un médico) en los últimos 3 meses?', 'tmi-survey-radio-horizontal'), + (672, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_STAPH_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (673, 'Were you prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_STAPH_PRESCRIPTIONS', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (674, 'Which antibiotic(s)?', 'SKIN_CONDITIONS_RECENT_STAPH_ANTIBIOTICS', '¿Qué antibiótico(s)?', '¿Qué antibiótico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (675, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_STAPH_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (676, 'Have you had other types of bacterial skin infections (e.g. infected wound) within the last 3 months?', 'SKIN_CONDITIONS_RECENT_OTHER_BACTERIAL', '¿Ha tenido otros tipos de infecciones cutáneas bacterianas (por ejemplo, una herida infectada) en los últimos 3 meses?', '¿Ha tenido otros tipos de infecciones cutáneas bacterianas (por ejemplo, una herida infectada) en los últimos 3 meses?', 'tmi-survey-radio-horizontal'), + (677, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_OTHER_BACTERIAL_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (678, 'Were you prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_OTHER_BACTERIAL_PRESCRIPTIONS', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (679, 'Which antibiotic(s)?', 'SKIN_CONDITIONS_RECENT_OTHER_BACTERIAL_ANTIBIOTICS', '¿Qué antibiótico(s)?', '¿Qué antibiótico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (680, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_OTHER_BACTERIAL_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (681, 'Have you had a fungal skin infection (e.g., ringworm) (as diagnosed by a medical practitioner) within the last 3 months?', 'SKIN_CONDITIONS_RECENT_OTHER_FUNGAL', '¿Ha tenido una infección cutánea por hongos (p. ej., tiña) (diagnosticada por un médico) en los últimos 3 meses?', '¿Ha tenido una infección cutánea por hongos (p. ej., tiña) (diagnosticada por un médico) en los últimos 3 meses?', 'tmi-survey-radio-horizontal'), + (682, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_OTHER_FUNGAL_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (683, 'Were you prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_OTHER_FUNGAL_PRESCRIPTIONS', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (684, 'Which antifungal(s)?', 'SKIN_CONDITIONS_RECENT_OTHER_FUNGAL_ANTIBIOTICS', '¿Qué antifúngico(s)?', '¿Qué antifúngico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (685, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_OTHER_FUNGAL_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'), + (686, 'Have you had a viral skin infection (e.g., shingles, Molluscum contagiosum) (as diagnosed by a medical practitioner) within the last 3 months?', 'SKIN_CONDITIONS_RECENT_VIRAL', '¿Ha tenido una infección viral de la piel (por ejemplo, herpes, molusco contagioso) (diagnosticado por un médico) en los últimos 3 meses?', '¿Ha tenido una infección viral de la piel (por ejemplo, herpes, molusco contagioso) (diagnosticado por un médico) en los últimos 3 meses?', 'tmi-survey-radio-horizontal'), + (687, 'In which body location(s)? Select all that apply.', 'SKIN_CONDITIONS_RECENT_VIRAL_BODY_SITES', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', '¿En qué lugar(es) del cuerpo? Seleccione todas las que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (688, 'Were you prescribed any medications to treat this condition? Select all that apply.', 'SKIN_CONDITIONS_RECENT_VIRAL_PRESCRIPTIONS', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', '¿Le recetaron algún medicamento para tratar esta condición? Seleccione todas las opciones que correspondan.', 'tmi-survey-checkbox tmi-survey-triggered-question'), + (689, 'Which antiviral(s)', 'SKIN_CONDITIONS_RECENT_VIRAL_ANTIBIOTICS', '¿Qué antiviral(es)?', '¿Qué antiviral(es)', 'tmi-survey-text tmi-survey-triggered-question'), + (690, 'Which topical treatment(s)?', 'SKIN_CONDITIONS_RECENT_VIRAL_TOPICAL_TREATMENTS', '¿Qué tratamiento(s) tópico(s)?', '¿Qué tratamiento(s) tópico(s)?', 'tmi-survey-text tmi-survey-triggered-question'); + +INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES + (530, 'SINGLE'), + (531, 'SINGLE'), + (532, 'SINGLE'), + (533, 'SINGLE'), + (534, 'SINGLE'), + (535, 'SINGLE'), + (536, 'SINGLE'), + (537, 'SINGLE'), + (538, 'MULTIPLE'), + (539, 'SINGLE'), + (540, 'SINGLE'), + (541, 'SINGLE'), + (542, 'SINGLE'), + (543, 'SINGLE'), + (544, 'SINGLE'), + (545, 'SINGLE'), + (546, 'SINGLE'), + (547, 'SINGLE'), + (548, 'SINGLE'), + (549, 'SINGLE'), + (550, 'SINGLE'), + (551, 'SINGLE'), + (552, 'SINGLE'), + (553, 'SINGLE'), + (554, 'SINGLE'), + (555, 'SINGLE'), + (556, 'SINGLE'), + (557, 'SINGLE'), + (558, 'SINGLE'), + (559, 'SINGLE'), + (560, 'SINGLE'), + (561, 'SINGLE'), + (562, 'SINGLE'), + (563, 'MULTIPLE'), + (564, 'SINGLE'), + (565, 'SINGLE'), + (566, 'SINGLE'), + (567, 'SINGLE'), + (568, 'MULTIPLE'), + (569, 'MULTIPLE'), + (570, 'MULTIPLE'), + (571, 'SINGLE'), + (572, 'SINGLE'), + (573, 'MULTIPLE'), + (574, 'SINGLE'), + (575, 'MULTIPLE'), + (576, 'STRING'), + (577, 'STRING'), + (578, 'SINGLE'), + (579, 'SINGLE'), + (580, 'SINGLE'), + (581, 'MULTIPLE'), + (582, 'MULTIPLE'), + (583, 'SINGLE'), + (584, 'SINGLE'), + (585, 'SINGLE'), + (586, 'SINGLE'), + (587, 'SINGLE'), + (588, 'MULTIPLE'), + (589, 'SINGLE'), + (590, 'MULTIPLE'), + (591, 'STRING'), + (592, 'STRING'), + (593, 'SINGLE'), + (594, 'SINGLE'), + (595, 'SINGLE'), + (596, 'MULTIPLE'), + (597, 'MULTIPLE'), + (598, 'SINGLE'), + (599, 'SINGLE'), + (600, 'SINGLE'), + (601, 'SINGLE'), + (602, 'SINGLE'), + (603, 'MULTIPLE'), + (604, 'SINGLE'), + (605, 'MULTIPLE'), + (606, 'STRING'), + (607, 'STRING'), + (608, 'SINGLE'), + (609, 'SINGLE'), + (610, 'SINGLE'), + (611, 'MULTIPLE'), + (612, 'MULTIPLE'), + (613, 'SINGLE'), + (614, 'SINGLE'), + (615, 'SINGLE'), + (616, 'SINGLE'), + (617, 'SINGLE'), + (618, 'MULTIPLE'), + (619, 'SINGLE'), + (620, 'MULTIPLE'), + (621, 'STRING'), + (622, 'STRING'), + (623, 'SINGLE'), + (624, 'SINGLE'), + (625, 'SINGLE'), + (626, 'MULTIPLE'), + (627, 'MULTIPLE'), + (628, 'SINGLE'), + (629, 'SINGLE'), + (630, 'SINGLE'), + (631, 'SINGLE'), + (632, 'SINGLE'), + (633, 'MULTIPLE'), + (634, 'SINGLE'), + (635, 'MULTIPLE'), + (636, 'STRING'), + (637, 'STRING'), + (638, 'SINGLE'), + (639, 'SINGLE'), + (640, 'SINGLE'), + (641, 'MULTIPLE'), + (642, 'MULTIPLE'), + (643, 'SINGLE'), + (644, 'SINGLE'), + (645, 'SINGLE'), + (646, 'SINGLE'), + (647, 'SINGLE'), + (648, 'MULTIPLE'), + (649, 'SINGLE'), + (650, 'MULTIPLE'), + (651, 'STRING'), + (652, 'STRING'), + (653, 'SINGLE'), + (654, 'SINGLE'), + (655, 'SINGLE'), + (656, 'MULTIPLE'), + (657, 'MULTIPLE'), + (658, 'SINGLE'), + (659, 'SINGLE'), + (660, 'SINGLE'), + (661, 'SINGLE'), + (662, 'MULTIPLE'), + (663, 'MULTIPLE'), + (664, 'STRING'), + (665, 'STRING'), + (666, 'SINGLE'), + (667, 'MULTIPLE'), + (668, 'MULTIPLE'), + (669, 'STRING'), + (670, 'STRING'), + (671, 'SINGLE'), + (672, 'MULTIPLE'), + (673, 'MULTIPLE'), + (674, 'STRING'), + (675, 'STRING'), + (676, 'SINGLE'), + (677, 'MULTIPLE'), + (678, 'MULTIPLE'), + (679, 'STRING'), + (680, 'STRING'), + (681, 'SINGLE'), + (682, 'MULTIPLE'), + (683, 'MULTIPLE'), + (684, 'STRING'), + (685, 'STRING'), + (686, 'SINGLE'), + (687, 'MULTIPLE'), + (688, 'MULTIPLE'), + (689, 'STRING'), + (690, 'STRING'); + +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (530, 'Unspecified', 0), + (530, 'Very dry', 1), + (530, 'Dry', 2), + (530, 'Balanced (not oily or dry)', 3), + (530, 'Combination (oily or dry in different places)', 4), + (530, 'Oily', 5), + (530, 'Very oily', 6), + (530, 'Not sure', 7), + (531, 'Unspecified', 0), + (531, 'Very dry', 1), + (531, 'Dry', 2), + (531, 'Balanced (not oily or dry)', 3), + (531, 'Combination (oily or dry in different places)', 4), + (531, 'Oily', 5), + (531, 'Very oily', 6), + (531, 'I do not remember', 7), + (531, 'Not applicable', 8), + (532, 'Unspecified', 0), + (532, 'I - Reddish-white', 1), + (532, 'II - White-beige', 2), + (532, 'III - Beige', 3), + (532, 'IV - Light brown', 4), + (532, 'V - Brown', 5), + (532, 'VI - Black', 6), + (533, 'Unspecified', 0), + (533, 'More than 4 hours a day', 1), + (533, 'Between 2-4 hours a day', 2), + (533, 'Less than 2 hours a day', 3), + (533, 'Not sure', 4), + (534, 'Unspecified', 0), + (534, 'More than 4 hours a day', 1), + (534, 'Between 2-4 hours a day', 2), + (534, 'Less than 2 hours a day', 3), + (534, 'Not sure', 4), + (535, 'Unspecified', 0), + (535, 'Never', 1), + (535, 'Rarely (a few times/month)', 2), + (535, 'Occasionally (1-2 times/week)', 3), + (535, 'Regularly (3-5 times/week)', 4), + (535, 'Daily', 5), + (536, 'Unspecified', 0), + (536, 'Never', 1), + (536, 'Rarely (a few times/month)', 2), + (536, 'Occasionally (1-2 times/week)', 3), + (536, 'Regularly (3-5 times/week)', 4), + (536, 'Daily', 5), + (537, 'Unspecified', 0), + (537, 'Always burns without tanning', 1), + (537, 'Usually burns and tans poorly', 2), + (537, 'Moderately burns but tans afterwards', 3), + (537, 'Minimally burns and tans easily', 4), + (537, 'Very rarely burns and develops a dark tan easily', 5), + (537, 'Never sunburns and always develops a very dark tan', 6), + (538, 'Unspecified', 0), + (538, 'Acne scars (holes or indentation of the skin)', 1), + (538, 'Blackheads/clogged pores', 2), + (538, 'Dark spots', 3), + (538, 'Depigmentation (vitiligo or spots that are lighter than the rest of the skin)', 4), + (538, 'Dry skin/lack of moisture', 5), + (538, 'Dull skin/lack of radiance', 6), + (538, 'Fine lines', 7), + (538, 'Hyperpigmentation (brown, black, gray, red, or pink spots or patches; also known as age spots or sun spots)', 8), + (538, 'Large pores', 9), + (538, 'Moles (raised brown, tan, or black spots on the skin)', 10), + (538, 'Oily skin', 11), + (538, 'Pigmented acne marks on face', 12), + (538, 'Pimples/breakouts/blemishes', 13), + (538, 'Redness', 14), + (538, 'Rough or uneven skin texture', 15), + (538, 'Sagging or loss of firmness (loose skin)', 16), + (538, 'Sensitive skin', 17), + (538, 'Shiny skin', 18), + (538, 'Under eye bags (swelling or puffiness)', 19), + (538, 'Under eye dark circles (darkening of under eye skin)', 20), + (538, 'Uneven skin tone', 21), + (538, 'Unpredictable or temperamental skin', 22), + (538, 'Unwanted facial hair', 23), + (538, 'Wrinkles', 24), + (538, 'None of the above', 25), + (539, 'Unspecified', 0), + (539, 'Mild', 1), + (539, 'Moderate', 2), + (539, 'Severe', 3), + (540, 'Unspecified', 0), + (540, 'Mild', 1), + (540, 'Moderate', 2), + (540, 'Severe', 3), + (541, 'Unspecified', 0), + (541, 'Mild', 1), + (541, 'Moderate', 2), + (541, 'Severe', 3), + (542, 'Unspecified', 0), + (542, 'Mild', 1), + (542, 'Moderate', 2), + (542, 'Severe', 3), + (543, 'Unspecified', 0), + (543, 'Mild', 1), + (543, 'Moderate', 2), + (543, 'Severe', 3), + (544, 'Unspecified', 0), + (544, 'Mild', 1), + (544, 'Moderate', 2), + (544, 'Severe', 3), + (545, 'Unspecified', 0), + (545, 'Mild', 1), + (545, 'Moderate', 2), + (545, 'Severe', 3), + (546, 'Unspecified', 0), + (546, 'Mild', 1), + (546, 'Moderate', 2), + (546, 'Severe', 3), + (547, 'Unspecified', 0), + (547, 'Mild', 1), + (547, 'Moderate', 2), + (547, 'Severe', 3), + (548, 'Unspecified', 0), + (548, 'Mild', 1), + (548, 'Moderate', 2), + (548, 'Severe', 3), + (549, 'Unspecified', 0), + (549, 'Mild', 1), + (549, 'Moderate', 2), + (549, 'Severe', 3), + (550, 'Unspecified', 0), + (550, 'Mild', 1), + (550, 'Moderate', 2), + (550, 'Severe', 3), + (551, 'Unspecified', 0), + (551, 'Mild', 1), + (551, 'Moderate', 2), + (551, 'Severe', 3), + (552, 'Unspecified', 0), + (552, 'Mild', 1), + (552, 'Moderate', 2), + (552, 'Severe', 3), + (553, 'Unspecified', 0), + (553, 'Mild', 1), + (553, 'Moderate', 2), + (553, 'Severe', 3), + (554, 'Unspecified', 0), + (554, 'Mild', 1), + (554, 'Moderate', 2), + (554, 'Severe', 3), + (555, 'Unspecified', 0), + (555, 'Mild', 1), + (555, 'Moderate', 2), + (555, 'Severe', 3), + (556, 'Unspecified', 0), + (556, 'Mild', 1), + (556, 'Moderate', 2), + (556, 'Severe', 3), + (557, 'Unspecified', 0), + (557, 'Mild', 1), + (557, 'Moderate', 2), + (557, 'Severe', 3), + (558, 'Unspecified', 0), + (558, 'Mild', 1), + (558, 'Moderate', 2), + (558, 'Severe', 3), + (559, 'Unspecified', 0), + (559, 'Mild', 1), + (559, 'Moderate', 2), + (559, 'Severe', 3), + (560, 'Unspecified', 0), + (560, 'Mild', 1), + (560, 'Moderate', 2), + (560, 'Severe', 3), + (561, 'Unspecified', 0), + (561, 'Mild', 1), + (561, 'Moderate', 2), + (561, 'Severe', 3), + (562, 'Unspecified', 0), + (562, 'Mild', 1), + (562, 'Moderate', 2), + (562, 'Severe', 3), + (563, 'Unspecified', 0), + (563, 'Hair loss', 1), + (563, 'Dandruff (scalp is usually oily, larger flakes)', 2), + (563, 'Dry scalp (scalp feels dry, very small, white flakes)', 3), + (563, 'Itchy scalp', 4), + (563, 'None of the above', 5), + (564, 'Unspecified', 0), + (564, 'Mild', 1), + (564, 'Moderate', 2), + (564, 'Severe', 3), + (565, 'Unspecified', 0), + (565, 'Mild', 1), + (565, 'Moderate', 2), + (565, 'Severe', 3), + (566, 'Unspecified', 0), + (566, 'Mild', 1), + (566, 'Moderate', 2), + (566, 'Severe', 3), + (567, 'Unspecified', 0), + (567, 'Mild', 1), + (567, 'Moderate', 2), + (567, 'Severe', 3), + (568, 'Unspecified', 0), + (568, 'Anti-aging facial lotion, cream, or serum with UV protection', 1), + (568, 'Anti-aging facial lotion, cream, or serum without UV protection', 2), + (568, 'Anti-acne lotion', 3), + (568, 'Brightening facial lotion, cream, or serum with UV protection', 4), + (568, 'Brightening facial lotion, cream, or serum without UV protection', 5), + (568, 'Eye skincare products (e.g., eye cream, balm, etc.)', 6), + (568, 'Bar soap', 7), + (568, 'Facial wash/cleanser (e.g., foam, gel, etc.)', 8), + (568, 'Medicated facial cleanser (e.g., anti-acne cleanser containing salicylic acid or benzyl peroxide)', 9), + (568, 'Antibacterial cleanser', 10), + (568, 'Face-covering makeup (foundations, powders, concealers)', 11), + (568, 'Facial scrub', 12), + (568, 'Hair remover for face', 13), + (568, 'Makeup removers', 14), + (568, 'Moisturizer facial lotion, cream, or serum with UV protection', 15), + (568, 'Moisturizer facial lotion, cream, or serum without UV protection', 16), + (568, 'Razor or shaver for face', 17), + (568, 'Self-tan products', 18), + (568, 'Shaving foam or gel for face', 19), + (568, 'Shower gel or body wash', 20), + (568, 'Shampoo', 21), + (568, 'Soft peeling (chemical exfoliant containing AHA (e.g., glycolic acid, lactic acid, etc.))', 22), + (568, 'Sunscreen', 23), + (568, 'Toner/astringent', 24), + (568, 'None of the above', 25), + (569, 'Unspecified', 0), + (569, 'Radiofrequency/thermage', 1), + (569, 'Micro-needling', 2), + (569, 'Professional peel', 3), + (569, 'Dermabrasion', 4), + (569, 'Ablative laser (no removing of top skin layer)', 5), + (569, 'Non-ablative laser (removing of top skin layer)', 6), + (569, 'Filler', 7), + (569, 'Botox', 8), + (569, 'Face lift', 9), + (569, 'Others not listed', 10), + (569, 'None of the above', 11), + (570, 'Unspecified', 0), + (570, 'Laser', 1), + (570, 'Radiofrequency/thermage', 2), + (570, 'LED mask', 3), + (570, 'Red light wand', 4), + (570, 'Microneedling roller', 5), + (570, 'Others not listed', 6), + (570, 'None of the above', 7), + (571, 'Unspecified', 0), + (571, 'Yes', 1), + (571, 'No', 2), + (572, 'Unspecified', 0), + (572, 'Diagnosed by a medical professional (doctor, physician assistant)', 1), + (572, 'Diagnosed by an alternative medicine practitioner', 2), + (572, 'Self-diagnosed', 3), + (573, 'Unspecified', 0), + (573, 'Face', 1), + (573, 'Neck', 2), + (573, 'Scalp', 3), + (573, 'Back', 4), + (573, 'Chest', 5), + (573, 'Abdomen', 6), + (573, 'Legs', 7), + (573, 'Arms', 8), + (573, 'Feet', 9), + (573, 'Hands', 10), + (573, 'Knees', 11), + (573, 'Elbows', 12), + (573, 'Armpits', 13), + (573, 'Other', 14), + (574, 'Unspecified', 0), + (574, 'Infancy (0-2)', 1), + (574, 'Childhood (3-8)', 2), + (574, 'Adolescence (9-12)', 3), + (574, 'Teenage (13-19)', 4), + (574, '20-29', 5), + (574, '30-39', 6), + (574, '40-49', 7), + (574, '50-59', 8), + (574, '60-69', 9), + (574, '70+', 10), + (574, 'Not sure', 11), + (575, 'Unspecified', 0), + (575, 'Yes, oral antibiotics', 1), + (575, 'Yes, topical antibiotics', 2), + (575, 'Yes, non-antibiotic topical treatments', 3), + (575, 'No', 4), + (578, 'Unspecified', 0), + (578, 'Yes', 1), + (578, 'No', 2), + (579, 'Unspecified', 0), + (579, 'Mild', 1), + (579, 'Moderate', 2), + (579, 'Severe', 3), + (580, 'Unspecified', 0), + (580, 'Within the past month', 1), + (580, 'Within the past 3 months', 2), + (580, 'Within the past 6 months', 3), + (580, 'Within the past year', 4), + (580, 'More than a year ago', 5), + (581, 'Unspecified', 0), + (581, 'Season', 1), + (581, 'Diet', 2), + (581, 'Stress', 3), + (581, 'Menstruation', 4), + (581, 'Use of certain skin care products', 5), + (581, 'Other', 6), + (582, 'Unspecified', 0), + (582, 'Spring', 1), + (582, 'Summer', 2), + (582, 'Fall', 3), + (582, 'Winter', 4), + (583, 'Unspecified', 0), + (583, 'Mildly', 1), + (583, 'Moderately', 2), + (583, 'Severely', 3), + (584, 'Unspecified', 0), + (584, 'Before menstruation begins', 1), + (584, 'During menstruation', 2), + (584, 'After menstruation ends', 3), + (585, 'Unspecified', 0), + (585, 'Mildly', 1), + (585, 'Moderately', 2), + (585, 'Severely', 3), + (586, 'Unspecified', 0), + (586, 'Yes', 1), + (586, 'No', 2), + (587, 'Unspecified', 0), + (587, 'Diagnosed by a medical professional (doctor, physician assistant)', 1), + (587, 'Diagnosed by an alternative medicine practitioner', 2), + (587, 'Self-diagnosed', 3), + (588, 'Unspecified', 0), + (588, 'Face', 1), + (588, 'Neck', 2), + (588, 'Scalp', 3), + (588, 'Back', 4), + (588, 'Chest', 5), + (588, 'Abdomen', 6), + (588, 'Legs', 7), + (588, 'Arms', 8), + (588, 'Feet', 9), + (588, 'Hands', 10), + (588, 'Knees', 11), + (588, 'Elbows', 12), + (588, 'Armpits', 13), + (588, 'Other', 14), + (589, 'Unspecified', 0), + (589, 'Infancy (0-2)', 1), + (589, 'Childhood (3-8)', 2), + (589, 'Adolescence (9-12)', 3), + (589, 'Teenage (13-19)', 4), + (589, '20-29', 5), + (589, '30-39', 6), + (589, '40-49', 7), + (589, '50-59', 8), + (589, '60-69', 9), + (589, '70+', 10), + (589, 'Not sure', 11), + (590, 'Unspecified', 0), + (590, 'Yes, oral antibiotics', 1), + (590, 'Yes, topical antibiotics', 2), + (590, 'Yes, non-antibiotic topical treatments', 3), + (590, 'No', 4), + (593, 'Unspecified', 0), + (593, 'Yes', 1), + (593, 'No', 2), + (594, 'Unspecified', 0), + (594, 'Mild', 1), + (594, 'Moderate', 2), + (594, 'Severe', 3), + (595, 'Unspecified', 0), + (595, 'Within the past month', 1), + (595, 'Within the past 3 months', 2), + (595, 'Within the past 6 months', 3), + (595, 'Within the past year', 4), + (595, 'More than a year ago', 5), + (596, 'Unspecified', 0), + (596, 'Season', 1), + (596, 'Diet', 2), + (596, 'Stress', 3), + (596, 'Menstruation', 4), + (596, 'Use of certain skin care products', 5), + (596, 'Other', 6), + (597, 'Unspecified', 0), + (597, 'Spring', 1), + (597, 'Summer', 2), + (597, 'Fall', 3), + (597, 'Winter', 4), + (598, 'Unspecified', 0), + (598, 'Mildly', 1), + (598, 'Moderately', 2), + (598, 'Severely', 3), + (599, 'Unspecified', 0), + (599, 'Before menstruation begins', 1), + (599, 'During menstruation', 2), + (599, 'After menstruation ends', 3), + (600, 'Unspecified', 0), + (600, 'Mildly', 1), + (600, 'Moderately', 2), + (600, 'Severely', 3), + (601, 'Unspecified', 0), + (601, 'Yes', 1), + (601, 'No', 2), + (602, 'Unspecified', 0), + (602, 'Diagnosed by a medical professional (doctor, physician assistant)', 1), + (602, 'Diagnosed by an alternative medicine practitioner', 2), + (602, 'Self-diagnosed', 3), + (603, 'Unspecified', 0), + (603, 'Face', 1), + (603, 'Neck', 2), + (603, 'Scalp', 3), + (603, 'Back', 4), + (603, 'Chest', 5), + (603, 'Abdomen', 6), + (603, 'Legs', 7), + (603, 'Arms', 8), + (603, 'Feet', 9), + (603, 'Hands', 10), + (603, 'Knees', 11), + (603, 'Elbows', 12), + (603, 'Armpits', 13), + (603, 'Other', 14), + (604, 'Unspecified', 0), + (604, 'Infancy (0-2)', 1), + (604, 'Childhood (3-8)', 2), + (604, 'Adolescence (9-12)', 3), + (604, 'Teenage (13-19)', 4), + (604, '20-29', 5), + (604, '30-39', 6), + (604, '40-49', 7), + (604, '50-59', 8), + (604, '60-69', 9), + (604, '70+', 10), + (604, 'Not sure', 11), + (605, 'Unspecified', 0), + (605, 'Yes, oral antibiotics', 1), + (605, 'Yes, topical antibiotics', 2), + (605, 'Yes, non-antibiotic topical treatments', 3), + (605, 'No', 4), + (608, 'Unspecified', 0), + (608, 'Yes', 1), + (608, 'No', 2), + (609, 'Unspecified', 0), + (609, 'Mild', 1), + (609, 'Moderate', 2), + (609, 'Severe', 3), + (610, 'Unspecified', 0), + (610, 'Within the past month', 1), + (610, 'Within the past 3 months', 2), + (610, 'Within the past 6 months', 3), + (610, 'Within the past year', 4), + (610, 'More than a year ago', 5), + (611, 'Unspecified', 0), + (611, 'Season', 1), + (611, 'Diet', 2), + (611, 'Stress', 3), + (611, 'Menstruation', 4), + (611, 'Use of certain skin care products', 5), + (611, 'Other', 6), + (612, 'Unspecified', 0), + (612, 'Spring', 1), + (612, 'Summer', 2), + (612, 'Fall', 3), + (612, 'Winter', 4), + (613, 'Unspecified', 0), + (613, 'Mildly', 1), + (613, 'Moderately', 2), + (613, 'Severely', 3), + (614, 'Unspecified', 0), + (614, 'Before menstruation begins', 1), + (614, 'During menstruation', 2), + (614, 'After menstruation ends', 3), + (615, 'Unspecified', 0), + (615, 'Mildly', 1), + (615, 'Moderately', 2), + (615, 'Severely', 3), + (616, 'Unspecified', 0), + (616, 'Yes', 1), + (616, 'No', 2), + (617, 'Unspecified', 0), + (617, 'Diagnosed by a medical professional (doctor, physician assistant)', 1), + (617, 'Diagnosed by an alternative medicine practitioner', 2), + (617, 'Self-diagnosed', 3), + (618, 'Unspecified', 0), + (618, 'Face', 1), + (618, 'Neck', 2), + (618, 'Scalp', 3), + (618, 'Back', 4), + (618, 'Chest', 5), + (618, 'Abdomen', 6), + (618, 'Legs', 7), + (618, 'Arms', 8), + (618, 'Feet', 9), + (618, 'Hands', 10), + (618, 'Knees', 11), + (618, 'Elbows', 12), + (618, 'Armpits', 13), + (618, 'Other', 14), + (619, 'Unspecified', 0), + (619, 'Infancy (0-2)', 1), + (619, 'Childhood (3-8)', 2), + (619, 'Adolescence (9-12)', 3), + (619, 'Teenage (13-19)', 4), + (619, '20-29', 5), + (619, '30-39', 6), + (619, '40-49', 7), + (619, '50-59', 8), + (619, '60-69', 9), + (619, '70+', 10), + (619, 'Not sure', 11), + (620, 'Unspecified', 0), + (620, 'Yes, oral antibiotics', 1), + (620, 'Yes, topical antibiotics', 2), + (620, 'Yes, non-antibiotic topical treatments', 3), + (620, 'No', 4), + (623, 'Unspecified', 0), + (623, 'Yes', 1), + (623, 'No', 2), + (624, 'Unspecified', 0), + (624, 'Mild', 1), + (624, 'Moderate', 2), + (624, 'Severe', 3), + (625, 'Unspecified', 0), + (625, 'Within the past month', 1), + (625, 'Within the past 3 months', 2), + (625, 'Within the past 6 months', 3), + (625, 'Within the past year', 4), + (625, 'More than a year ago', 5), + (626, 'Unspecified', 0), + (626, 'Season', 1), + (626, 'Diet', 2), + (626, 'Stress', 3), + (626, 'Menstruation', 4), + (626, 'Use of certain skin care products', 5), + (626, 'Other', 6), + (627, 'Unspecified', 0), + (627, 'Spring', 1), + (627, 'Summer', 2), + (627, 'Fall', 3), + (627, 'Winter', 4), + (628, 'Unspecified', 0), + (628, 'Mildly', 1), + (628, 'Moderately', 2), + (628, 'Severely', 3), + (629, 'Unspecified', 0), + (629, 'Before menstruation begins', 1), + (629, 'During menstruation', 2), + (629, 'After menstruation ends', 3), + (630, 'Unspecified', 0), + (630, 'Mildly', 1), + (630, 'Moderately', 2), + (630, 'Severely', 3), + (631, 'Unspecified', 0), + (631, 'Yes', 1), + (631, 'No', 2), + (632, 'Unspecified', 0), + (632, 'Diagnosed by a medical professional (doctor, physician assistant)', 1), + (632, 'Diagnosed by an alternative medicine practitioner', 2), + (632, 'Self-diagnosed', 3), + (633, 'Unspecified', 0), + (633, 'Face', 1), + (633, 'Neck', 2), + (633, 'Scalp', 3), + (633, 'Back', 4), + (633, 'Chest', 5), + (633, 'Abdomen', 6), + (633, 'Legs', 7), + (633, 'Arms', 8), + (633, 'Feet', 9), + (633, 'Hands', 10), + (633, 'Knees', 11), + (633, 'Elbows', 12), + (633, 'Armpits', 13), + (633, 'Other', 14), + (634, 'Unspecified', 0), + (634, 'Infancy (0-2)', 1), + (634, 'Childhood (3-8)', 2), + (634, 'Adolescence (9-12)', 3), + (634, 'Teenage (13-19)', 4), + (634, '20-29', 5), + (634, '30-39', 6), + (634, '40-49', 7), + (634, '50-59', 8), + (634, '60-69', 9), + (634, '70+', 10), + (634, 'Not sure', 11), + (635, 'Unspecified', 0), + (635, 'Yes, oral antifungals', 1), + (635, 'Yes, topical antifungals', 2), + (635, 'Yes, non-antifungal topical treatments', 3), + (635, 'No', 4), + (638, 'Unspecified', 0), + (638, 'Yes', 1), + (638, 'No', 2), + (639, 'Unspecified', 0), + (639, 'Mild', 1), + (639, 'Moderate', 2), + (639, 'Severe', 3), + (640, 'Unspecified', 0), + (640, 'Within the past month', 1), + (640, 'Within the past 3 months', 2), + (640, 'Within the past 6 months', 3), + (640, 'Within the past year', 4), + (640, 'More than a year ago', 5), + (641, 'Unspecified', 0), + (641, 'Season', 1), + (641, 'Diet', 2), + (641, 'Stress', 3), + (641, 'Menstruation', 4), + (641, 'Use of certain skin care products', 5), + (641, 'Other', 6), + (642, 'Unspecified', 0), + (642, 'Spring', 1), + (642, 'Summer', 2), + (642, 'Fall', 3), + (642, 'Winter', 4), + (643, 'Unspecified', 0), + (643, 'Mildly', 1), + (643, 'Moderately', 2), + (643, 'Severely', 3), + (644, 'Unspecified', 0), + (644, 'Before menstruation begins', 1), + (644, 'During menstruation', 2), + (644, 'After menstruation ends', 3), + (645, 'Unspecified', 0), + (645, 'Mildly', 1), + (645, 'Moderately', 2), + (645, 'Severely', 3), + (646, 'Unspecified', 0), + (646, 'Yes', 1), + (646, 'No', 2), + (647, 'Unspecified', 0), + (647, 'Diagnosed by a medical professional (doctor, physician assistant)', 1), + (647, 'Diagnosed by an alternative medicine practitioner', 2), + (647, 'Self-diagnosed', 3), + (648, 'Unspecified', 0), + (648, 'Face', 1), + (648, 'Neck', 2), + (648, 'Scalp', 3), + (648, 'Back', 4), + (648, 'Chest', 5), + (648, 'Abdomen', 6), + (648, 'Legs', 7), + (648, 'Arms', 8), + (648, 'Feet', 9), + (648, 'Hands', 10), + (648, 'Knees', 11), + (648, 'Elbows', 12), + (648, 'Armpits', 13), + (648, 'Other', 14), + (649, 'Unspecified', 0), + (649, 'Infancy (0-2)', 1), + (649, 'Childhood (3-8)', 2), + (649, 'Adolescence (9-12)', 3), + (649, 'Teenage (13-19)', 4), + (649, '20-29', 5), + (649, '30-39', 6), + (649, '40-49', 7), + (649, '50-59', 8), + (649, '60-69', 9), + (649, '70+', 10), + (649, 'Not sure', 11), + (650, 'Unspecified', 0), + (650, 'Yes, oral antibiotics', 1), + (650, 'Yes, topical antibiotics', 2), + (650, 'Yes, non-antibiotic topical treatments', 3), + (650, 'No', 4), + (653, 'Unspecified', 0), + (653, 'Yes', 1), + (653, 'No', 2), + (654, 'Unspecified', 0), + (654, 'Mild', 1), + (654, 'Moderate', 2), + (654, 'Severe', 3), + (655, 'Unspecified', 0), + (655, 'Within the past month', 1), + (655, 'Within the past 3 months', 2), + (655, 'Within the past 6 months', 3), + (655, 'Within the past year', 4), + (655, 'More than a year ago', 5), + (656, 'Unspecified', 0), + (656, 'Season', 1), + (656, 'Diet', 2), + (656, 'Stress', 3), + (656, 'Menstruation', 4), + (656, 'Use of certain skin care products', 5), + (656, 'Other', 6), + (657, 'Unspecified', 0), + (657, 'Spring', 1), + (657, 'Summer', 2), + (657, 'Fall', 3), + (657, 'Winter', 4), + (658, 'Unspecified', 0), + (658, 'Mildly', 1), + (658, 'Moderately', 2), + (658, 'Severely', 3), + (659, 'Unspecified', 0), + (659, 'Before menstruation begins', 1), + (659, 'During menstruation', 2), + (659, 'After menstruation ends', 3), + (660, 'Unspecified', 0), + (660, 'Mildly', 1), + (660, 'Moderately', 2), + (660, 'Severely', 3), + (661, 'Unspecified', 0), + (661, 'Yes', 1), + (661, 'No', 2), + (662, 'Unspecified', 0), + (662, 'Face', 1), + (662, 'Neck', 2), + (662, 'Scalp', 3), + (662, 'Back', 4), + (662, 'Chest', 5), + (662, 'Abdomen', 6), + (662, 'Legs', 7), + (662, 'Arms', 8), + (662, 'Feet', 9), + (662, 'Hands', 10), + (662, 'Knees', 11), + (662, 'Elbows', 12), + (662, 'Armpits', 13), + (662, 'Other', 14), + (663, 'Unspecified', 0), + (663, 'Yes, oral antibiotics', 1), + (663, 'Yes, topical antibiotics', 2), + (663, 'Yes, non-antibiotic topical treatments', 3), + (663, 'No', 4), + (666, 'Unspecified', 0), + (666, 'Yes', 1), + (666, 'No', 2), + (667, 'Unspecified', 0), + (667, 'Face', 1), + (667, 'Neck', 2), + (667, 'Scalp', 3), + (667, 'Back', 4), + (667, 'Chest', 5), + (667, 'Abdomen', 6), + (667, 'Legs', 7), + (667, 'Arms', 8), + (667, 'Feet', 9), + (667, 'Hands', 10), + (667, 'Knees', 11), + (667, 'Elbows', 12), + (667, 'Armpits', 13), + (667, 'Other', 14), + (668, 'Unspecified', 0), + (668, 'Yes, oral antibiotics', 1), + (668, 'Yes, topical antibiotics', 2), + (668, 'Yes, non-antibiotic topical treatments', 3), + (668, 'No', 4), + (671, 'Unspecified', 0), + (671, 'Yes', 1), + (671, 'No', 2), + (672, 'Unspecified', 0), + (672, 'Face', 1), + (672, 'Neck', 2), + (672, 'Scalp', 3), + (672, 'Back', 4), + (672, 'Chest', 5), + (672, 'Abdomen', 6), + (672, 'Legs', 7), + (672, 'Arms', 8), + (672, 'Feet', 9), + (672, 'Hands', 10), + (672, 'Knees', 11), + (672, 'Elbows', 12), + (672, 'Armpits', 13), + (672, 'Other', 14), + (673, 'Unspecified', 0), + (673, 'Yes, oral antibiotics', 1), + (673, 'Yes, topical antibiotics', 2), + (673, 'Yes, non-antibiotic topical treatments', 3), + (673, 'No', 4), + (676, 'Unspecified', 0), + (676, 'Yes', 1), + (676, 'No', 2), + (677, 'Unspecified', 0), + (677, 'Face', 1), + (677, 'Neck', 2), + (677, 'Scalp', 3), + (677, 'Back', 4), + (677, 'Chest', 5), + (677, 'Abdomen', 6), + (677, 'Legs', 7), + (677, 'Arms', 8), + (677, 'Feet', 9), + (677, 'Hands', 10), + (677, 'Knees', 11), + (677, 'Elbows', 12), + (677, 'Armpits', 13), + (677, 'Other', 14), + (678, 'Unspecified', 0), + (678, 'Yes, oral antibiotics', 1), + (678, 'Yes, topical antibiotics', 2), + (678, 'Yes, non-antibiotic topical treatments', 3), + (678, 'No', 4), + (681, 'Unspecified', 0), + (681, 'Yes', 1), + (681, 'No', 2), + (682, 'Unspecified', 0), + (682, 'Face', 1), + (682, 'Neck', 2), + (682, 'Scalp', 3), + (682, 'Back', 4), + (682, 'Chest', 5), + (682, 'Abdomen', 6), + (682, 'Legs', 7), + (682, 'Arms', 8), + (682, 'Feet', 9), + (682, 'Hands', 10), + (682, 'Knees', 11), + (682, 'Elbows', 12), + (682, 'Armpits', 13), + (682, 'Other', 14), + (683, 'Unspecified', 0), + (683, 'Yes, oral antifungals', 1), + (683, 'Yes, topical antifungals', 2), + (683, 'Yes, non-antifungal topical treatments', 3), + (683, 'No', 4), + (686, 'Unspecified', 0), + (686, 'Yes', 1), + (686, 'No', 2), + (687, 'Unspecified', 0), + (687, 'Face', 1), + (687, 'Neck', 2), + (687, 'Scalp', 3), + (687, 'Back', 4), + (687, 'Chest', 5), + (687, 'Abdomen', 6), + (687, 'Legs', 7), + (687, 'Arms', 8), + (687, 'Feet', 9), + (687, 'Hands', 10), + (687, 'Knees', 11), + (687, 'Elbows', 12), + (687, 'Armpits', 13), + (687, 'Other', 14), + (688, 'Unspecified', 0), + (688, 'Yes, oral antivirals', 1), + (688, 'Yes, topical antivirals', 2), + (688, 'Yes, non-antiviral topical treatments', 3), + (688, 'No', 4); + +INSERT INTO ag.group_questions (survey_group, survey_question_id, display_index) VALUES + (-23, 530, 0), + (-23, 531, 1), + (-23, 532, 2), + (-23, 533, 3), + (-23, 534, 4), + (-23, 535, 5), + (-23, 536, 6), + (-23, 537, 7), + (-23, 538, 8), + (-23, 539, 9), + (-23, 540, 10), + (-23, 541, 11), + (-23, 542, 12), + (-23, 543, 13), + (-23, 544, 14), + (-23, 545, 15), + (-23, 546, 16), + (-23, 547, 17), + (-23, 548, 18), + (-23, 549, 19), + (-23, 550, 20), + (-23, 551, 21), + (-23, 552, 22), + (-23, 553, 23), + (-23, 554, 24), + (-23, 555, 25), + (-23, 556, 26), + (-23, 557, 27), + (-23, 558, 28), + (-23, 559, 29), + (-23, 560, 30), + (-23, 561, 31), + (-23, 562, 32), + (-23, 563, 33), + (-23, 564, 34), + (-23, 565, 35), + (-23, 566, 36), + (-23, 567, 37), + (-23, 568, 38), + (-23, 569, 39), + (-23, 570, 40), + (-24, 571, 0), + (-24, 572, 1), + (-24, 573, 2), + (-24, 48, 3), + (-24, 574, 4), + (-24, 575, 5), + (-24, 576, 6), + (-24, 577, 7), + (-24, 578, 8), + (-24, 579, 9), + (-24, 580, 10), + (-24, 581, 11), + (-24, 582, 12), + (-24, 583, 13), + (-24, 584, 14), + (-24, 585, 15), + (-24, 586, 16), + (-24, 587, 17), + (-24, 588, 18), + (-24, 589, 19), + (-24, 590, 20), + (-24, 591, 21), + (-24, 592, 22), + (-24, 593, 23), + (-24, 594, 24), + (-24, 595, 25), + (-24, 596, 26), + (-24, 597, 27), + (-24, 598, 28), + (-24, 599, 29), + (-24, 600, 30), + (-24, 601, 31), + (-24, 602, 32), + (-24, 603, 33), + (-24, 604, 34), + (-24, 605, 35), + (-24, 606, 36), + (-24, 607, 37), + (-24, 608, 38), + (-24, 609, 39), + (-24, 610, 40), + (-24, 611, 41), + (-24, 612, 42), + (-24, 613, 43), + (-24, 614, 44), + (-24, 615, 45), + (-24, 616, 46), + (-24, 617, 47), + (-24, 618, 48), + (-24, 619, 49), + (-24, 620, 50), + (-24, 621, 51), + (-24, 622, 52), + (-24, 623, 53), + (-24, 624, 54), + (-24, 625, 55), + (-24, 626, 56), + (-24, 627, 57), + (-24, 628, 58), + (-24, 629, 59), + (-24, 630, 60), + (-24, 631, 61), + (-24, 632, 62), + (-24, 633, 63), + (-24, 634, 64), + (-24, 635, 65), + (-24, 636, 66), + (-24, 637, 67), + (-24, 638, 68), + (-24, 639, 69), + (-24, 640, 70), + (-24, 641, 71), + (-24, 642, 72), + (-24, 643, 73), + (-24, 644, 74), + (-24, 645, 75), + (-24, 646, 76), + (-24, 647, 77), + (-24, 648, 78), + (-24, 649, 79), + (-24, 650, 80), + (-24, 651, 81), + (-24, 652, 82), + (-24, 653, 83), + (-24, 654, 84), + (-24, 655, 85), + (-24, 656, 86), + (-24, 657, 87), + (-24, 658, 88), + (-24, 659, 89), + (-24, 660, 90), + (-24, 661, 91), + (-24, 662, 92), + (-24, 663, 93), + (-24, 664, 94), + (-24, 665, 95), + (-24, 666, 96), + (-24, 667, 97), + (-24, 668, 98), + (-24, 669, 99), + (-24, 670, 100), + (-24, 671, 101), + (-24, 672, 102), + (-24, 673, 103), + (-24, 674, 104), + (-24, 675, 105), + (-24, 676, 106), + (-24, 677, 107), + (-24, 678, 108), + (-24, 679, 109), + (-24, 680, 110), + (-24, 681, 111), + (-24, 682, 112), + (-24, 683, 113), + (-24, 684, 114), + (-24, 685, 115), + (-24, 686, 116), + (-24, 687, 117), + (-24, 688, 118), + (-24, 689, 119), + (-24, 690, 120); + +INSERT INTO ag.survey_question_triggers (survey_question_id, triggering_response, triggered_question) VALUES + (538, 'Acne scars (holes or indentation of the skin)', 539), + (538, 'Blackheads/clogged pores', 540), + (538, 'Dark spots', 541), + (538, 'Depigmentation (vitiligo or spots that are lighter than the rest of the skin)', 542), + (538, 'Dry skin/lack of moisture', 543), + (538, 'Dull skin/lack of radiance', 544), + (538, 'Fine lines', 545), + (538, 'Hyperpigmentation (brown, black, gray, red, or pink spots or patches; also known as age spots or sun spots)', 546), + (538, 'Large pores', 547), + (538, 'Moles (raised brown, tan, or black spots on the skin)', 548), + (538, 'Oily skin', 549), + (538, 'Pigmented acne marks on face', 550), + (538, 'Pimples/breakouts/blemishes', 551), + (538, 'Redness', 552), + (538, 'Rough or uneven skin texture', 553), + (538, 'Sagging or loss of firmness (loose skin)', 554), + (538, 'Sensitive skin', 555), + (538, 'Shiny skin', 556), + (538, 'Under eye bags (swelling or puffiness)', 557), + (538, 'Under eye dark circles (darkening of under eye skin)', 558), + (538, 'Uneven skin tone', 559), + (538, 'Unpredictable or temperamental skin', 560), + (538, 'Unwanted facial hair', 561), + (538, 'Wrinkles', 562), + (563, 'Hair loss', 564), + (563, 'Dandruff (scalp is usually oily, larger flakes)', 565), + (563, 'Dry scalp (scalp feels dry, very small, white flakes)', 566), + (563, 'Itchy scalp', 567), + (571, 'Yes', 572), + (571, 'Yes', 573), + (573, 'Face', 48), + (571, 'Yes', 574), + (571, 'Yes', 575), + (575, 'Yes, oral antibiotics', 576), + (575, 'Yes, topical antibiotics', 576), + (575, 'Yes, non-antibiotic topical treatments', 577), + (571, 'Yes', 578), + (578, 'Yes', 579), + (578, 'No', 580), + (571, 'Yes', 581), + (581, 'Season', 582), + (581, 'Season', 583), + (581, 'Menstruation', 584), + (581, 'Menstruation', 585), + (586, 'Yes', 587), + (586, 'Yes', 588), + (586, 'Yes', 589), + (586, 'Yes', 590), + (590, 'Yes, oral antibiotics', 591), + (590, 'Yes, topical antibiotics', 591), + (590, 'Yes, non-antibiotic topical treatments', 592), + (586, 'Yes', 593), + (593, 'Yes', 594), + (593, 'No', 595), + (586, 'Yes', 596), + (596, 'Season', 597), + (596, 'Season', 598), + (596, 'Menstruation', 599), + (596, 'Menstruation', 600), + (601, 'Yes', 602), + (601, 'Yes', 603), + (601, 'Yes', 604), + (601, 'Yes', 605), + (605, 'Yes, oral antibiotics', 606), + (605, 'Yes, topical antibiotics', 606), + (605, 'Yes, non-antibiotic topical treatments', 607), + (601, 'Yes', 608), + (608, 'Yes', 609), + (608, 'No', 610), + (601, 'Yes', 611), + (611, 'Season', 612), + (611, 'Season', 613), + (611, 'Menstruation', 614), + (611, 'Menstruation', 615), + (616, 'Yes', 617), + (616, 'Yes', 618), + (616, 'Yes', 619), + (616, 'Yes', 620), + (620, 'Yes, oral antibiotics', 621), + (620, 'Yes, topical antibiotics', 621), + (620, 'Yes, non-antibiotic topical treatments', 622), + (616, 'Yes', 623), + (623, 'Yes', 624), + (623, 'No', 625), + (616, 'Yes', 626), + (626, 'Season', 627), + (626, 'Season', 628), + (626, 'Menstruation', 629), + (626, 'Menstruation', 630), + (631, 'Yes', 632), + (631, 'Yes', 633), + (631, 'Yes', 634), + (631, 'Yes', 635), + (635, 'Yes, oral antifungals', 636), + (635, 'Yes, topical antifungals', 636), + (635, 'Yes, non-antifungal topical treatments', 637), + (631, 'Yes', 638), + (638, 'Yes', 639), + (638, 'No', 640), + (631, 'Yes', 641), + (641, 'Season', 642), + (641, 'Season', 643), + (641, 'Menstruation', 644), + (641, 'Menstruation', 645), + (646, 'Yes', 647), + (646, 'Yes', 648), + (646, 'Yes', 649), + (646, 'Yes', 650), + (650, 'Yes, oral antibiotics', 651), + (650, 'Yes, topical antibiotics', 651), + (650, 'Yes, non-antibiotic topical treatments', 652), + (646, 'Yes', 653), + (653, 'Yes', 654), + (653, 'No', 655), + (646, 'Yes', 656), + (656, 'Season', 657), + (656, 'Season', 658), + (656, 'Menstruation', 659), + (656, 'Menstruation', 660), + (661, 'Yes', 662), + (661, 'Yes', 663), + (663, 'Yes, oral antibiotics', 664), + (663, 'Yes, topical antibiotics', 664), + (663, 'Yes, non-antibiotic topical treatments', 665), + (666, 'Yes', 667), + (666, 'Yes', 668), + (668, 'Yes, oral antibiotics', 669), + (668, 'Yes, topical antibiotics', 669), + (668, 'Yes, non-antibiotic topical treatments', 670), + (671, 'Yes', 672), + (671, 'Yes', 673), + (673, 'Yes, oral antibiotics', 674), + (673, 'Yes, topical antibiotics', 674), + (673, 'Yes, non-antibiotic topical treatments', 675), + (676, 'Yes', 677), + (676, 'Yes', 678), + (678, 'Yes, oral antibiotics', 679), + (678, 'Yes, topical antibiotics', 679), + (678, 'Yes, non-antibiotic topical treatments', 680), + (681, 'Yes', 682), + (681, 'Yes', 683), + (683, 'Yes, oral antifungals', 684), + (683, 'Yes, topical antifungals', 684), + (683, 'Yes, non-antifungal topical treatments', 685), + (686, 'Yes', 687), + (686, 'Yes', 688), + (688, 'Yes, oral antivirals', 689), + (688, 'Yes, topical antivirals', 689), + (688, 'Yes, non-antiviral topical treatments', 690); diff --git a/microsetta_private_api/repo/survey_template_repo.py b/microsetta_private_api/repo/survey_template_repo.py index fc1f2a511..f7cb8abdf 100644 --- a/microsetta_private_api/repo/survey_template_repo.py +++ b/microsetta_private_api/repo/survey_template_repo.py @@ -36,6 +36,8 @@ class SurveyTemplateRepo(BaseRepo): SURFERS_ID = 20 COVID19_ID = 21 OTHER_ID = 22 + SKIN_ID = 23 + SKIN_HEALTH_DIAGNOSIS_ID = 24 SURVEY_INFO = { # For now, let's keep legacy survey info as well. @@ -182,6 +184,18 @@ class SurveyTemplateRepo(BaseRepo): "Other", "1.0", "local" + ), + SKIN_ID: SurveyTemplateLinkInfo( + SKIN_ID, + "Skin", + "1.0", + "local" + ), + SKIN_HEALTH_DIAGNOSIS_ID: SurveyTemplateLinkInfo( + SKIN_HEALTH_DIAGNOSIS_ID, + "Skin Health Diagnosis", + "1.0", + "local" ) } From d7df3a3fcfce6cd636a04b1d78e954c35cb8e560 Mon Sep 17 00:00:00 2001 From: Cassidy Symons Date: Thu, 9 Jan 2025 14:35:29 -0800 Subject: [PATCH 2/5] Block skin surveys from Qiita --- microsetta_private_api/db/patches/0143.sql | 12 + .../repo/metadata_repo/_repo.py | 210 +++++++++++++++--- 2 files changed, 197 insertions(+), 25 deletions(-) diff --git a/microsetta_private_api/db/patches/0143.sql b/microsetta_private_api/db/patches/0143.sql index de84da62e..f56a5e5a6 100644 --- a/microsetta_private_api/db/patches/0143.sql +++ b/microsetta_private_api/db/patches/0143.sql @@ -1,3 +1,7 @@ +-- Survey question 521 is missing the "Unspecified" option, need to fix that +INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (521, 'Unspecified', 0); + -- Add question about understanding of 'microbiome' to Basic Information survey INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (522, 'Which of the following best describes your level of exposure and understanding of the word ''microbiome'' prior to enrolling in this research study?', '¿Cuál de las siguientes opciones describe mejor su nivel de exposición y comprensión de la palabra ''microbioma'' antes de inscribirse en este estudio de investigación?', '¿Cuál de las siguientes opciones describe mejor su nivel de exposición y comprensión de la palabra ''microbioma'' antes de inscribirse en este estudio de investigación?', 'FAMILIARITY_WITH_MICROBIOME', FALSE, 'tmi-survey-radio-vertical'); INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (522, 'SINGLE'); @@ -8,6 +12,7 @@ INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I was INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I was already familiar with it, and I am actively trying to take care of my skin microbiome', 'Ya la conocía, y estoy intentando activamente cuidar el microbioma de mi piel', 'Ya la conocía, y estoy intentando activamente cuidar el microbioma de mi piel'); INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I was already familiar with it, and I am actively trying to take care of all my various microbiomes', 'Ya la conocía, y estoy tratando activamente de cuidar todos mis microbiomas', 'Ya la conocía, y estoy tratando activamente de cuidar todos mis microbiomas'); INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (522, 'Unspecified', 0), (522, 'I was not familiar with it', 1), (522, 'I had heard of it, but I didn''t really know what it meant', 2), (522, 'I was already familiar with it', 3), @@ -50,6 +55,7 @@ INSERT INTO ag.survey_question_response_type (survey_question_id, survey_respons INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Less than 1 year', 'Menos de 1 año', 'Menos de 1 año'); INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('More than 1 year', 'Más de 1 año', 'Más de 1 año'); INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (523, 'Unspecified', 0), (523, 'Less than 1 year', 1), (523, 'More than 1 year', 2); INSERT INTO ag.group_questions (survey_group, survey_question_id, display_index) VALUES (-12, 523, 26); @@ -58,6 +64,7 @@ INSERT INTO ag.survey_question_triggers (survey_question_id, triggering_response INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (524, 'At any point in your life (even if you don''t currently smoke), did you smoke more than 5 packs of cigarettes per year?', 'En algún momento de su vida (incluso si actualmente no fuma), ¿fumó más de 5 paquetes de cigarrillos al año?', 'En algún momento de su vida (incluso si actualmente no fuma), ¿fumó más de 5 paquetes de cigarrillos al año?', 'SMOKING_FIVE_PACKS_YEAR_EVER', FALSE, 'tmi-survey-radio-horizontal'); INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (524, 'SINGLE'); INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (524, 'Unspecified', 0), (524, 'Yes', 1), (524, 'No', 2), (524, 'Not sure', 3); @@ -68,6 +75,7 @@ INSERT INTO ag.survey_question_response_type (survey_question_id, survey_respons INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('5 or fewer', '5 o menos', '5 o menos'); INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('More than 20', 'Más de 20', 'Más de 20'); INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (525, 'Unspecified', 0), (525, '5 or fewer', 1), (525, '6 to 10', 2), (525, '11 to 20', 3), @@ -79,6 +87,7 @@ INSERT INTO ag.survey_question_triggers (survey_question_id, triggering_response INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spanish, question_shortname, retired, css_classes) VALUES (526, 'On an average day, how many cigarettes do you (or did you) smoke?', 'En un día normal, ¿cuántos cigarrillos fuma (o fumaba)?', 'En un día normal, ¿cuántos cigarrillos fuma (o fumaba)?', 'SMOKING_AVERAGE_PER_DAY', FALSE, 'tmi-survey-radio-vertical tmi-survey-triggered-question'); INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (526, 'SINGLE'); INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (526, 'Unspecified', 0), (526, '5 or fewer', 1), (526, '6 to 10', 2), (526, '11 to 20', 3), @@ -153,6 +162,7 @@ INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Puber INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Reproductive maturity', 'Madurez reproductiva', 'Madurez reproductiva'); INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Menopause (at least 12 months have passed since the last menstrual period)', 'Menopausia (han pasado al menos 12 meses desde el último período menstrual)', 'Menopausia (han pasado al menos 12 meses desde el último período menstrual)'); INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (527, 'Unspecified', 0), (527, 'Puberty', 1), (527, 'Reproductive maturity', 2), (527, 'Menopause (at least 12 months have passed since the last menstrual period)', 3), @@ -164,6 +174,7 @@ INSERT INTO ag.survey_question (survey_question_id, american, spanish, spain_spa INSERT INTO ag.survey_question_response_type (survey_question_id, survey_response_type) VALUES (528, 'SINGLE'); INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I don''t know because I don''t currently have periods (e.g. due to hormonal contraceptives)', 'No lo sé porque actualmente no tengo períodos (por ejemplo, debido a los anticonceptivos hormonales)', 'No lo sé porque actualmente no tengo períodos (por ejemplo, debido a los anticonceptivos hormonales)'); INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (528, 'Unspecified', 0), (528, 'Yes', 1), (528, 'No', 2), (528, 'Not sure', 3), @@ -180,6 +191,7 @@ INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Once INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('Three or more times a week', 'Tres o más veces por semana', 'Tres o más veces por semana'); INSERT INTO ag.survey_response (american, spanish, spain_spanish) VALUES ('I have never taken medicine to help me sleep', 'Nunca he tomado medicamentos para ayudarme a dormir', 'Nunca he tomado medicamentos para ayudarme a dormir'); INSERT INTO ag.survey_question_response (survey_question_id, response, display_index) VALUES + (529, 'Unspecified', 0), (529, 'Not during the past month', 1), (529, 'Less than once a week', 2), (529, 'Once or twice a week', 3), diff --git a/microsetta_private_api/repo/metadata_repo/_repo.py b/microsetta_private_api/repo/metadata_repo/_repo.py index 03df06810..d712bb305 100644 --- a/microsetta_private_api/repo/metadata_repo/_repo.py +++ b/microsetta_private_api/repo/metadata_repo/_repo.py @@ -30,31 +30,191 @@ SurveyTemplateRepo.SPAIN_FFQ_ID, None} -# TODO 2022-10-03 -# Adding questions from Cooking Oils & Oxalate-rich Foods survey -# to ignore list as they don't exist in Qiita (OILS_*). We're blocked on -# pushing them, pending an update to Qiita's API. -EBI_REMOVE = ['ABOUT_YOURSELF_TEXT', 'ANTIBIOTIC_CONDITION', - 'ANTIBIOTIC_MED', 'PM_NAME', 'PM_EMAIL', - 'BIRTH_MONTH', 'CAT_CONTACT', 'CAT_LOCATION', - 'CONDITIONS_MEDICATION', 'DIET_RESTRICTIONS_LIST', - 'DOG_CONTACT', 'HUMANS_FREE_TEXT', 'NAME', - 'DOG_LOCATION', 'GENDER', 'MEDICATION_LIST', - 'OTHER_CONDITIONS_LIST', 'PREGNANT_DUE_DATE', - 'RACE_OTHER', - 'RELATIONSHIPS_WITH_OTHERS_IN_STUDY', - 'SPECIAL_RESTRICTIONS', - 'SUPPLEMENTS', 'TRAVEL_LOCATIONS_LIST', 'ZIP_CODE', - 'WILLING_TO_BE_CONTACTED', 'pets_other_freetext', - 'ANIMAL_FREE_TEXT', 'ANIMAL_TYPE_FREE_TEXT', - 'COVID_OCCUPATION', 'COVID_SUSPECTED_POSITIVE_DATE', - 'COVID_SYMPTOMS_OTHER', 'FERMENTED_CONSUMED_OTHER', - 'FERMENTED_OTHER', 'FERMENTED_PRODUCE_COMMERCIAL_OTHER', - 'FERMENTED_PRODUCE_PERSONAL_OTHER', - 'OTHER_ANIMALS_FREE_TEXT', 'OILS_FREQUENCY_VEGETABLE', - 'OILS_FREQUENCY_ANIMAL', 'OILS_FREQUENCY_OTHER', - 'OILS_FREQUENCY_MARGARINE', 'OILS_FREQUENCY_OXALATE' - 'OILS_FREQUENCY_SOY'] +# NOTE 2025-01-09: We're contractually bound to withhold all of the skin +# survey questions from Qiita for a set period of time. This list will need to +# be updated when that limitation is lifted. +EBI_REMOVE = [ + 'ABOUT_YOURSELF_TEXT', 'ANTIBIOTIC_CONDITION', + 'ANTIBIOTIC_MED', 'PM_NAME', 'PM_EMAIL', + 'BIRTH_MONTH', 'CAT_CONTACT', 'CAT_LOCATION', + 'CONDITIONS_MEDICATION', 'DIET_RESTRICTIONS_LIST', + 'DOG_CONTACT', 'HUMANS_FREE_TEXT', 'NAME', + 'DOG_LOCATION', 'GENDER', 'MEDICATION_LIST', + 'OTHER_CONDITIONS_LIST', 'PREGNANT_DUE_DATE', + 'RACE_OTHER', + 'RELATIONSHIPS_WITH_OTHERS_IN_STUDY', + 'SPECIAL_RESTRICTIONS', + 'SUPPLEMENTS', 'TRAVEL_LOCATIONS_LIST', 'ZIP_CODE', + 'WILLING_TO_BE_CONTACTED', 'pets_other_freetext', + 'ANIMAL_FREE_TEXT', 'ANIMAL_TYPE_FREE_TEXT', + 'COVID_OCCUPATION', 'COVID_SUSPECTED_POSITIVE_DATE', + 'COVID_SYMPTOMS_OTHER', 'FERMENTED_CONSUMED_OTHER', + 'FERMENTED_OTHER', 'FERMENTED_PRODUCE_COMMERCIAL_OTHER', + 'FERMENTED_PRODUCE_PERSONAL_OTHER', + 'OTHER_ANIMALS_FREE_TEXT', + 'SKIN_CONDITIONS_RECENT_ACNE_DIAGNOSED_HOW', + 'SKIN_CONDITIONS_RECENT_ROSACEA_ANTIBIOTICS', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_PIGMENTED_ACNE', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_PIMPLES_BREAKOUTS_BLEMISHES', + 'ACNE_MEDICATION_OTC', + 'FACIAL_SKIN_TYPE', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_REDNESS', + 'FACIAL_SKIN_TYPE_MENOPAUSE_20S', + 'SKIN_COLOR', + 'HOURS_PER_DAY_OUTDOORS_UNDER_18', + 'HOURS_PER_DAY_OUTDOORS_10AM_2PM', + 'SUNSCREEN_UNDER_SPF_50', + 'SUNSCREEN_OVER_SPF_50', + 'SKIN_REACTION_WITHOUT_SUNSCREEN', + 'FACIAL_SKIN_CURRENT_CONDITIONS', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_ACNE', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_BLACKHEADS', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_DARK_SPOTS', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_DEPIGMENTATION', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_DRY_SKIN', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_DULL_SKIN', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_FINE_LINES', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_HYPER_PIGMENTATION', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_LARGE_PORES', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_MOLES', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_OILY_SKIN', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_ROUGH_SKIN', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_SAGGING', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_SENSITIVE_SKIN', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_SHINY_SKIN', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_UNDER_EYE_BAGS', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_UNDER_EYE_CIRCLES', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_UNEVEN_SKIN_TONE', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_UNPREDICTABLE_SKIN', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_UNWANTED_FACIAL_HAIR', + 'FACIAL_SKIN_CURRENT_CONDITIONS_SEVERITY_WRINKLES', + 'SCALP_CURRENT_CONDITIONS', + 'SCALP_CURRENT_CONDITIONS_SEVERITY_HAIR_LOSS', + 'SCALP_CURRENT_CONDITIONS_SEVERITY_DANDRUFF', + 'SCALP_CURRENT_CONDITIONS_SEVERITY_DRY_SCALP', + 'SCALP_CURRENT_CONDITIONS_SEVERITY_ITCHY_SCALP', + 'FACIAL_PRODUCTS_USED_REGULARLY', + 'FACIAL_PROCEDURES_LAST_SIX_MONTHS', + 'FACIAL_DEVICES_AT_HOME_LAST_SIX_MONTHS', + 'SKIN_CONDITIONS_RECENT_ACNE', + 'SKIN_CONDITIONS_RECENT_ACNE_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_ACNE_ONSET', + 'SKIN_CONDITIONS_RECENT_ACNE_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_ACNE_ANTIBIOTICS', + 'SKIN_CONDITIONS_RECENT_ACNE_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_ACNE_CURRENT_SYMPTOMS', + 'SKIN_CONDITIONS_RECENT_ACNE_SEVERITY', + 'SKIN_CONDITIONS_RECENT_ACNE_LAST_EXPERIENCED', + 'SKIN_CONDITIONS_RECENT_ACNE_FACTORS', + 'SKIN_CONDITIONS_RECENT_ACNE_FACTORS_SEASONS_WHICH', + 'SKIN_CONDITIONS_RECENT_ACNE_FACTORS_SEASONS_SEVERITY', + 'SKIN_CONDITIONS_RECENT_ACNE_FACTORS_MENSTRUATION_TIMING', + 'SKIN_CONDITIONS_RECENT_ACNE_FACTORS_MENSTRUATION_SEVERITY', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_DIAGNOSED_HOW', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_ONSET', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_ANTIBIOTICS', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_CURRENT_SYMPTOMS', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_SEVERITY', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_LAST_EXPERIENCED', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_FACTORS', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_FACTORS_SEASONS_WHICH', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_FACTORS_SEASONS_SEVERITY', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_FACTORS_MENSTRUATION_TIMING', + 'SKIN_CONDITIONS_RECENT_ATOPIC_DERMATITIS_FACTORS_MENSTRUATION_SEVERITY', + 'SKIN_CONDITIONS_RECENT_PSORIASIS', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_DIAGNOSED_HOW', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_ONSET', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_ANTIBIOTICS', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_CURRENT_SYMPTOMS', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_SEVERITY', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_LAST_EXPERIENCED', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_FACTORS', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_FACTORS_SEASONS_WHICH', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_FACTORS_SEASONS_SEVERITY', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_FACTORS_MENSTRUATION_TIMING', + 'SKIN_CONDITIONS_RECENT_PSORIASIS_FACTORS_MENSTRUATION_SEVERITY', + 'SKIN_CONDITIONS_RECENT_ROSACEA', + 'SKIN_CONDITIONS_RECENT_ROSACEA_DIAGNOSED_HOW', + 'SKIN_CONDITIONS_RECENT_ROSACEA_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_ROSACEA_ONSET', + 'SKIN_CONDITIONS_RECENT_ROSACEA_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_ROSACEA_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_ROSACEA_CURRENT_SYMPTOMS', + 'SKIN_CONDITIONS_RECENT_ROSACEA_SEVERITY', + 'SKIN_CONDITIONS_RECENT_ROSACEA_LAST_EXPERIENCED', + 'SKIN_CONDITIONS_RECENT_ROSACEA_FACTORS', + 'SKIN_CONDITIONS_RECENT_ROSACEA_FACTORS_SEASONS_WHICH', + 'SKIN_CONDITIONS_RECENT_ROSACEA_FACTORS_SEASONS_SEVERITY', + 'SKIN_CONDITIONS_RECENT_ROSACEA_FACTORS_MENSTRUATION_TIMING', + 'SKIN_CONDITIONS_RECENT_ROSACEA_FACTORS_MENSTRUATION_SEVERITY', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_DIAGNOSED_HOW', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_ONSET', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_ANTIFUNGALS', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_CURRENT_SYMPTOMS', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_SEVERITY', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_LAST_EXPERIENCED', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_SEASONS_WHICH', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_SEASONS_SEVERITY', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_MENSTRUATION_TIMING', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_MENSTRUATION_SEVERITY', + 'SKIN_CONDITIONS_RECENT_VITILIGO', + 'SKIN_CONDITIONS_RECENT_VITILIGO_DIAGNOSED_HOW', + 'SKIN_CONDITIONS_RECENT_VITILIGO_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_VITILIGO_ONSET', + 'SKIN_CONDITIONS_RECENT_VITILIGO_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_VITILIGO_ANTIBIOTICS', + 'SKIN_CONDITIONS_RECENT_VITILIGO_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_VITILIGO_CURRENT_SYMPTOMS', + 'SKIN_CONDITIONS_RECENT_VITILIGO_SEVERITY', + 'SKIN_CONDITIONS_RECENT_VITILIGO_LAST_EXPERIENCED', + 'SKIN_CONDITIONS_RECENT_VITILIGO_FACTORS', + 'SKIN_CONDITIONS_RECENT_VITILIGO_FACTORS_SEASONS_WHICH', + 'SKIN_CONDITIONS_RECENT_VITILIGO_FACTORS_SEASONS_SEVERITY', + 'SKIN_CONDITIONS_RECENT_VITILIGO_FACTORS_MENSTRUATION_TIMING', + 'SKIN_CONDITIONS_RECENT_VITILIGO_FACTORS_MENSTRUATION_SEVERITY', + 'SKIN_CONDITIONS_RECENT_IMPETIGO', + 'SKIN_CONDITIONS_RECENT_IMPETIGO_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_IMPETIGO_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_IMPETIGO_ANTIBIOTICS', + 'SKIN_CONDITIONS_RECENT_IMPETIGO_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_CELLULITIS', + 'SKIN_CONDITIONS_RECENT_CELLULITIS_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_CELLULITIS_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_CELLULITIS_ANTIBIOTICS', + 'SKIN_CONDITIONS_RECENT_CELLULITIS_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_STAPH', + 'SKIN_CONDITIONS_RECENT_STAPH_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_STAPH_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_STAPH_ANTIBIOTICS', + 'SKIN_CONDITIONS_RECENT_STAPH_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_OTHER_BACTERIAL', + 'SKIN_CONDITIONS_RECENT_OTHER_BACTERIAL_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_OTHER_BACTERIAL_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_OTHER_BACTERIAL_ANTIBIOTICS', + 'SKIN_CONDITIONS_RECENT_OTHER_BACTERIAL_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_OTHER_FUNGAL', + 'SKIN_CONDITIONS_RECENT_OTHER_FUNGAL_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_OTHER_FUNGAL_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_OTHER_FUNGAL_ANTIBIOTICS', + 'SKIN_CONDITIONS_RECENT_OTHER_FUNGAL_TOPICAL_TREATMENTS', + 'SKIN_CONDITIONS_RECENT_VIRAL', + 'SKIN_CONDITIONS_RECENT_VIRAL_BODY_SITES', + 'SKIN_CONDITIONS_RECENT_VIRAL_PRESCRIPTIONS', + 'SKIN_CONDITIONS_RECENT_VIRAL_ANTIBIOTICS', + 'SKIN_CONDITIONS_RECENT_VIRAL_TOPICAL_TREATMENTS' +] def drop_private_columns(df): From fa3f56f73724b7d66cd898408891a0f4c7abb88e Mon Sep 17 00:00:00 2001 From: Cassidy Symons Date: Thu, 9 Jan 2025 21:21:55 -0800 Subject: [PATCH 3/5] Mv 0143.sql 0144.sql --- microsetta_private_api/db/patches/{0143.sql => 0144.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename microsetta_private_api/db/patches/{0143.sql => 0144.sql} (100%) diff --git a/microsetta_private_api/db/patches/0143.sql b/microsetta_private_api/db/patches/0144.sql similarity index 100% rename from microsetta_private_api/db/patches/0143.sql rename to microsetta_private_api/db/patches/0144.sql From 16d80e6f14c40b028365f848bdc966152be2abe4 Mon Sep 17 00:00:00 2001 From: Cassidy Symons Date: Thu, 9 Jan 2025 21:45:46 -0800 Subject: [PATCH 4/5] Lint and unit tests --- microsetta_private_api/repo/metadata_repo/_repo.py | 6 ++++-- .../repo/tests/test_survey_template_repo.py | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/microsetta_private_api/repo/metadata_repo/_repo.py b/microsetta_private_api/repo/metadata_repo/_repo.py index d712bb305..9cacae882 100644 --- a/microsetta_private_api/repo/metadata_repo/_repo.py +++ b/microsetta_private_api/repo/metadata_repo/_repo.py @@ -167,8 +167,10 @@ 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_SEASONS_WHICH', 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_SEASONS_SEVERITY', - 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_MENSTRUATION_TIMING', - 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_MENSTRUATION_SEVERITY', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_MENSTRUATION_' + 'TIMING', + 'SKIN_CONDITIONS_RECENT_SEBORRHEIC_DERMATITIS_FACTORS_MENSTRUATION_' + 'SEVERITY', 'SKIN_CONDITIONS_RECENT_VITILIGO', 'SKIN_CONDITIONS_RECENT_VITILIGO_DIAGNOSED_HOW', 'SKIN_CONDITIONS_RECENT_VITILIGO_BODY_SITES', diff --git a/microsetta_private_api/repo/tests/test_survey_template_repo.py b/microsetta_private_api/repo/tests/test_survey_template_repo.py index 1ed86cfc1..412264e03 100644 --- a/microsetta_private_api/repo/tests/test_survey_template_repo.py +++ b/microsetta_private_api/repo/tests/test_survey_template_repo.py @@ -1033,7 +1033,8 @@ def test_check_prompt_survey_update(self): '148': '', '492': '', '493': '', - '502': '' + '502': '', + '522': '' } filled_survey_10a = {'22': 'I am right handed', @@ -1048,7 +1049,8 @@ def test_check_prompt_survey_update(self): '148': '', '492': '', '493': '', - '502': ''} + '502': '', + '522': ''} filled_survey_19a = {} From 4963badfcddc8a0292d6aa89373b787e6b260647 Mon Sep 17 00:00:00 2001 From: Cassidy Symons Date: Wed, 12 Feb 2025 11:57:18 -0800 Subject: [PATCH 5/5] Mv 0144.sql 0145.sql --- microsetta_private_api/db/patches/{0144.sql => 0145.sql} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename microsetta_private_api/db/patches/{0144.sql => 0145.sql} (100%) diff --git a/microsetta_private_api/db/patches/0144.sql b/microsetta_private_api/db/patches/0145.sql similarity index 100% rename from microsetta_private_api/db/patches/0144.sql rename to microsetta_private_api/db/patches/0145.sql