/** * Method to load the target object of thesaurus target * * @return CActeNGAP|CCodeCCAM|CCodeCIM10 */ function loadRefTarget() { if ($this->object_class && $this->object_id) { switch ($this->object_class) { case "CCodeCIM10": $object = new CCodeCIM10(); $object->code = $this->object_id; $object->loadLite(); $this->_ref_target = $object; break; case "CCodeCCAM": $object = new CCodeCCAM($this->object_id); $object->load(); $this->_ref_target = $object; break; case "CActeNGAP": $object = new CActeNGAP(); $object->code = $this->object_id; $object->loadMatchingObject(); $this->_ref_target = $object; break; case "CMedicamentClasseATC": $object = new CMedicamentClasseATC(); $niveau = $object->getNiveau($this->object_id); $object->loadClasseATC($niveau, $this->object_id); $this->_ref_target = $object; break; default: // nothing to do break; } } return $this->_ref_target; }
/** * Mapping des données depuis la base de données * * @param array $row Ligne d'enregistrement de de base de données * * @return void */ function map($row) { $this->date_effet = $row["DATEEFFET"]; $this->acte_asso = $row["ACTEASSO"]; $this->activite_asso = $row["ACTIVITEASSO"]; $this->regle = $row["REGLE"]; $this->_ref_code = CCodeCCAM::getCodeInfos($this->acte_asso); }
/** * CActe redefinition * * @param string $code Serialised full code * * @return void */ function setFullCode($code) { $details = explode("-", $code); if (count($details) > 2) { $this->code_acte = $details[0]; $this->code_activite = $details[1]; $this->code_phase = $details[2]; // Modificateurs if (count($details) > 3) { $modificateurs = str_split($details[3]); $list_modifs_actifs = str_split(CCodeCCAM::getModificateursActifs()); $this->modificateurs = implode('', array_intersect($modificateurs, $list_modifs_actifs)); } // Dépassement if (count($details) > 4) { $this->montant_depassement = str_replace("*", "-", $details[4]); } // Code association if (count($details) > 5) { $this->code_association = $details[5]; } // Remboursement if (count($details) > 6) { $this->rembourse = $details[6]; } // Charges supplémentaires if (count($details) > 7) { $this->charges_sup = $details[7]; } // Gratuit if (count($details) > 8) { $this->gratuit = $details[8]; } $this->updateFormFields(); if ($this->facturable === null) { $this->facturable = 1; } } }
/** * Mapping des données depuis la base de données * * @param array $row Ligne d'enregistrement de de base de données * * @return void */ function map($row) { $this->date_effet = $row["DATEEFFET"]; $this->code_procedure = $row["CODEPROCEDURE"]; $this->_ref_code = CCodeCCAM::getCodeInfos($this->code_procedure); }
/** * Récupération des actes radio * * @return array Tableau des actes */ function getActeRadio() { return CCodeCCAM::getActeRadio($this->code); }
static function get($code) { $cache = new Cache(__METHOD__, func_get_args(), self::$cache_layers); if ($cache->exists()) { return $cache->get(); } // Chargement $code_ccam = new CCodeCCAM($code); $code_ccam->load(); return $cache->put($code_ccam, true); }