You bring your credit card and cash. When you check out, give your credit card first. If they say no, you change it to cash.
It stands to reason that many hospitals now support UnionPay channels. However, it does not rule out that some hospitals have backward financial settlement systems and do not support credit card settlement.