* @version  $Revision$
 * @link     http://www.mediboard.org
 */
CCanDo::checkRead();
$consult_id = CValue::get("consult_id");
$consult = new CConsultation();
$consult->load($consult_id);
$consult->countActes();
$consult->loadExtCodesCCAM();
$consult->getAssociationCodesActes();
$consult->loadPossibleActes();
$consult->canDo();
// Chargement des actes NGAP
$consult->loadRefsActesNGAP();
// Initialisation d'un acte NGAP
$acte_ngap = CActeNGAP::createEmptyFor($consult);
if (CAppUI::conf('dPccam CCodeCCAM use_new_association_rules')) {
    // Chargement des règles de codage
    $consult->loadRefsCodagesCCAM();
    foreach ($consult->_ref_codages_ccam as $_codages_by_prat) {
        foreach ($_codages_by_prat as $_codage) {
            $_codage->loadPraticien()->loadRefFunction();
            $_codage->loadActesCCAM();
            $_codage->getTarifTotal();
            foreach ($_codage->_ref_actes_ccam as $_acte) {
                $_acte->getTarif();
            }
        }
    }
}
$sejour = $consult->loadRefSejour();
            $list_mode_sortie = $mode_sortie->loadGroupList($where);
        }
    }
}
$smarty = new CSmartyDP();
$smarty->assign("listAnesths", $listAnesths);
$smarty->assign("listChirs", $listChirs);
$smarty->assign("services", $services);
$smarty->assign("list_mode_sortie", $list_mode_sortie);
$smarty->assign("consult", $consult);
$smarty->assign("consult_anesth", $consult_anesth);
$smarty->assign("patient", $patient);
$smarty->assign("_is_anesth", $user->isAnesth());
$smarty->assign("antecedent", new CAntecedent());
$smarty->assign("traitement", new CTraitement());
$smarty->assign("acte_ngap", CActeNGAP::createEmptyFor($consult));
$smarty->assign("liste_dents", $liste_dents);
if (CModule::getActive("dPprescription")) {
    $smarty->assign("line", new CPrescriptionLineMedicament());
}
$smarty->assign("userSel", $user);
$smarty->assign("user", $user);
$smarty->assign("sejour_id", $sejour_id);
$smarty->assign("today", CMbDT::date());
$smarty->assign("isPrescriptionInstalled", CModule::getActive("dPprescription"));
if ($consult_anesth->_id) {
    $consult_anesth->loadRefOperation();
    $consult_anesth->loadRefsTechniques();
    $anesth = new CTypeAnesth();
    $anesth = $anesth->loadGroupList();
    $smarty->assign("list_etat_dents", $list_etat_dents);
        foreach ($_codages_by_prat as $_codage) {
            $_codage->loadPraticien()->loadRefFunction();
            $_codage->loadActesCCAM();
            $_codage->getTarifTotal();
            foreach ($_codage->_ref_actes_ccam as $_acte) {
                $_acte->getTarif();
            }
        }
    }
}
// Chargement des praticiens
$listAnesths = new CMediusers();
$listAnesths = $listAnesths->loadAnesthesistes(PERM_DENY);
$listChirs = new CMediusers();
$listChirs = $listChirs->loadPraticiens(PERM_DENY);
//Initialisation d'un acte NGAP
$acte_ngap = CActeNGAP::createEmptyFor($operation);
// Liste des dents CCAM
$liste_dents = reset(CDentCCAM::loadList());
$user = CMediusers::get();
$user->isPraticien();
// Création du template
$smarty = new CSmartyDP("modules/dPsalleOp");
$smarty->assign("acte_ngap", $acte_ngap);
$smarty->assign("liste_dents", $liste_dents);
$smarty->assign("subject", $operation);
$smarty->assign("listAnesths", $listAnesths);
$smarty->assign("listChirs", $listChirs);
$smarty->assign('user', $user);
$smarty->assign("_is_dentiste", $operation->_ref_chir->isDentiste());
$smarty->display("inc_codage_actes.tpl");
$object_id = CValue::getOrSession("object_id");
$object_class = CValue::getOrSession("object_class");
// Chargement de la consultation
/** @var CCodable $object */
$object = new $object_class();
$object->load($object_id);
$object->countActes();
$object->loadRefsActesNGAP();
$object->loadRefPraticien();
$object->loadRefPatient();
$date = CValue::getOrSession("date", CMbDT::date());
$date_now = CMbDT::date();
if ($object instanceof CConsultation) {
    $object->loadRefSejour()->loadDiagnosticsAssocies();
}
// Initialisation d'un acte NGAP
$acte_ngap = CActeNGAP::createEmptyFor($object);
// Création du template
$smarty = new CSmartyDP();
$smarty->assign("acte_ngap", $acte_ngap);
$smarty->assign("object", $object);
$smarty->assign("subject", $object);
if ($object_class == "CConsultation") {
    $smarty->assign("_is_dentiste", $object->_is_dentiste);
} elseif ($object_class == "COperation") {
    $object->loadRefChir();
    $smarty->assign("_is_dentiste", $object->_ref_chir->isDentiste());
} else {
    $smarty->assign("_is_dentiste", false);
}
$smarty->display("inc_codage_ngap.tpl");
Beispiel #5
0
                $_codage->loadActesCCAM();
                $_codage->getTarifTotal();
                foreach ($_codage->_ref_actes_ccam as $_acte) {
                    $_acte->getTarif();
                }
            }
        }
    }
}
// Chargement des praticiens
$listAnesths = new CMediusers();
$listAnesths = $listAnesths->loadAnesthesistes(PERM_DENY);
$listChirs = new CMediusers();
$listChirs = $listChirs->loadPraticiens(PERM_DENY);
//Initialisation d'un acte NGAP
$acte_ngap = CActeNGAP::createEmptyFor($devis);
// Liste des dents CCAM
$liste_dents = reset(CDentCCAM::loadList());
$user = CMediusers::get();
$user->isPraticien();
$smarty = new CSmartyDP();
$smarty->assign('devis', $devis);
$smarty->assign("acte_ngap", $acte_ngap);
$smarty->assign("liste_dents", $liste_dents);
$smarty->assign("listAnesths", $listAnesths);
$smarty->assign("listChirs", $listChirs);
$smarty->assign('user', $user);
if ($action == 'open') {
    $smarty->display('inc_edit_devis_container.tpl');
} else {
    $smarty->display('inc_edit_devis.tpl');