If there are indications that a person carries a disease, there is the possibility of refusing entry and residence, of course, but that is not part of the normal scheme on long-term residence here in Germany.
There will be a little change with regard to a very small group of resettled refugees. I know that your country has a major resettlement scheme. For our settled refugees there are health checks in advance, but this does not necessarily prevent these people from coming to Germany.