Juan Mora Fernández ( 1784 in San José - 1854 ) was Costa Rica 's first elected head of state .
Juan Mora Fernández ( 1784 San José - 1854 ) was Costa Rica 's first elected head of state in 1825 .