musical episode, it should be in Season 6. Long-time Scrubs writer Debra Fordham took the challenge, and contacted the show's medical consultant, Jonathan Doris, who provided her with several case studies, one of which ("Musical hallucinations associated with seizures originating from an intracranial aneurysm", published in the Mayo Clinic Proceedings) became the basis for Ms. Miller's condition. Unlike most episodes, which were products of the entire writers' room, "My Musical" was written almost entirely by Fordham - including most of the lyrics, even though Fordham had never written lyrics. The music, however, was not written by Fordham, but rather by several composers, including Paul Perry (a member of The Worthless Peons), Scrubs composer Jan Stevens, and Tony Award-winner Doug Besterman, each of whom helped write and arrange several songs. But, perhaps the most notable contributors were Jeff Marx and Robert Lopez, the writers of hit Broadway musical Avenue Q. Marx and Lopez's involvement came at the suggestion of Braff, who overheard Fordham asking producer Randall Winston if it would be possible to get actual Broadway composers to work on the episode. Fordham did have some contribution to the music, in the form of musical genre suggestions, but during the actual composition process, she and the composers were almost never in the same room. D'Abruzzo was cast independently of her starring role in Avenue Q. Fordham wrote the part of Ms. Miller with D'Abruzzo in mind after seeing her in the off-Broadway show I Love You Because, after D'Abruzzo had left Avenue Q. In another coincidence, D'Abruzzo had long been a fan of the show, and was overjoyed to have the chance to be on it. Fordham suggested Will Mackenzie to direct the episode, because of his Broadway experience as Cornelius Hackle in Hello, Dolly! during the show's original Broadway run, opposite Carol Channing. Lance Macdonald, the longtime choreographer of the show, was retained once again for the musical episode. The filming of the episode was, as expected, a long process. Prior to the episode, the cast underwent a full week of rehearsals, something never before done for a Scrubs episode. A group of eight core dancers were brought in for the dance numbers, while over fifty dancers were involved in the "Welcome To Sacred Heart" scene. There are some notable cameos in the episode, including episode composer Jeff Marx as a pharmacist in "Gonna Miss You, Carla;" occasional Scrubs musical