What should one do if one is throwing up bile?

See below. Best to see doc for testing to determine etiology blood tests and or gallbladder ultrasound if painful can be acute cholecystitis needs gall bladder surgery.