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; } }
public async void Initialize() { var entries = await _anamnesisService.GetAllByPatient(Patient); Anamnesis = new List <Entry>(entries); }