An automated bedpan system integrated into a hospital bed comprising a hospital bed comprising a bed frame covered by a mattress. The mattress comprises a movable mattress section moved into and through a longitudinal covered, internal slot integrated into the mattress and an electric motor powering a mattress track system to move said moveable mattress section. The moveable mattress section functions to cover a portal in the mattress that can be opened and closed by the mattress track system. A bedpan movement system comprising a lift system for moving the bedpan up and down to the portal for patient use powered by an electric motor.