When you register for the Municipal Personal Records Database of your city, you automatically receive a Citizen Service Number.
With your Citizen Service Number, you can then Apply for a DigiD, that you need to log in to government websites and in healthcare.