General framework for flexible multi-state survival modelling
