keep running through one’s mind

prolaziti glavom, mislima, rojiti se

While she was waiting for her turn to see a doctor, many different thoughts kept running through her mind.