in the same year he was admitted into the royal academy of medicine of barcelona