A method in which the patient controls the amount of pain medicine that is used. When pain relief is needed, the person can receive a preset dose of pain medicine by pressing a button on a computerized pump that is connected to a small tube in the body.