[Start]
↓
[Greet the patient]
↓
[Check if patient is new or returning]
↓
┌───(New Patient?)───┐
| Yes | No
↓ ↓
[Register] [Retrieve Records]
↓ ↓
[Confirm Purpose of Visit]
↓
[Check Doctor Availability]
↓
[Verify Insurance & Payment]
↓
[Schedule Appointment]
↓
[Generate Confirmation]
↓
[Update Records]
↓
[Guide Patient]
↓
[End]