Here is an article dealing with that exact topic: https://www.stern.de/amp/gesundheit/corona--medizinische-gru...
Its in german, but tl:dr: There are very few conditions that would actually prevent the vaccination, it essentially boils down to very specific allergies or early stages of pregnancy.