pacjent query fixed