예제 #1
0
        public void SaveAppointmentStatusValue(PmsAppointment appointment)
        {
            var appt = Appointments.FirstOrDefault(a => a.AppointmentFhirID == appointment.AppointmentFhirID);

            if (appt != null)
            {
                appt.ArrivalStatus = appointment.ArrivalStatus;
            }
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
        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;
        }
예제 #5
0
 /// <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)));
 }
예제 #6
0
 public Appointment GetAppointment(int id)
 {
     return(Appointments.FirstOrDefault(app => app.Id == id));
 }