Hello dear
Warm  welcome to Healthcaremagic.com
I have evaluated your query thoroughly .
*  This is most probably in relation with underlying bleeding gastric or
    duodenal  ulcer .
*  Needs  confirmation with upper  GI  
endoscopy for precise management.
*  General guidelines for better  outcome  
Prefer soft , light , bland , vegan diet till possible .
Consume more of whole grains , cereals , pulses , legumes , organic fresh fruits .
Avoid  all oily , spicy , non veg , hot beverages , junk foods , hot beverages 
Avoid over eating , prolong fasting .
Avoid resting upto 2 hours after meals .
Fix your timing of breakfast , lunch , dinner  till possible .
Avoid late night parties , dinners .
Keep the head end of the bed elevated for 30 degrees  when  resting .
Have  regular walking in fresh air , exercises , YOGA .
Avoid 
smoking , alcohol if consuming .
Avoid stress , 
anxiety .
Maintain to have regular sound sleep of 8 hours .
Intake  of  
Proton pump inhibitors as 
omeprazole or 
pantoprazole on empty
stomach  1 hour prior to lunch  ;  
antacid  syrups  as  mylanta or others according to the  advise of your doctor  helps .
Hope this clears your doubt  .
Wishing you fine recovery .
Welcome for any further  assistance .
Regards dear take care .