Occasionally, a woman might experience some cramping during or after a hysterosonogram. If she desires, she may take 1-2 tablets of ibuprofen (Motrin or Advil) 1-2 hours before the procedure to decrease cramping. This may be repeated 3-4 hours later in the unlikely event that cramping persists.