A history and physical exam are done first. If the mother has not yet given birth, a pregnancy ultrasound test is done. This can show whether the baby is moving and whether his or her heart has stopped. If delivery occurs, the baby will be dead at the time of delivery.