Read the book.
Dr. Alexander went into a meningitis-induced coma. Parts of his brain shut down, or went "off-line."
He was never declared brain dead. His brain was still functioning, still receiving oxygen. There's a world of difference between Dr. Alexander's condition and that of Jahi McMath, for whom there is no brain activity whatsoever.