Recovery timeline from trauma in real life vs. TV

This might belong in Cafe Society, mods please move if necessary.

Okay so I was watching an old episode of Castle and it was the time when Beckett was shot in the chest and flatlined. Of course her boyfriend doctor saved her life (and then she dumped him, nice eh) and she was back to work a couple months later all bright-eyed and bushy-tailed.

Then of course there’s Grey’s Anatomy when Meredith drowned and was dead for-like-ever and recovered without a hint of brain damage and resumed being a surgeon.

Etc. etc.

What would the recovery timeline in real life be for such traumas? I can’t imagine someone not having brain damage, months of rehab, etc., let alone going back to work pretty much immediately after such catastrophic events.

One thing it is not at all usually clear exactly what the timeline is in the movies/TV as they may skip huge blocks of time from one scene to the next.

But overall there have been very substantial cuts in recovery time over the last few decades for reasons such as using very precise cutting tools instead of the formally blunt instruments, a change to the view that most patients recover faster when they are up and around than laying in bed…

Some people never really recover from major trauma surgery. “He was never the same after he got shot” was a familiar phrase about lawmen, soldiers, etc.
James Brady being one example that come to mind.