 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 . 
