I'm not sure this is entirely legal, if done primarily for the purpose of getting the miles. There may be some problems with the cardholder agreement or the common law on this one.
In any event, I'm surprised the hospital would cut a check. They're probably writing off 2-3% of your bill (the participating merchant fee) when they do that.