private async void GetPatienDentalOperationsAsync() { var procedures = await _databaseService.DentalAssistantDB.GetPatientDentalProceduresAsync(CurrentPatient.Id); if (procedures.Count > 0) { procedures.Last().IsLast = true; } PatientDentalProcedures.Clear(); procedures.ForEach(PatientDentalProcedures.Add); }
private void GetMockProcedures() { PatientDentalProcedures.Clear(); PatientDentalProcedures.Add(new PatientDentalProcedure { PatientId = 1, DentalProcedure = DentalProcedureType.Cleaning, Description = "Normal cleaning", StartDate = DateTime.Today }); PatientDentalProcedures.Add(new PatientDentalProcedure { PatientId = 1, DentalProcedure = DentalProcedureType.Cap, Description = "A cap for tooth with index 8. Difficult case", StartDate = DateTime.Today }); PatientDentalProcedures.Add(new PatientDentalProcedure { PatientId = 1, DentalProcedure = DentalProcedureType.Cleaning, Description = "Normal cleaning", StartDate = DateTime.Today }); PatientDentalProcedures.Add(new PatientDentalProcedure { PatientId = 1, DentalProcedure = DentalProcedureType.Filling, Description = "Normal cleaning", StartDate = DateTime.Today, IsLast = true }); }