Pancreatitis and kidney disease

Need help pls!! My 16 yr old female blue Heeler just spent four days at emergency hospital. She has stage 3-4 kidney disease and was doing well until earlier this week. She suddenly got stiff hind legs and so rushed her to ER. Turns out that she has pancreatitis. I brought her home after four days and they said she had some loose stool still but ready to go home. Her kidney values improved due to hydration too. So, after only 30 mins of being home, she had full blown diarrhea and I just don’t know what to do. I am waiting for a call back but in Ken’s time any input would be appreciated. They have her prescription royal canine food at the hospital ( only ate on day 3 really according to them ). I make her home cooked renal diet food and she has thrived on it and never eaten such processed food. They want me to feed her that for now but I am thinking that this may be the actual culprit for her diarrhea now. I actually don’t like the Rx food at all due to ingredients but am struggling to know what to do.