An infusion pump includes a housing, a wireless transceiver, a pump motor mounted within the housing, a location sensor configured to provide information associated with a location of the infusion pump, a battery conductively coupled to the wireless transceiver, the pump motor, the location sensor and processor(s), and memory. The infusion pump is configured to monitor, using the location sensor, a geofence parameter of the infusion pump, determine a change in the location of the infusion pump based on the geofence parameter, identify an operation mode of the infusion pump associated with the geofence parameter, and automatically switch, responsive to the changed location, the operation mode of the infusion pump from a first mode currently programmed for care of a patient to a second mode, the second mode using different parameters than the first mode to control elements of the infusion pump.