she 'd also had an echocardiogram to check her heart , numerous blood tests to search for infection and determine her clotting ability , an upper endoscopy to examine the state of the veins in her abdominal wall , some pulmonary function studies to ensure that her lungs were exchanging oxygen and carbon dioxide properly and several ultrasounds .