Patient appointment cancel and refund

Hi all. Is there a provision to refund a patient appointment? There is a provision to cancel the appointment, but that deletes the transaction from the ledger as well.
I tried making a credit note from the invoice but it gave me an error that the item referenced by patient appointment xxx is already invoiced.

Any suggestions?

Thanks

Appointment cancel also cancels the linked Sales Invoice, but I think the associated payment can be dealt with manually? Will check this and update you.