function loadRefIndication() { $medicament_indication = new CMedicamentIndication(); return $this->_ref_indication = $medicament_indication->getIndication($this->indication_id, $this->indication_group_id); }
$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); } } else { if ($commentaire) { $whereMed["prescription_line_medicament.commentaire"] = "LIKE '%" . addslashes($commentaire) . "%'"; } } } } } } }