You are describing pain in the area of the liver plus jaundice
from a sick liver. You most likely have liver disease - infectious, chronic, etc.
You should see a GI specialist with an interest in liver disease (hepatologist). You may also be infectious and might need to isolate yourself in some way to avoid spreading infectious hepatitis. Get evaluated right away.