When my father got sick, we sent for a doctor.

Literal

Father [subject-が] sick became [because-ので], we [topic-は] doctor [object-を] call [purpose-に] sent.

呼びにやる = 'to send (someone) to call' — やる here means 'to send (a person on an errand).' The purpose に marks why the person was sent.