/**
  * @see parent::loadRefsDocs()
  */
 function loadRefsDocs()
 {
     parent::loadRefsDocs();
     if (!$this->_docitems_from_dossier_anesth) {
         // On ajoute les documents des dossiers d'anesthésie
         if (!$this->_refs_dossiers_anesth) {
             $this->loadRefConsultAnesth();
         }
         foreach ($this->_refs_dossiers_anesth as $_dossier_anesth) {
             $_dossier_anesth->_docitems_from_consult = true;
             $_dossier_anesth->loadRefsDocs();
             $this->_ref_documents = CMbArray::mergeKeys($this->_ref_documents, $_dossier_anesth->_ref_documents);
         }
     }
     return count($this->_ref_documents);
 }