Hematemesis is the vomiting of blood. It can be confused with hemoptysis (coughing up blood) or epistaxis (nosebleed), which are more common.