Original: Thereafter he enrolled at the Uppsala University where he learned the profession of medical doctor from 1796 to 1801.
Simplified: After this, he studied at the Uppsala University to be a medical doctor.