I'm 37 weeks. My stomach (upper abdomen) feels hard and it hurts?

Need evaluation. Anatomically, the upper abdomen includes: spleen, pancreas, stomach, descending duodenum, mid colon & flexures, associated vessels & aorta, liver, gallbladder, biliary tree. Don't forget the diaphragm, heart, & lower chest are pretty close by. Abdominal pain is often accompanied by abdominal muscle rigidity. An exam is appropriate for clarity of diagnosis & treatment--please see your doctor next.