Virtual reality is increasingly being used in medical training to simulate complex surgical procedures.