コード例 #1
0
 /**
  * Set permanent identifier
  *
  * @param CMbObject $mbObject Object
  *
  * @return void
  */
 function setIdPermanent(CMbObject $mbObject)
 {
     if ($mbObject instanceof CPatient) {
         if (!$mbObject->_IPP) {
             $mbObject->loadIPP($this->group_id);
         }
         $this->id_permanent = $mbObject->_IPP;
     }
     if ($mbObject instanceof CSejour) {
         if (!$mbObject->_NDA) {
             $mbObject->loadNDA($this->group_id);
         }
         $this->id_permanent = $mbObject->_NDA;
     }
 }