The analysis of length of stay: the obstetrical delivery case