I understand your concern for your child.
The inability to empty the bladder is due to Codine . you need to stop the same.
The enlarged right kidney
and the symptoms you mentioned could be due to obstruction , infection, stone disease.
You require to do some tests like sonography
abdomen. Urine routine, CBC,RFT.
Please see a specialist at the earliest.