if they are just suddenly passed out without any prior history of retching then it's more likely to be ruptured esophageal varices, if they give you a history of retching, or they tell you that the patient has aspirated vomitus or has pulmonary symptoms consistent with aspiration then it's more likely to be mallory weiss. hope this helps!