Following the UK’s exit from the EU, there’s no longer freedom of movement, so you’ll need to go through the process of becoming a resident as outlined above.
However, if you’re from an EU country or Switzerland, you’ll still be able to use your European Health Insurance Card (EHIC), or a new UK Global Health Insurance Card (GHIC), on a temporary visit to the UK. This means your EHIC will enable you to access public healthcare in the UK if you have a medical emergency or fall ill during your stay. This includes the treatment of pre-existing conditions and routine maternity care, as long as the reason for your visit isn’t specifically for the purpose of receiving medical attention or to give birth.
It's important to note that the EHIC and GHIC don’t cover planned treatment, medical evacuation, or any private healthcare for EU citizens. They are only valid for necessary treatment during temporary stays and shouldn’t be seen as an alternative to registration with the NHS or international health insurance.