A patient support apparatus includes an upper frame that is movable to raise and lower relative to a base frame frame. A mattress support deck is coupled to the upper frame and includes a foot deck section. The foot deck section is movable with respect to the rest of the mattress support deck to raise and lower. A drainage bag support is coupled to the foot deck section and is configured to support a drainage bag. Control circuitry controls movement of the upper frame and the foot deck section. The control circuitry has a lockout mode to limit the movement of the upper frame and foot deck section to prevent the drainage bag from touching a floor.