That's true of the UK system too. People get public treatment, but can go private if they wish. There are some restrictions on novel cancer medications if those are shown to be both expensive and minimally effective. I don't know if it's a good thing that dying people are protected from high pressure selling of pharmaceutical companies or whether the government should just allow people to spend tens of thousands of pounds on medication that may not extend their life and may not improve (and may decrease) their quality of life for the remaining weeks they have.