function rechercher_patient(&$data, $champ, $critere, $debut, $fin)
{
    $mypdo = new mypdo();
    $liste_patients = $mypdo->liste_patient($champ, $critere, $debut, $fin);
    $patient = array();
    $i = 0;
    if ($liste_patients !== false) {
        while ($objPatient = $liste_patients->fetchObject()) {
            $patient['id'] = $objPatient->ID_PATIENT;
            $patient['name'] = $objPatient->NOM;
            $patient['full_name'] = $objPatient->NOM . " " . $objPatient->PRENOM;
            $patient['avatar_url'] = "image/infirmier/default.png";
            $patient['text'] = "texte";
            $data['items'][$i] = $patient;
            $i++;
        }
        $data['total_count'] = $liste_patients->rowCount();
    } else {
        $data['total_count'] = 0;
    }
}