A patient support apparatus includes a base, a frame coupled to the base, and a deck supported by the frame and capable of moving relative to the frame. The patient support apparatus further includes an egress unit coupled to the deck to move between an egress position and a storage position relative to the barrier. The egress unit may include electronic controls to limit movement of various portions of the egress unit.