A method for providing battery security in a breathing assistance system configured to provide breathing assistance to a patient is provided. A battery security system of the breathing assistance system receives battery data from a battery received in the breathing assistance system, and analyzes the received battery data to determine whether the battery is approved for use in the breathing assistance system. If the battery is determined to be approved for use in the breathing assistance system, the battery is allowed to provide power to the breathing assistance system. If the battery is not determined to be approved for use in the breathing assistance system, the battery is prevented from providing power to the breathing assistance system.