Can we just set the state and that's all we need? Look at saline bolus initiation. A quick look by me suggests we should be initiating a pressure stabilization period, for example, because bypassing the dialyzer is going to likely change the venous pressure and potentially trigger a low/high venous pressure alarm. Also, what about UF pause? We need to pause UF before starting zero process. And if UF already paused, we need to record that so that when we're done we will remember not to resume UF. There may be other things too, so take a close look at saline bolus.
Why is #define name so long? Why not just MODE_STANDBY_H? Do we want to make a team decision to show the whole path in these names? I've been just doing the unit name w/o path.
What does that have to do with my comment? Stopping the pumps will also change the pressure. Doesn't help. I'm asking you to look at and understand how the saline bolus works and follow that model more closely. I think you are missing things that we need to deal with.