In Germany, you can receive advice/counselling and medical treatment and visit a doctor without your partner or family finding out.
Exception: infectious disease
It can be the case with some diseases that your doctor must inform the health authority of the disease. This happens when a disease is very infectious and can be very dangerous to other people.