Identification of risk factors in minimally invasive surgery