Hi Smiddy, sorry I missed this thread earlier. I am glad that your wife is better now. It is frightening experience for the loved ones looking on.
I had a similar experience a few years back . I broke my hip and after the op I went into postoperative dementia. I don’t remember much about it but I was not at all “ with it” . After a few days or week or so ( I’m not sure) I came round but it took some while to get really back to normal mentally.
So, I’m glad your ordeal is over and I wish you both all the best.