Verb (infinitive)
Contract an illness
to formally catch or acquire a sickness
It is possible, but not likely, to contract an illness while visiting a sick relative in the hospital.