getServiceWorkload method
Obtiene la carga asistencial (nº de pacientes por médico) del servicio.
Implementation
Future<void> getServiceWorkload() async {
_isLoading = true;
_errorMessage = null;
notifyListeners();
try {
_workload = await _repository.getServiceWorkload();
} catch (e) {
_errorMessage = e.toString();
} finally {
_isLoading = false;
notifyListeners();
}
}