Other studies have shown that not only are hormones changing during treatment with opioids, but the immunological function is also affected. There have been shown a link between the immunological and hormonal function so that parts of the immune system also affect the pituitary-adrenal function.