Skip to content

Instantly share code, notes, and snippets.

@rgsk
Last active November 20, 2021 12:54
Show Gist options
  • Save rgsk/f5c03d506b4f63e0c30c9095cbe23b6f to your computer and use it in GitHub Desktop.
Save rgsk/f5c03d506b4f63e0c30c9095cbe23b6f to your computer and use it in GitHub Desktop.
{
"start_demography12345678910": {
"id": "start_demography",
"question": "Hey ${name}, Tell us your current weight? (in kg)",
"previous": "start_assessment",
"next": "1",
"type": "num",
"key": "current_weight",
"ui": {
"label": "Current Weight",
"iconURL": "some urls",
"buttonDesc": "NEXT"
},
"required": true
},
"1": {
"id": "1",
"question": "Okay, for some required calculation, please tell us about your height. (i.e. 5 feet 6 inches)",
"previous": "start_demography",
"next": "2",
"type": "num",
"key": "height",
"ui": {
"placeholder": "How tall you are...",
"iconURL": "some urls",
"buttonDesc": "NEXT"
},
"required": true
},
"2": {
"id": "2",
"question": "What's the ideal weight you want to reach (in kg)",
"previous": "1",
"next": "statement1",
"type": "num",
"key": "goal_weight",
"ui": {
"label": "Goal Weight",
"iconURL": "https://firebasestorage.googleapis.com/v0/b/dark-sensor-263608.appspot.com/o/weight_assessment%2Fgoal_weight_icon.png?alt=media&token=b53f8931-acbe-44c3-945b-aad2a4ffdb35",
"inputDesciption": "Recommened weight: w/h2",
"buttonDesc": "NEXT"
},
"required": true
},
"statement1": {
"id": "statement1",
"message": "That's great! Your ideal weight is a goal for both of us. If you commit to your goal, we'll commit too.",
"ui": {
"imageURL": "some urls",
"buttonDesc": "KEEP MOVING"
},
"previous": "2",
"next": "3",
"type": "statement"
},
"3": {
"id": "3",
"question": "When do you celebrate your 'Happy Birthday'? We promise , we'll wish you.",
"previous": "2",
"next": "4",
"type": "datetime",
"key": "dob",
"ui": {
"imageURL": "some urls",
"buttonDesc": "NEXT"
},
"required": true
},
"4": {
"id": "4",
"pre-description": "Although we're for gender equality, we do believe that men and women are different at a biological level. Biological sex and hormones impact how our bodies metabolize food.",
"question": "Which sex best describes you?",
"options": ["Male", "Female", "Other"],
"previous": "3",
"ui": {
"pictureChoice": true,
"other": false,
"imageUrls": ["url1", "url2", "url3"]
},
"required": true,
"next": "statement2",
"type": "option"
},
"statement2": {
"id": "statement2",
"message": "Yoboshu creates long-term results through habit and behavior change, not restrictive dieting which takes the joy of your life.",
"ui": {
"imageURL": "some urls",
"buttonDesc": "SOUNDS GREAT!"
},
"previous": "4",
"next": "5",
"type": "statement"
},
"5": {
"id": "5",
"question": "Are you at risk of any of the following?",
"post-description": "Choose as many as you like",
"options": [
"Diabetes",
"PCOD/PCOS",
"Stress",
"Depression",
"Sleep issues",
"High blood pressure"
],
"previous": "statement2",
"next": "statement3",
"type": "options",
"ui": {
"other": true,
"none": true,
"buttonDesc": "NEXT"
},
"required": true,
"key": "medical_conditions"
},
"statement3": {
"id": "statement3",
"message": "We're so glad you shared with us!",
"description": "Weight loss is an important goal, but Yoboshu believes in helping people get healthier by helping with all other lifestyle health issues.",
"ui": {
"imageURL": "some urls",
"buttonDesc": "SOUNDS GOOD!"
},
"previous": "5",
"next": "6",
"type": "statement"
},
"6": {
"id": "6",
"question": "So tell us, which one best descibes you?",
"pre-description": "${name}, if your age is ${age} years and you want to reach an ideal weight ${idealWeight}, you may need a slightly different strategy depending on your current lifestyle.",
"options": [
"I have adopted some healthy habits",
"I mostly eat well and stay fit",
"My diet and activity requires a lot of work"
],
"previous": "statement3",
"next": "statement4",
"type": "option",
"ui": {
"other": false
},
"required": true,
"key": "habits&activity"
},
"statement4": {
"id": "statement4",
"message": "We're so glad you shared with us!",
"description": "Weight loss is an important goal, but Yoboshu believes in helping people get healthier by helping with all other lifestyle health issues.",
"ui": {
"imageURL": "some urls",
"buttonDesc": "SOUNDS GREAT!"
},
"previous": "5",
"next": "7",
"type": "statement"
},
"7": {
"id": "7",
"question": "Which best describes the area you live in?",
"pre-description": "Your environment has a significant role to play in weight management.",
"options": ["Urban", "Semi-urban", "Rural"],
"previous": "statement4",
"next": "8",
"type": "option",
"ui": {
"other": false
},
"required": true,
"key": "geo-area"
},
"8": {
"id": "8",
"question": "How long has it been since you were at your ideal weight?",
"previous": "7",
"next": "9",
"type": "string",
"ui": {
"placeholder": "6 months or 3 years",
"buttonDesc": "NEXT"
},
"required": true,
"key": "how_long_ideal_weight"
},
"9": {
"id": "9",
"question": "Which of the below describes your current status?",
"pre-description": "We don't question your relationship status, it's just we want to understand your responsibility",
"options": ["Married", "In relationship", "Married with kids", "Single"],
"previous": "8",
"next": "10",
"type": "option",
"ui": {
"other": false
},
"required": false,
"key": "relationship_status"
},
"10": {
"id": "10",
"question": "Do you identify any life events that led to weight gain in the last few years?",
"post-description": "Choose as many as you like",
"options": [
"Injury",
"Marriage & Relationship",
"Busier work and family life",
"Hormonal Disorder",
"Medication"
],
"previous": "9",
"next": "statement5",
"type": "options",
"ui": {
"other": true,
"none": true,
"buttonDesc": "NEXT"
},
"required": true,
"key": "life_events"
},
"statement5": {
"id": "statement5",
"message": "Some events in life can bring unexpected weight changes. That's normal. The good news? Yoboshu can help you to change your habits for a better you.",
"ui": {
"imageURL": "some urls",
"buttonDesc": "I'M CURIOUS"
},
"previous": "10",
"next": "response_demography",
"type": "statement"
},
"response_demography": {
"id": "response_demography",
"key": "response_demography",
"message": "Based on your answers so far, you will be reach your goal weight by ${time}",
"description": "some more contents",
"good_points": ["points1", "points2", "points3"],
"ui": {
"imageURL": "some urls",
"buttonDesc": "I'M CURIOUS"
},
"previous": "10",
"next": "start_food",
"type": "statement"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment