After surgery, your doctor will set the limit for the highest dose of pain medication that you can receive at any time, but you will be able to use a hand-held button to adjust your drug according to the level of pain you may be having.