I am also a software developer in Australia (NSW). I was 'headhunted' (in the loose sense) for a role and they booked me in for a "pre-employment medical check".
I assumed it would be something like: medical professional is briefed on my typical duties; medical professional assesses my abilities to perform these duties; medical professional then makes a recommendation to the employer. However on arriving and being presented the T&Cs and pre-check questionnaires, it became clear that the exercise was actually one of me declaring any and all medical information I could, with the T&Cs requiring that I consent to all of this information being provided to the employer.
I phoned my contact at the employer and said that this was ridiculous, and that none of the information I was asked to provide was relevant to the role: "it's just company policy for all employees", "we have a solid privacy policy".
They said that they had another health provider who was more 'lax' about what they asked. I contacted the provider and got a hold of their equivalent T&Cs and questionnaire, and it was way worse. Example questions: "Are you happy with your current weight?", "Has your weight changed in the past 5 years?", "In terms of noise, have you ever been exposed to (chainsawing|scuba diving|panel beating)?", "Are you pregnant or do you think you could be?". There were also questions about health conditions of family etc.
Ultimately I told them I wasn't interested in the organisation whilever they required me to unnecessarily disclose personal medical information. That said, I recognise I am very fortunate to be in a financial position to 'die on that hill', but I wish enough of us felt able to stand up to this bullshit so that none of us would have to.