(CNN) A doctor said she was racially profiled by two flight attendants as she aided a fellow passenger on a Delta Air Lines flight.

Dr. Fatima Cody Stanford, a physician and expert in obesity medicine, told CNN she was on a flight from Indianapolis to Boston on Tuesday when a woman sitting next to her started shaking and hyperventilating.

Stanford said she was already aiding the passenger when a flight attendant came by to check the situation. According to Stanford, the flight attendant asked if she was a doctor, to which Stanford replied yes.

Stanford said she continued to stabilize the passenger when a second flight attendant came to ask for her medical license. Stanford showed the flight attendant her license. Stanford said that shortly afterward both flight attendants came back and questioned her credentials and asked if the medical license she was carrying belonged to her.

Stanford described the exchange as "bewildering."