It's worse than this, though.
You pay whether the doctor killed you or not. Roughly a quarter million Americans are murdered annually by preventable medical errors, and nobody cares. Furthermore, your estate gets full billing after they kill you.
Connecting billing to outcomes would go a long way to fixing this disaster of a system. It would help align incentives for these sociopathic quacks to stop murdering their patients en masse.
You pay: $reasonable_amount if your oncologist gets your cancer into remission, but you pay precisely $0 if the attending physician didn't bother reading your chart because they had to tee off at 3pm and then grab dinner at Fleming's with their mistress, so you got the wrong medication/procedure and you're confined to a wheelchair for life, or dead.
I can't think of any other profession, other than attorneys, where outcomes aren't intimately tied with compensation. Doctors and nurses, as modernity's new Gods, need to be brought down a few pegs with regard to this extravagant privilege.
... to say nothing of the fact that they are worse diagnosticians than a buggy Expert System written in Perl by a drunk college student in 1994, but because they are human, we should rely on them to make life or death decisions. But that's a discussion for another day.