Can some of these functions be added to the leahi-fwcommon alarm management? Like active alarm or clear alarm. I understand that it might be too difficult to tailor these functions for all of the stacks.
Do we need to require door closed in the 2 states where blood pump is running (blood recirculating)? And do we need to allow door open in the other state where only dialysate recircs (no BP running so ok to open door)?
Seems like better place for all of this is in transitionToTxPausedState().