Also using "he" to refer to a hypothetical doctor is somewhat exclusionary, I suggest "they" instead to be more neutral.
You also forget, that society has rarely been consistent in who deserves help and on what terms.
I don't care if you don't want to help someone because you think being trans is wrong. You still have to treat them if you are working in an ER, if you are a dermatologist, if you are basically any doctor. In a few cases, you might be able to refer the person to another doctor, if it is reasonable (as readily understood by laypeople), not urgent, and you (personally) pay any additional costs the patient might incur, including lost wages if they need to take another day off work, differences in insurance cost, and travel costs.
If you don't want to treat everyone, find another line of work. And yes, I think the same about other folks in public facing jobs. If you cannot help folks that are different than you, don't work retail. Don't be an accountant or lawyer the general public can hire. Policework, firefighting, and government jobs that deal with the general public would be off limits.
And yes, I think the government should force you to do this. They already do this in a lesser manner, though fair housing laws and fair labour acts and things like this. No, these aren't perfect, but nothing is - an imperfect fix that improves things is better than none at all, after all.
> But you should have the right to live under a government who provide this for you.
Um... how do you think the government is going to do that? They're going to have to spend money to do it, that's how. And how are they going to get the money? They're either going to get it by raising taxes, or by borrowing it. The effect is the same, but with taxes it's more directly obvious. The government is providing you a house by taking taxes from the rest of us.
So... where do you get this "should"? And how should the government provide housing, without it giving you a right to the labor of the rest of us? (Not just those who build and maintain houses, but those who pay taxes to pay for it.)
But you should have the right to live under a government who provide this for you.
It's like saying that you don't have a basic human right to have that doctor help you – no you don't, but you do have a right to have a doctor help you.
Safe housing is a human right, as is healthcare, as is food and water, because these things are essential for life.