Johann Franz von Hieber (–1843), Medicine