Example #1
0
        List <Question> GenerateSectionTwoQuestions()
        {
            SectionOneOldResponses = new List <Question>();
            var currentUserOldReports = DatabaseManager.Instance.Reports.FirstOrDefault(report => report.UserName == DatabaseManager.Instance.CurrentUsername && report.SectionType == SectionType.One);

            if (currentUserOldReports != null)
            {
                SectionOneOldResponses = currentUserOldReports.Questions;
            }
            List <Question> toBeReturned = new List <Question>();

            toBeReturned.Add(
                new Question
            {
                ID = QuestionID.HowUDoin,
                NavigationFunction = QuestionSelectionArguments.DefaultYes,
                Content            = "Are you feeling okay today?",
                Responses          = new List <string> {
                    "Yes", "No"
                },
                AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.HowUDoin)).FirstOrDefault().AudioTrack
            });
            toBeReturned.Add(
                new Question
            {
                ID = QuestionID.AnyNewPain,
                //Gotta add the clîps
                NavigationFunction = QuestionSelectionArguments.DefaultYes,
                Content            = "Do you have any new pain?",
                Responses          = new List <string> {
                    "Yes", "No"
                },
                AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.AnyNewPain)).FirstOrDefault().AudioTrack
            });
            toBeReturned.Add(
                new Question
            {
                ID = QuestionID.WhereDoYouFeelPain,
                NavigationFunction =
                    () => { return(new QuestionSelectionArguments {
                        ShouldSelect = Dictionary[QuestionID.AnyNewPain].SelectedResponse == 0, AudioClip = null
                    }); },
                Content   = "Where do you feel the pain?",
                Responses = new List <string> {
                    "Left or right wrist", "Left or right elbow", "Left or right shoulder", "Left or right forearm",
                    "Left or right upper arm", "Left or right ankle", "Left or right knee", "Left or right hip", "Left or right calf", "Left or right thigh", "Left or right side of chest", "Upper back", "Lower back", "Spinal", "Neck", "Left or right hand", "Left or right food",
                },
                AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.WhereDoYouFeelPain)).FirstOrDefault().AudioTrack
            });
            toBeReturned.Add(
                //ne9ssa b9eya
                new Question
            {
                ID = QuestionID.AnyFatigue,
                //Gotta add the clîps
                NavigationFunction = QuestionSelectionArguments.DefaultYes,
                Content            = "Have you been experiencing any fatigue recently?",
                Responses          = new List <string> {
                    "Yes", "No"
                },
                AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.AnyFatigue)).FirstOrDefault().AudioTrack
            });
            Question cancerTypeQuestion = SectionOneOldResponses.Count == 0 ? null : SectionOneOldResponses.First(quest => quest.ID == QuestionID.CancerType);
            string   problem            = string.Format("Have you been experiencing any problems related to your {0} cancer recently ?", cancerTypeQuestion == null ? ""
                : cancerTypeQuestion.SelectedResponse != -1 ? cancerTypeQuestion.Responses[cancerTypeQuestion.SelectedResponse] : "");

            toBeReturned.Add(
                //ne9ssa b9eya
                new Question
            {
                ID = QuestionID.AnyProblems,
                //Gotta add the clîps
                NavigationFunction = QuestionSelectionArguments.DefaultYes,
                Content            = problem,
                Responses          = new List <string> {
                    "Yes", "No"
                },
                AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.AnyProblems)).FirstOrDefault().AudioTrack
            });
            toBeReturned.Add(new Question
            {
                ID                 = QuestionID.SayTheMatter,
                Content            = "Do you want to say what the matter is? (You have the right not to share this information)",
                IsFreestyle        = true,
                NavigationFunction = () =>
                {
                    return(new QuestionSelectionArguments {
                        ShouldSelect = Dictionary[QuestionID.AnyProblems].SelectedResponse == 0, AudioClip = null
                    });
                },
                AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.SayTheMatter)).FirstOrDefault().AudioTrack
            });
            toBeReturned.Add(new Question
            {
                ID            = QuestionID.HowIsBodyPartFeelin,
                Content       = "Could you describe your pain's intensity?",
                SliderContent = new SliderContent {
                    MinValue = 1, MaxValue = 10, MinDescription = "No Pain", MaxDescription = "Worst Pain Possible", SelectedValue = 5
                },
                NavigationFunction = () =>
                {
                    return(new QuestionSelectionArguments {
                        ShouldSelect = Dictionary[QuestionID.AnyNewPain].SelectedResponse == 0, AudioClip = null
                    });
                },
                AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.HowIsBodyPartFeelin)).FirstOrDefault().AudioTrack
            });
            return(toBeReturned);
        }
Example #2
0
 List <Question> GenerateSectionThreeQuestions()
 {
     return(new List <Question>
     {
         new Question
         {
             ID = QuestionID.EnjoyableExercise,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Was your exercise session enjoyable ?",
             Responses = new List <string>
             {
                 "Yes", "Mostly enjoyable", "Neither enjoyable or disagreeable", "Mostly disagreeable", "No"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.EnjoyableExercise)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.ConfidenceWhileExercice,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Did you feel confident doing the exercises ?",
             Responses = new List <string>
             {
                 "Yes", "Mostly confident", "Neither confident or unconfident", "mostly unconfident", "NO"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.ConfidenceWhileExercice)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.LikedExercices,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "What exercices did you like?",
             IsFreestyle = true,
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.LikedExercices)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.DislikedExercices,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "What exercises did you dislike?",
             IsFreestyle = true,
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.DislikedExercices)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.UndoableExercices,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Were there any exercises that you couldn't do due to pain or for any other reason?",
             IsFreestyle = true,
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.UndoableExercices)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.HowHardExerciceSession,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "How hard would you say you found the exercise session?",
             SliderContent = new SliderContent {
                 MinValue = 1, MaxValue = 10, MinDescription = "Nothing", MaxDescription = "Maximual/Exhaustion", SelectedValue = 5
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.HowHardExerciceSession)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.WorkoutDuration,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Was the workout too long, too short or just right?",
             Responses = new List <string>
             {
                 "Too long", "Too short", "Just right"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.WorkoutDuration)).FirstOrDefault().AudioTrack
         },
     });
 }
Example #3
0
 List <Question> GenerateSectionOneQuestions()
 {
     return(new List <Question>
     {
         new Question
         {
             ID = QuestionID.Gender,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "What is your gender ?",
             Responses = new List <string>
             {
                 "Male", "Female"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.Gender)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.YearBorn,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Which year were you born ?",
             IsFreestyle = true,
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.YearBorn)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.Height,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "How tall are you ? (in centimeters)",
             IsFreestyle = true,
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.Height)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.Weigh,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "How much do you weigh ?",
             IsFreestyle = true,
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.Weigh)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.CancerType,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "What type of cancer did you suffer from?",
             Responses = new List <string> {
                 "Breast cancer", "Prostate cancer", "Lymphoma"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.CancerType)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.CancerTreatmentEnd,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "How long ago did your cancer treatment finish?",
             Responses = new List <string> {
                 "<3 months ago", "3-6 months ago", "6-12 months ago", "1-2years ago", "2-3years ago", "3-4 years ago", "4-5years ago"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.CancerTreatmentEnd)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.CardiovascularDiseases,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Do you suffer from any of the following cardiovascular diseases?",
             Responses = new List <string> {
                 "Hypertension", "Angina", "Coronary Heart Disease", "None"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.CardiovascularDiseases)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.RespiratoryDisorders,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Do you suffer from any of the following respiratory disorders?",
             Responses = new List <string> {
                 "Chronic obstructive pulmonary disease ", "Asthma", "None",
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.RespiratoryDisorders)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.SufferFromOsteoarthritis,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Do you suffer from Osteoarthritis?",
             Responses = new List <string> {
                 "Yes", "No"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.SufferFromOsteoarthritis)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.OsteoarthritisWhere,
             NavigationFunction =
                 () => { return new QuestionSelectionArguments {
                             ShouldSelect = (Dictionary[QuestionID.SufferFromOsteoarthritis].SelectedResponse == 0),
                             AudioClip = null
                         }; },
             Content = "Where do you suffer from Osteoarthritis?",
             Responses = new List <string> {
                 "Ankle", "Knee", "Hip", "Shoulder", "Elbow", "Wrist", "Hands"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.OsteoarthritisWhere)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.SufferFromRheumatoidArthritis,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Do you suffer from Rheumatoid arthritis ?",
             Responses = new List <string> {
                 "Yes", "No"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.SufferFromRheumatoidArthritis)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.RheumatoidArthritisWhere,
             NavigationFunction =
                 () => { return new QuestionSelectionArguments {
                             ShouldSelect = (Dictionary[QuestionID.SufferFromRheumatoidArthritis].SelectedResponse == 0),
                             AudioClip = null
                         }; },
             Content = "Where do you suffer from Rheumatoid arthritis ?",
             Responses = new List <string> {
                 "Ankle", "Knee", "Hip", "Shoulder", "Elbow", "Wrist", "Hands"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.RheumatoidArthritisWhere)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.SufferFromJointReplacement,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Do you suffer from Joint replacement?",
             Responses = new List <string> {
                 "Yes", "No"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.SufferFromJointReplacement)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.JointReplacementWhere,
             NavigationFunction =
                 () => { return new QuestionSelectionArguments {
                             ShouldSelect = (Dictionary[QuestionID.SufferFromJointReplacement].SelectedResponse == 0),
                             AudioClip = null
                         }; },
             Content = "Where do you suffer from Joint replacement?",
             Responses = new List <string> {
                 "Hip", "Knee", "Shoulder"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.JointReplacementWhere)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.Osteoporosis,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Do you suffer from Osteoporosis?",
             Responses = new List <string> {
                 "Yes", "No"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.Osteoporosis)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.SufferFromMechanicalBackPain,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Do you suffer from simple mechanical back pain?",
             Responses = new List <string> {
                 "Yes", "No"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.YearBorn)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.MechanicalBackPainWhere,
             NavigationFunction =
                 () => { return new QuestionSelectionArguments {
                             ShouldSelect = (Dictionary[QuestionID.SufferFromMechanicalBackPain].SelectedResponse == 0),
                             AudioClip = null
                         }; },
             Content = "Where do you suffer from simple mechanical back pain?",
             Responses = new List <string> {
                 "Upper back", "Lower back", "Spinal"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.MechanicalBackPainWhere)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.MentalHealthConditions,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Do you suffer from any of the following mental health conditions?",
             Responses = new List <string> {
                 "Stress", "Depression", "Anxiety", "No"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.MentalHealthConditions)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.DiabetesMelltus,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Do you suffer from diabetes mellitus?",
             Responses = new List <string> {
                 "Type 1 diabetes", "Type 2 diabetes", "No",
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.DiabetesMelltus)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.PhysicalActivityPerweek,
             //Include Clip Here. "Physical activity is defined as ...."
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "How much physical activity do you currently do a week?",
             Responses = new List <string> {
                 "<30 minutes a week",
                 "[30-60] minutes per week", "[60-150] minutes per week", ">150minutes"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.PhysicalActivityPerweek)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.CurrentPhysicalActivityPerweek,
             //Include also clip here. "exercise is defined as doing a planned"
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "How much exercise are you currently doing a week?",
             Responses = new List <string> {
                 "<30 minutes a week",
                 "[30-60] minutes per week", "[60-150] minutes per week", ">150minutes"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.CurrentPhysicalActivityPerweek)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.PainWhileExercicsing,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "Do you sometimes experience pain when exercising?",
             Responses = new List <string> {
                 "Yes", "No"
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.PainWhileExercicsing)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.WhereFeelPain,
             NavigationFunction =
                 () => { return new QuestionSelectionArguments {
                             ShouldSelect = (Dictionary[QuestionID.PainWhileExercicsing].SelectedResponse == 0),
                             AudioClip = null
                         }; },
             Content = "Where do you feel the pain?",
             Responses = new List <string> {
                 "Left or right wrist", "Left or right elbow", "Left or right shoulder", "Left or right forearm", "Left or right upper arm", "Left or right ankle", "Left or right knee", "Left or right hip", "Left or right calf", "Left or right thigh", "Left or right side of chest", "Upper back", "Lower back", "Spinal", "Neck", "Left or right hand", "Left or right foot",
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.WhereFeelPain)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.ExercicePainScale,
             NavigationFunction =
                 () => { return new QuestionSelectionArguments {
                             ShouldSelect = (Dictionary[QuestionID.PainWhileExercicsing].SelectedResponse == 0),
                             AudioClip = null
                         }; },
             Content = "On a scale of 1-10 how much does it hurt when you exercise?",
             SliderContent = new SliderContent {
                 MinValue = 0, MaxValue = 10, MinDescription = "No Pain", MaxDescription = "Worst Pain", SelectedValue = 5
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.ExercicePainScale)).FirstOrDefault().AudioTrack
         },
         new Question
         {
             ID = QuestionID.GoalFromExercicePlan,
             NavigationFunction = QuestionSelectionArguments.DefaultYes,
             Content = "What do you want to achieve from this exercise plan?",
             Responses = new List <string>
             {
                 "Get fitter", "Get stronger", "Feel better mentally", "Maintain a healthy weight",
                 "Improve functional ability", "Reduce pain", "Being able to parciipate in more social activities",
                 "Get better sleep", "Reduce the risk of redeveloping cancer",
             },
             AudioTrack = LipSync_SectionOne.Where(p => p.Question.Equals(QuestionID.GoalFromExercicePlan)).FirstOrDefault().AudioTrack
         }
     });
 }