Hi there,
As you noted, a pension fund is not life insurance or health insurance (although certain insurance coverage is provided), so you cannot be required to provide sensitive health information in order to join a basic, compulsory 2a occupational pension fund in itself.
However, many 2a occupational pension funds also provide additional insurance (life insurance or disability insurance, for example) above what is legally required. In this case, the pension fund may ask you to provide information about pre-existing conditions.
The pension fund should cover the cost of examinations, and should refer you to a physician which should undertake the examination on behalf of the pension fund confidentially. You should not be required to provide sensitive medical information directly to the pension fund.
This information can only be applied towards the additional insurance, which means the extra benefits may not be paid out (if you become disabled, for example) when pre-existing conditions are the cause. You will receive the compulsory coverage no matter what your health condition. Furthermore, additional benefits can only be denied based on pre-existing conditions during the first 5 years in which you are insured. After that, you will receive the full additional benefits regardless of pre-existing conditions.
Best regards from Moneyguru
More on this topic:
Swiss compulsory health insurance comparison
Swiss supplementary health insurance comparison
Swiss 3a retirement account comparison