Learning to Adapt Dynamic Clinical Event Sequences with Residual Mixture of Experts