本文整理汇总了PHP中CSejour::loadDiagnosticsAssocies方法的典型用法代码示例。如果您正苦于以下问题:PHP CSejour::loadDiagnosticsAssocies方法的具体用法?PHP CSejour::loadDiagnosticsAssocies怎么用?PHP CSejour::loadDiagnosticsAssocies使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSejour
的用法示例。
在下文中一共展示了CSejour::loadDiagnosticsAssocies方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CSejour
/**
* $Id$
*
* @category PMSI
* @package Mediboard
* @author SARL OpenXtrem <dev@openxtrem.com>
* @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html
* @version $Revision$
* @link http://www.mediboard.org
*/
CCanDo::checkEdit();
$sejour_id = CValue::get("sejour_id");
$sejour = new CSejour();
$sejour->load($sejour_id);
$sejour->loadExtDiagnostics();
$sejour->loadDiagnosticsAssocies();
$sejour->loadRelPatient();
$sejour->_ref_patient->loadRefDossierMedical();
$rss = null;
$cim_das = array();
$cim_das_patient = array();
if (CModule::getActive("atih") && CAppUI::conf("dPpmsi use_cim_pmsi")) {
$rss = new CRSS();
$rss->sejour_id = $sejour_id;
$rss->loadMatchingObject();
$rss->loadRefDiagnostics();
$cim_dp = CCIM10::get($sejour->DP);
$cim_dr = CCIM10::get($sejour->DR);
$code = null;
foreach ($sejour->_diagnostics_associes as $_da) {
$code = CCIM10::get($_da);
示例2: makeTabsCount
//.........这里部分代码省略.........
}
$count += $consult->countBackRefs("examaudio");
$count += $consult->countBackRefs("examnyha");
$count += $consult->countBackRefs("exampossum");
$tabs_count[$_tab] = $count;
break;
case "ExamsComp":
if (!$consultAnesth->_id) {
break;
}
$count += $consult->countBackRefs("examcomp");
if ($consultAnesth->result_ecg) {
$count++;
}
if ($consultAnesth->result_rp) {
$count++;
}
$tabs_count[$_tab] = $count;
break;
case "Intub":
if (!$consultAnesth->_id) {
break;
}
$fields = array("mallampati", "bouche", "distThyro", "mob_cervicale", "etatBucco", "conclusion", "plus_de_55_ans", "edentation", "barbe", "imc_sup_26", "ronflements", "piercing");
foreach ($fields as $_field) {
if ($consultAnesth->{$_field}) {
$count++;
}
}
$count += count(array_filter($list_etat_dents));
$tabs_count[$_tab] = $count;
break;
case "InfoAnesth":
if (!$consultAnesth->_id) {
break;
}
$op = $consultAnesth->loadRefOperation();
$fields_anesth = array("prepa_preop", "premedication", "apfel_femme", "apfel_non_fumeur", "apfel_atcd_nvp", "apfel_morphine");
$fields_op = array("passage_uscpo", "type_anesth", "ASA", "position");
foreach ($fields_anesth as $_field) {
if ($consultAnesth->{$_field}) {
$count++;
}
}
if ($op->_id) {
foreach ($fields_op as $_field) {
if ($op->{$_field}) {
$count++;
}
}
}
if ($consult->rques) {
$count++;
}
$count += $consultAnesth->countBackRefs("techniques");
$tabs_count[$_tab] = $count;
break;
case "dossier_traitement":
break;
case "dossier_suivi":
break;
case "Actes":
$consult->countActes();
$tabs_count[$_tab] = $consult->_count_actes;
if ($sejour->_id) {
if ($sejour->DP) {
$tabs_count[$_tab]++;
}
if ($_sejour->DR) {
$tabs_count[$_tab]++;
}
$sejour->loadDiagnosticsAssocies();
$tabs_count[$_tab] += count($sejour->_diagnostics_associes);
}
break;
case "fdrConsult":
$consult->_docitems_from_dossier_anesth = false;
$consult->countDocs();
$consult->countFiles();
$consult->loadRefsPrescriptions();
$tabs_count[$_tab] = $consult->_nb_docs + $consult->_nb_files;
if (isset($consult->_ref_prescriptions["externe"])) {
$tabs_count[$_tab]++;
}
if ($sejour->_id) {
$sejour->countDocs();
$sejour->countFiles();
$tabs_count[$_tab] += $sejour->_nb_docs + $sejour->_nb_files;
}
break;
case "reglement":
$consult->loadRefFacture()->loadRefsReglements();
$tabs_count[$_tab] = count($consult->_ref_facture->_ref_reglements);
}
}
if (CModule::getActive("dPprescription")) {
CPrescription::$_load_lite = false;
}
return $tabs_count;
}