Dissociative identity disorder
A person is not diagnosed with DID if the symptoms are caused by drugs, illness, or (with children) pretending to play with imaginary friends.  Doctors must also rule out pretending to have DID for attention or sympathy, and malingering (pretending to have DID for some personal gain).  Most patients with DID are also diagnosed with other mental disorders.