The diagnosis of upper gastrointestinal bleeding is mainly based on medical history and symptoms, combined with clinical examination, the specific tests are as follows: 1, laboratory tests: platelet count, clotting time, blood routine, prothrombin time and blood ammonia concentration, etc., which can help to differentiate the diagnosis from ruptured esophageal vein bleeding caused by cirrhosis; 2, line swallowing test or fluorescein line swallowing test: the bleeding site can be inferred from the staining and coloring site; 3. Radionuclide imaging: it can detect active bleeding; 4. Selective arteriography: it can detect bleeding lesions, especially for bleeding caused by vasodilatation, malformation, hemangioma, arteriovenous fistula, and it can confirm the diagnosis, and it is suitable for those whose bleeding has not been stopped without clear diagnosis by emergency endoscopy; 5. : can improve the diagnosis rate.