What does this op-amp circuit do? (part of an ECG)
The right leg driver tries to drive the average voltage of the body to cancel out noise.  The right leg is chosen because it is far from the heart, so any signal injected on there will be common mode to two electrodes near the heart.

The right leg drive is much more tightly coupled to the body than ambient noise it picks up from capacitive coupling to things like the AC power in the room.

The network in the feedback path of the right leg driver opamp provides some low pass filtering of the signal.