Complex sentence: She thinks it is one of his pranks and begins to leave, but upon realizing it is serious she can't find his medication.
Split into simpler sentences: She thinks it is one of his pranks and begins to leave. On realizing it is serious she can't find his medication.