David and Lisa (1962)
David and Lisa (1962) is a small independent American film directed by Frank Perry, often cited as one of his best works. Based on the novel by Theodore Isaac Rubin, the screenplay, written by Frank Perry's wife Eleanor, tells the story of a bright young man suffering from a severe case of obsessive-compulsive disorder (OCD). This lands him in a residential treatment center, in which he meets a girl with dissociative identity disorder called Lisa, whom he learns to understand.
More at Wikipedia.