Handling events when using ode integrator

Hi,
If you’re modeling clinical events, as might arise in pharmacometrics, you could consider Torsten (https://github.com/metrumresearchgroup/Torsten). It couples Stan’s ode integrators with an event handler (by doing under the hood what @wds15 describes).

@yizhang can probably give you additional pointers.