You can get a price upfront in my experience. Especially for standard procedures. And definitely for outpatient stuff.
But it isn't reasonable to expect upfront pricing in things as complicated as heart surgery. Or where you are going in for unknown problems. There is no way to know what complications may arise or additional procedures, x-rays or scans may be required.