If such people were found, vaccine was given to all contacts and people in the surrounding district to contain the virus until the last case was detected.
(such people; were found; ) (vaccine; was given; to all contacts and people in the surrounding district; to contain the virus until the last case was detected) (the last case; was detected; )
such people vaccine the last case
were found was given was detected
to all contacts and people in the surrounding district to contain the virus until the last case was detected