Yes. It's based on Diminished Capacity, a 1997 novel by Sherwood Kiraly.
A NOTE REGARDING SPOILERS
The following FAQ entries may contain spoilers. Only the biggest ones (if any) will be covered with spoiler tags. It is assumed that no one who is diligently avoiding spoilers will be visiting this page in the first place.