I have a friend you got an esophagogastroduodenoscopy done, anyone know what for?

Here's possibilities. Check this link for EGD procedure indications. http://www.asge.org/assets/0/71542/71544/28549c5c-8b0e-4050-a588-11791c75ceb2.pdf.
Conscious sesation. Under conscious sedation, a flexible scope pass into the mouth and advance down swallowing pipe and into stomach and short section of small intestine to examine the lining of thesr area. Use to evaluate upper abdominal pain symptoms.