Modeling Mathematical Flowgraph Models in Recurrent Events: An Application to Bladder Carcinoma