Is it legal to charge a patient for a missed medical appointment?
Yes. Professionals' time is valuable and your flakiness cost the doctor money that he could have earned seeing other patients.
If the patient was notified that there would be a missed appointment charge at the time the appointment was made, yes.