public void SaveAppointmentStatusValue(PmsAppointment appointment) { var appt = Appointments.FirstOrDefault(a => a.AppointmentFhirID == appointment.AppointmentFhirID); if (appt != null) { appt.ArrivalStatus = appointment.ArrivalStatus; } }
public void SaveAppointmentAsVideoMeeting(PmsAppointment appointment, string videoLinkComment, string VideoUrl) { var appt = Appointments.FirstOrDefault(a => a.AppointmentFhirID == appointment.AppointmentFhirID); if (appt != null) { appt.IsVideoConsultation = appointment.IsVideoConsultation; } }
protected override async Task InitializeAsync() { Appointments.Clear(); var appointments = await _myHealthClient. AppointmentsService.GetPatientAppointmentsAsync(AppSettings.CurrentPatientId, MaxAppointmentsToList); if (appointments.Count > 0) { Appointments.AddRange(appointments); } AppointmentSelectedItem = Appointments.FirstOrDefault(); }
/// <summary> /// アプリケーションの初期化 /// </summary> public async void Initialize() { IsLoaded = false; // ユーザー情報の取得 await crmservice.GetUserId(); // 予定の取得 Appointments = await crmservice.GetAppointments(); // 初めの予定を取得 Appointment = Appointments.FirstOrDefault(); IsLoaded = true; }
/// <summary> /// Finds the by id. /// </summary> /// <param name = "id">The id.</param> /// <returns></returns> private AppointmentObj FindById(object id) { return(Appointments.FirstOrDefault(ai => ai.Id.Equals(id))); }
public Appointment GetAppointment(int id) { return(Appointments.FirstOrDefault(app => app.Id == id)); }