Parents took their 15-month-old son to York Hospital with an infected finger – and found he had heart disease.