NHI enrollment is mandatory for all citizens and foreigners legally residing in Taiwan for more than 6 months.