We have lots of examples of governments doing this with ranges from poor to fair to good results. To my knowledge, the US is the only widescale attempt at market-based health care, with results of 2x the OECD average of health care cost per capita [1].
[1] https://read.oecd-ilibrary.org/social-issues-migration-healt...