new method for searching anamnesis according to patient_id