Recovery time for having a stoma fitted?

Hi my nan has just had to have a stoma due to a tumor. She's obviously in a lot of pain, so was wondering if anyone could tell me roughly how long it takes for everything to heal and the pain to stop? Or any other advice you can give. Thanks.