Without any up front prices, there is no contract that obligates payment. Instead, hospitals collect under the idea of "unjust enrichment" - you needed help, they provided it, and so you should compensate them. But that still doesn't allow them to set arbitrary prices the way they do ($6 for a $0.02 aspirin!), but only to recoup their actual costs. A few form letters that billing department victims could use to assert their legal rights would go a long way.
You wouldn't pay a second post-facto bill from your grocery store based on some justification that "the cashier you went to didn't actually work for the grocery store", and we shouldn't accept similar nonsense from medical providers.