/** * @see parent::loadComplete() */ function loadComplete() { parent::loadComplete(); $this->loadIPP(); $this->loadRefPhotoIdentite(); $this->loadRefsCorrespondantsPatient(); $this->loadRefDossierMedical(); $this->_ref_dossier_medical->canDo(); $this->_ref_dossier_medical->loadRefsAntecedents(); $this->_ref_dossier_medical->loadRefsTraitements(); $prescription = $this->_ref_dossier_medical->loadRefPrescription(); if ($prescription && is_array($prescription->_ref_prescription_lines)) { foreach ($prescription->_ref_prescription_lines as $_line) { $_line->loadRefsPrises(); } } $this->loadRefLatestConstantes(null, array("poids", "taille")); $const_med = $this->_ref_constantes_medicales; if ($const_med) { $this->_poids = $const_med->poids; $this->_taille = $const_med->taille; } }