public TimeSlot FindNextTimeSlotForMedicalPractitioner(IdType medicalPractitionerId, DateTime fromDateTime) { DateTime lastAppointmentTime = FindLastAppointmentTime(medicalPractitionerId, fromDateTime); TimeSlot nextTimeSlot = calendar.FindNextTimeSlot(lastAppointmentTime); return(nextTimeSlot); }