Kinda works that way under the NHS in the UK too. Eye and dental care are handled by private opticians and dentists.
You can get financial assistance but most people don't qualify. Working people generally have to pay for both themselves.
Also you only get medication paid for if it's a long term illness or you're on financial assistance.
Some hospitals used to have emergency dentists. Not sure if some still do but I know my local one doesn't.