Managing constipation when taking pain medicines