private void radListViewSurveys_ItemTapped(object sender, Telerik.XamarinForms.DataControls.ListView.ItemTapEventArgs e)
 {
     if (e.Item != null)
     {
         Survey         survey     = (CaritaUAT.Models.Survey)e.Item;
         SurveyEditPage surveyPage = new SurveyEditPage(_patient, survey);
         Navigation.PushAsync(surveyPage);
     }
 }
        private void AddHealthCard_Clicked(object sender, EventArgs e)
        {
            SurveyForm thisForm;

            try
            {
                thisForm = CaritaUATdb.SurveyForms.First(x => x.Typ == "HLA");
            }
            catch
            {
                DisplayAlert("Fel", "Inga hälsokortformulär sparade i appen!", "Ok");
                return;
            }

            Survey survey = CaritaUATdb.CreateSurveyFromForm(thisForm);

            survey.PatPNr = _patient.PatPNr;

            SurveyEditPage surveyPage = new SurveyEditPage(_patient, survey);

            Navigation.PushAsync(surveyPage);
        }