Modelling the neonatal system: A joint analysis of length of stay and patient pathways.