Write a function that takes a list of patient appointments and returns only those that are upcoming.
Each appointment is a dictionary containing a patient identifier and an is_upcoming Boolean. Return the matching appointment dictionaries in their original order without modifying the input list.
The function should return an empty list when no appointments are upcoming.
patient_id and a Boolean is_upcomingdef filter_upcoming_appointments(appointments):