Hi, thank you for posting.
I have gone through your query and I understand your concerns.
All your symptoms shows us that you have gastric hemorrhage that is caused by a possible gastric ulcer.
Green color is related to Biliary dyskinesia
You should immediately modificate your lifestyle by:
1. Eliminating spicy foods, coffee, milk and alcoholic drinks from your diet.
2. Quit smoking
cigarettes(if you smoke).
To determine the diagnosis you need;
1. Abdominal ultrasound
3. Liver function test.
5. Complete blood count
6. Urine test.
The results of these tests will help your doctor in determining the treatment.
Please consult your gastroenterologist.
I hope this information is helpful.
All the best.