The legend of Arnau de Vilanova, from the Middle Ages to the Early Modern times