$produits = $composition_bdm->loadListProduits($composant); switch (CMedicament::getBase()) { default: case "bcb": $codes_cip = @CMbArray::pluck($produits, "code_cip"); $whereMed[] = "prescription_line_medicament.code_cip " . CSQLDataSource::prepareIn($codes_cip); $whereMix[] = "prescription_line_mix_item.code_cip " . CSQLDataSource::prepareIn($codes_cip); break; case "vidal": $codes_cis = @CMbArray::pluck($produits, "code_cis"); $whereMed[] = "prescription_line_medicament.code_cis " . CSQLDataSource::prepareIn($codes_cis); $whereMix[] = "prescription_line_mix_item.code_cis " . CSQLDataSource::prepareIn($codes_cis); } } else { if ($indication) { switch (CMedicament::getBase()) { default: case "bcb": $bcb_indication = new CBcbIndication(); $produits = $bcb_indication->searchProduits($indication, $type_indication); $codes_cip = CMbArray::pluck($produits, "Code_CIP"); $whereMed[] = "prescription_line_medicament.code_cip " . CSQLDataSource::prepareIn($codes_cip); $whereMix[] = "prescription_line_mix_item.code_cip " . CSQLDataSource::prepareIn($codes_cip); break; case "vidal": $indication_bdm = new CMedicamentIndication(); $produits = $indication_bdm->loadListProduits($indication); $codes_cis = @CMbArray::pluck($produits, "code_cis"); $whereMed[] = "prescription_line_medicament.code_cis " . CSQLDataSource::prepareIn($codes_cis); $whereMix[] = "prescription_line_mix_item.code_cis " . CSQLDataSource::prepareIn($codes_cis); }
<?php /** * $Id$ * * @package Mediboard * @subpackage soins * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision$ */ $sejour_id = CValue::get("sejour_id"); $date = CValue::get("date"); $default_tab = CValue::get("default_tab", CMedicament::getBase() == "vidal" ? "prescription_sejour" : "dossier_traitement" . (CAppUI::conf("soins Other vue_condensee_dossier_soins", CGroups::loadCurrent()) ? "_compact" : "")); $popup = CValue::get("popup", 0); $modal = CValue::get("modal", 0); $operation_id = CValue::get("operation_id"); $mode_pharma = CValue::get("mode_pharma", 0); $sejour = new CSejour(); $sejour->load($sejour_id); if (CModule::getActive("dPprescription")) { CPrescription::$_load_lite = true; } $sejour->loadRefGrossesse(); $sejour->loadRefPraticien(); $prescription_sejour = $sejour->loadRefPrescriptionSejour(); $sejour->loadJourOp($date); $prescription_sejour->loadJourOp($date); $prescription_sejour->loadRefCurrentPraticien(); $prescription_sejour->loadLinesElementImportant(); $patient = $sejour->loadRefPatient();
<?php /** * $Id: ajax_vw_dossier_soin.php 28685 2015-06-23 12:01:35Z flaviencrochard $ * * @package Mediboard * @subpackage soins * @author SARL OpenXtrem <*****@*****.**> * @license GNU General Public License, see http://www.gnu.org/licenses/gpl.html * @version $Revision: 28685 $ */ CCanDo::checkRead(); if (CMedicament::getBase() == "vidal") { CAppUI::stepMessage(UI_MSG_WARNING, "Cette fonctionnalité n'est pas encore présente."); CApp::rip(); } $group = CGroups::loadCurrent(); $sejour_id = CValue::getOrSession("sejour_id"); $date = CValue::getOrSession("date_plan_soins"); $nb_decalage = CValue::get("nb_decalage"); $mode_dossier = CValue::get("mode_dossier", "administration"); $chapitre = CValue::get("chapitre"); // Chapitre a rafraichir $object_id = CValue::get("object_id"); $object_class = CValue::get("object_class"); $unite_prise = CValue::get("unite_prise"); $without_check_date = CValue::get("without_check_date", "0"); $hide_close = CValue::get("hide_close", 0); $regroup_lines = CValue::get("regroup_lines"); $hide_old_lines = CValue::get("hide_old_lines", CAppUI::conf("soins suivi hide_old_line", $group->_guid)); $hide_line_inactive = CValue::get("hide_line_inactive", CAppUI::pref("hide_line_inactive"));