The pain pump is programmed by healthcare providers to deliver a specific dose of medication at set intervals. Patients can also administer additional doses by pressing a button, although the pump is designed with safety features to prevent overdose. These devices can be used for both acute and chronic pain management.