They can ask you almost anything, but you can leave it blank if you don't wish to tell them. It may prejudice your application though. Medical conditions are usually confidential except on things such as insurance forms. Of course, if someone is applying to be a steeple-jack, they have to say if...