예제 #1
0
 /**
  * @see parent::fillTemplate()
  */
 function fillTemplate(&$template)
 {
     $this->loadRefsFwd();
     $this->_ref_consultation->fillTemplate($template);
     $this->fillLimitedTemplate($template);
     $this->_ref_operation->fillLimitedTemplate($template);
     $this->_ref_sejour->fillLimitedTemplate($template);
     // Dossier médical
     $this->_ref_sejour->loadRefDossierMedical()->fillTemplate($template, "Sejour");
     if (CModule::getActive("dPprescription")) {
         $sejour = $this->_ref_sejour;
         $sejour->loadRefsPrescriptions();
         $prescription = isset($sejour->_ref_prescriptions["pre_admission"]) ? $sejour->_ref_prescriptions["pre_admission"] : new CPrescription();
         $prescription->type = "pre_admission";
         $prescription->fillLimitedTemplate($template);
         $prescription = isset($sejour->_ref_prescriptions["sejour"]) ? $sejour->_ref_prescriptions["sejour"] : new CPrescription();
         $prescription->type = "sejour";
         $prescription->fillLimitedTemplate($template);
         $prescription = isset($sejour->_ref_prescriptions["sortie"]) ? $sejour->_ref_prescriptions["sortie"] : new CPrescription();
         $prescription->type = "sortie";
         $prescription->fillLimitedTemplate($template);
     }
 }