Doctors can detect autoimmune hemolytic anemia by the presence of autoantibodies in a direct Coombs test.