The goal of medical therapy in upper gastrointestinal bleeding (UGIB) is to correct shock and coagulation abnormalities and to stabilize the patient so that further evaluation and treatment can proceed. High doses may reduce the need for endoscopic therapy (see treatment with proton pump inhibitors).