Gastrointestinal physiology concerns any part of the digestive tract from the oesophagus to the anus and also of the liver, biliary tract and the pancreas. The function of the GI tract is to process ingested food by mechanical and chemical means, extract nutrients and excrete waste products.