add get patient appointment and log params for each query