I would imagine that doctors don't generally know the occupations of their patients, however , when I was an Hgv driver I had to have regular medicals for my licence. I may be wrong, but I would have thought the same would apply for a pilots licence ?