예제 #1
0
        private async void OnCurrentlySelectedCalendarEntryChanged()
        {
            if (CurrentlySelectedCalendarEntry == null)
            {
                return;
            }

            if (CurrentlySelectedCalendarEntry.Status == AppointmentStatus.InProgress)
            {
                AnamnesisIsEditable = true;
                var selectedPatient = ((Appointment)CurrentlySelectedCalendarEntry).Patient;
                if (selectedPatient == null)
                {
                    return;
                }
                CurrentlySelectedPatient = selectedPatient;
                var entries = await _anamnesisService.GetAllByPatient(selectedPatient);

                Anamnesis.Clear();
                entries.ToList().ForEach(Anamnesis.Add);
            }
            else
            {
                AnamnesisIsEditable = false;
            }
        }
예제 #2
0
        public async void Initialize()
        {
            var entries = await _anamnesisService.GetAllByPatient(Patient);

            Anamnesis = new List <Entry>(entries);
        }