Started as a horror and ended in psychic thriller. Plot only James Wan can choose such things. Towards the end so much of gory sequence and while revealing the suspense it was unimaginable. Only in hollywood, they can think such kind of subject and execute them convincingly. We can easily predict the flow of screenplay and who it will be, until the flashback sequence.
Finally : It was a wise decision to cut out the cancer