flip order of get_user_appointments_old_json