At least one patient in Lothian has waited more than three years for an outpatient appointment about their heart.