For society as a whole, that's a disastrous policy. Compare ANY country with a health care system run on that principle, and you'll find people struggling and in debt, big pharma making big profits, and health outcomes significantly below par.
The reason the market doesn't work well in health care is that demand is inelastic. If you have a serious illness, you have no choice but to consult a doctor. That's the reason you'll find countries where states regulate / provide health care outperform market-systems in cost and outcomes.
E.g. here's health outcome measured as life expectancy (y) vs expenditure per person (x)
https://cdn.nostr.build/i/595170174aee2593fde7e2fc416c144767000a9fc195444e2982906500c04bb6.pngE
https://ourworldindata.org/grapher/life-expectancy-vs-health-expenditure-per-capita?country=USA~GBR~FRA~ESP~DEU~SWE~CHE