If you are ordinarily resident within the United Kingdom then you will be entitled to a UK issued EHIC. If you are not a UK national, there may be some restrictions in place in relation to countries in which you can receive treatment, so please check your country’s own agreements with other countries before travelling.
If you go to work, in another European Econmic Area country or Switzerland, and are either employed by a UK company or self-employed within the UK , you are entitled to a UK-issued EHIC and this includes any dependants who may be going with you for up to one year. This is however dependant on HM Revenue and Customs confirming that you are continuing to pay compulsory UK National Insurance contributions. If your employment or self-employment is going to last longer than a period of 12 months then you may be able to continue paying your compulsory UK National Insurance contributions and use your EHIC. However, this can be dependant on the country you are working within. For more information, please contact your nearest HM Revenue and Customs office.
The EHIC is however not valid for persons who are moving abroad to live or those going abroad to work for a foreign employer.