Maggie,
Great that your Doc. got to see it happnen!! Wow! I've had complete body contraction starting with the midriff and abdomen muscles. It has to be nerves involved. There is a condition called Chostochondritis or Costochondritis )?) and when your midriff muscles spasm they like turn to stone! Pain like a knife stab. All I could do is hold my breath and wait for it to go away.
There is another thing I noted when bending off to the side a bit it will spasm and I think this is the spine and muscles attached to it. It gets cramped.
Hope your Doc. can give you some help with this. Mine came and went. Just never know...but I do know how it hurts you and I'm so sorry.
Best Wishes,
Kewanee