public void GetRecentUploadedImages()
        {

            HttpClient client = new HttpClient();
            client.BaseAddress = new Uri(app.DomainName);
            StringBuilder strb = new StringBuilder();
            strb.Append("auth_token=" + app.AccessToken);
            strb.Append("&user_name=" + app.Username);
            strb.Append("&site=" + app.Site);


            HttpResponseMessage response = client.GetAsync("/rest/case/patients?" + strb.ToString()).Result;
            InitialPatientInfo patientrest;
            List<InitialPatientInfo> pinfo = new List<InitialPatientInfo>();
            if (response.IsSuccessStatusCode)
            {
                //dynamic users = JsonConvert.DeserializeObject(response.Content.ReadAsStringAsync().Result);
                // app.AccessToken=
                //foreach (string typeStr in users.Type[0])
                //{

                //}
                dynamic users = JsonConvert.DeserializeObject(response.Content.ReadAsStringAsync().Result);


                foreach (dynamic item in users)
                {
                    patientrest = new InitialPatientInfo();
                    foreach (dynamic i in item)
                    {

                        if (i.Name == "dateOfBirth")
                            patientrest.dateOfBirth = i.Value.Value;
                        if (i.Name == "id")
                            patientrest.id = Convert.ToString(i.Value.Value);
                        //if (i.Name == "imageRightUrl")
                        //    patientrest.imageRightUrl = i.Value.Value;
                        if (i.Name == "imageRightUrl")
                        {
                            //patientrest.image_right_url = "ms-appdata:///roaming/Upload/" + i.Value.Value; //Source="ms-appdata:///roaming/upload/acq1_1.jpg"
                            var items = i.Value.Value;
                            string[] temparray = items.ToString().Split('/');
                            if (app.UserRole == "acquirer")
                                patientrest.imageRightUrl = "ms-appdata:///roaming/Upload/" + temparray[4];
                            if (app.UserRole == "expert")
                                patientrest.imageRightUrl = "ms-appdata:///roaming/Download/" + temparray[4];
                            patientrest.FileName = temparray[4];

                        }
                        if (i.Name == "sex")
                            patientrest.sex = i.Value.Value;
                        if (i.Name == "createdAt")
                            patientrest.createdAt = i.Value.Value;
                        if (i.Name == "age")
                            patientrest.age = i.Value.Value;
                        if (i.Name == "imageLeftUrl")
                            patientrest.imageLeftUrl = i.Value.Value;
                        if (i.Name == "workflowStatus")
                            patientrest.workflow_status = i.Value.Value;


                    }
                    pinfo.Add(patientrest);
                }

            }
            ItemGridView.ItemsSource = null;
            ItemGridView.ItemsSource = pinfo;

        }
 private void Grid_Tapped_info(object sender, Windows.UI.Xaml.Input.TappedRoutedEventArgs e)
 {
    // this.Frame.Navigate(typeof(RequestQueue));
   
     var model = (InitialPatientInfo)((FrameworkElement)sender).DataContext;
     selecteditem = model;
     this.Frame.Navigate(typeof(ExpertsResponse));
 }