The medical specialty that is concerned with body function is physiology.