/** * @see parent::updateFormFields() */ function updateFormFields() { parent::updateFormFields(); // Noms $anonyme = is_numeric($this->nom); $this->nom = self::applyModeIdentitoVigilance($this->nom, false, null, $anonyme); $this->nom_jeune_fille = self::applyModeIdentitoVigilance($this->nom_jeune_fille, false, null, $anonyme); $this->prenom = self::applyModeIdentitoVigilance($this->prenom, true, null, $anonyme); $this->_nom_naissance = $this->nom_jeune_fille ? $this->nom_jeune_fille : $this->nom; $this->_prenoms = array($this->prenom, $this->prenom_2, $this->prenom_3, $this->prenom_4); if ($this->libelle_exo) { $this->_art115 = preg_match("/pension militaire/i", $this->libelle_exo); } $relative = CMbDate::relative($this->naissance); if ($this->deces) { $relative = CMbDate::relative($this->naissance, $this->deces); } if ($relative["count"] < 0) { $relative["count"] = 0; } $this->evalAge(); $str = $relative["unit"] . ($relative["count"] > 1 ? "s" : "") . ($relative["unit"] == "year" ? "_old" : ""); $this->_age = $relative["count"] . " " . CAppUI::tr($str); $this->checkVIP(); $this->_civilite = CAppUI::tr("CPatient.civilite.{$this->civilite}"); if ($this->civilite === "enf") { $this->_civilite_long = CAppUI::tr("CPatient.civilite." . ($this->sexe === "m" ? "le_jeune" : "la_jeune")); } else { $this->_civilite_long = CAppUI::tr("CPatient.civilite.{$this->civilite}-long"); } $this->_assure_civilite = CAppUI::tr("CPatient.civilite.{$this->assure_civilite}"); if ($this->assure_civilite === "enf") { $this->_assure_civilite_long = CAppUI::tr("CPatient.civilite." . ($this->assure_sexe === "m" ? "le_jeune" : "la_jeune")); } else { $this->_assure_civilite_long = CAppUI::tr("CPatient.civilite.{$this->assure_civilite}-long"); } $nom_naissance = $this->nom_jeune_fille && $this->nom_jeune_fille != $this->nom ? " ({$this->nom_jeune_fille})" : ""; $this->_view = "{$this->_civilite} {$this->nom}{$nom_naissance} {$this->prenom}"; $this->_longview = "{$this->_civilite_long} {$this->nom}{$nom_naissance} {$this->prenom}"; if (CAppUI::conf("dPpatients CPatient manage_identity_status", CGroups::loadCurrent())) { $this->_view .= $this->status ? " [{$this->status}.]" : ""; $this->_longview .= $this->status ? " [{$this->status}.]" : ""; } $this->_view .= $this->vip ? " [Conf.]" : ""; $this->_view .= $this->deces ? " [Décès.]" : ""; $this->_longview .= $this->vip ? " [Conf.]" : ""; $this->_longview .= $this->deces ? " [Décès.]" : ""; // Navigation fields //$this->_dossier_cabinet_url = self::$dossier_cabinet_prefix[CAppUI::pref("DossierCabinet")] . $this->_id; $this->_dossier_cabinet_url = self::$dossier_cabinet_prefix["dPpatients"] . $this->_id; if ($this->pays_insee) { $this->pays = CPaysInsee::getNomFR($this->pays_insee); } if ($this->csp) { $this->_csp_view = $this->getCSPName(); } $this->mapPerson(); }
/** * @see parent::updateFormFields() */ function updateFormFields() { parent::updateFormFields(); $this->mapPerson(); $this->_view = $this->relation ? CAppUI::tr("CCorrespondantPatient.relation." . $this->relation) : $this->relation_autre; $this->_longview = "{$this->nom} {$this->prenom}"; if ($this->date_fin && $this->date_fin < CMbDT::date()) { $this->_is_obsolete = true; } }
/** * @see parent::updateFormFields() */ function updateFormFields() { parent::updateFormFields(); $this->nom = CMbString::upper($this->nom); $this->prenom = CMbString::capitalize(CMbString::lower($this->prenom)); $this->mapPerson(); $this->_shortview = "{$this->nom} {$this->prenom}"; $this->_view = "{$this->nom} {$this->prenom}"; $this->_longview = "{$this->nom} {$this->prenom}"; if ($this->type == "medecin") { $this->_confraternite = $this->sexe == "f" ? "Chère consoeur" : "Cher confrère"; if (!$this->titre) { $this->_view = CAppUI::tr("CMedecin.titre.dr") . " {$this->nom} {$this->prenom}"; $this->_longview = CAppUI::tr("CMedecin.titre.dr-long") . " {$this->nom} {$this->prenom}"; } } if ($this->titre) { $this->_view = CAppUI::tr("CMedecin.titre.{$this->titre}") . " {$this->_view}"; $this->_titre_long = CAppUI::tr("CMedecin.titre.{$this->titre}-long"); $this->_longview = "{$this->_titre_long} {$this->nom} {$this->prenom}"; } if ($this->type && $this->type != 'medecin') { $this->_view .= " ({$this->_specs['type']->_locales[$this->type]})"; $this->_longview .= " ({$this->_specs['type']->_locales[$this->type]})"; } }
/** * @see parent::updateFormFields() */ function updateFormFields() { parent::updateFormFields(); $this->loadRefUser(); $this->updateColor(); }
/** * @see parent::updateFormFields() */ function updateFormFields() { parent::updateFormFields(); $user_first_name = CMbString::capitalize($this->user_first_name); $user_last_name = CMbString::upper($this->user_last_name); $this->_view = "{$user_last_name} {$user_first_name}"; $this->_login_locked = $this->user_login_errors >= CAppUI::conf('admin CUser max_login_attempts'); $this->_user_type_view = CValue::read(self::$types, $this->user_type); $this->mapPerson(); }