That's bad luck mate,
The important thing to help your recovery is to keep your mind active.
The Doctors will give you guidelines on your physical recovery will need, but your brain has suffered a major event. Don't be easy on it work it like you never had before. Keep it active & challenged.
Good luck on your recovery.
Regards
G