Lung Cancer

Hi my mum is diagnosed with Stage 4 Lung Cancer incurable. She's currently in hospital as she's struggling to mange her pain relief, she's not eating and struggling to sleep as she's in so much pain, the doctors keep upping her morphine to try and make her comfortable which isn't working. I'm feeling very helpless and can't help but feel really upset seeing her in so much pain and the doctors are not very helpful. I think it's getting to the stage of end of life and need to make plans to get her home as it's her wishes to be there around her family. Any advice will be very helpful.