An ambulatory infusion pump, comprising: a housing; a delivery mechanism at least partially contained within the housing and adapted to facilitate delivery of fluid to a user; a user interface comprising a touchscreen disposed on a surface of the housing; and a processor disposed in the housing and configured to generate menu screens for display on the touchscreen and to receive and process touch input from the touchscreen for navigation between or among the menu screens and for setting pump parameters, the processor further configured to: receive touch input through the user interface indicating that a specific task is to be performed on the pump, the specific task being an operation in which the user directly modifies a physical state of the pump and being selected from the group consisting of replacement of an infusion cartridge, filling the infusion cartridge with fluid and filling infusion tubing with fluid; automatically lock the touchscreen during the operation in response to the indication of the specific task to be performed such that touch input received at the touchscreen is not processed by the processor to navigate between or among menu screens or set pump parameters; and unlock the touchscreen following completion of the operation. a housing; a delivery mechanism at least partially contained within the housing and adapted to facilitate delivery of fluid to a user; a user interface comprising a touchscreen disposed on a surface of the housing; and a processor disposed in the housing and configured to generate menu screens for display on the touchscreen and to receive and process touch input from the touchscreen for navigation between or among the menu screens and for setting pump parameters, the processor further configured to: receive touch input through the user interface indicating that a specific task is to be performed on the pump, the specific task being an operation in which the user directly modifies a physical state of the pump and being selected from the group consisting of replacement of an infusion cartridge, filling the infusion cartridge with fluid and filling infusion tubing with fluid; automatically lock the touchscreen during the operation in response to the indication of the specific task to be performed such that touch input received at the touchscreen is not processed by the processor to navigate between or among menu screens or set pump parameters; and unlock the touchscreen following completion of the operation. receive touch input through the user interface indicating that a specific task is to be performed on the pump, the specific task being an operation in which the user directly modifies a physical state of the pump and being selected from the group consisting of replacement of an infusion cartridge, filling the infusion cartridge with fluid and filling infusion tubing with fluid; automatically lock the touchscreen during the operation in response to the indication of the specific task to be performed such that touch input received at the touchscreen is not processed by the processor to navigate between or among menu screens or set pump parameters; and unlock the touchscreen following completion of the operation.