It sounds like you have made a link between the med and your nocturia and quite possibly constipation as drug side effects. Time to ask your Dr. About the med. Changimg it or? Etc
For many constipation can be relieved by eating 2 dried dates a day frpm a health food store like whole foods(it does make a difference the quality) HOWEVER most prescriptions list constipation as a side effect and if ypu need to use they will need a prescription to relieve the drug induced state.