Side effects occur when a drug affects other systems in the body in addition to its target system. Understanding the mechanism of action helps nurses anticipate and manage these side effects. For example, opioids can cause constipation because they slow down the movement of the intestines.