Whether you receive healthcare in another country depends on your situation. If so, note that this only applies to medically necessary care.
You live in an EU/EEA country, Switzerland or the United Kingdom
Do you need medically necessary care while staying in another EU/EEA country, Switzerland or the United Kingdom? If so, use your European Health Insurance Card (EHIC). You can apply for an EHIC online. You cannot use the EHIC in your country of residence. There you use the local health insurance card. To cover healthcare during your holiday in countries outside the EU/EEA, Switzerland or the United Kingdom, you need to take out additional insurance or travel insurance.
You live in another treaty country
If you do not live in an EU/EEA country, Switzerland or the United Kingdom, you are not entitled to an EHIC. To cover medical expenses when staying in other countries, it is useful to take out additional insurance or travel insurance.
When do I need permission?
Do you want to go to another country especially for medical treatment? Or would you like to buy medicines in another country? You first need to permission from the healthcare insurance fund in your country of residence. If you don't have permission (yet), you run the risk of having to pay the costs yourself.
Read more on I want to go abroad for medical treatment