She took the medicine preventively to avoid getting sick.
In a way that stops something from happening or avoids problems.
With powerful free picture dictionary & flashcards.