예제 #1
0
        private void Button_Clicked_MET_save(object sender, EventArgs e)
        {
            var list = new List <string>();

            foreach (var ans in MetSurvey)
            {
                list.Add(ans.TextData);
            }
            // fix this age from datetime.
            var answerMet = new AnswerModel {
                Waist = list[0], Systolic = list[1], Age = "2"
            };

            UtilDal.PostAnswer(answerMet);
            Navigation.PopModalAsync();
        }
예제 #2
0
        private void Button_Clicked_VAD_save(object sender, EventArgs e)
        {
            var list = new List <string>();

            foreach (var ans in VadSurvey)
            {
                list.Add(ConversionHelper.Bool2Bin(ans.IsTrue));
            }

            var answerVad = new AnswerModel
            {
                ParametersVad = list,
                CurDateTime   = DateTime.Today,
                Said          = curPatient.Said,
                Age           = ConversionHelper.GetAge(curPatient)
            };

            UtilDal.PostAnswer(answerVad);
            Navigation.PopModalAsync();
        }