You do not retain the same rights with the National Insurance Scheme during a stay outside Norway, as you do in Norway. So do check what would be the case for you. Even payment of social security contributions together with taxes in Norway, does not necessarily result in automatic membership of the National Insurance Scheme.
Your rights will change during a stay outside Norway
you will not be a member of the National Insurance Scheme if you stay outside Norway for a period exceeding 12 months
you will still be a member of the National Insurance Scheme if you stay outside Norway for a period of less than 12 months because of holidays and you have no income
If you get sick and are a member of the National Insurance Scheme
you are not entitled to have your medical expenses covered outside EEA
you will be able to access the same state-provided healthcare as a resident of the country you are visiting (EEA or Switzerland). Presenting the European Health Insurance Card entitles you to treatment
If you get sick and are not a member of the National Insurance Scheme
the National Insurance Scheme will not pay your medical expenses outside Norway. You should buy private travel insurance
on coming back to Norway, you will not be automatically entitled to payment of medical expenses incurred during your stay outside Norway
Other benefits you are receiving in Norway may cease during a stay outside Norway.