예제 #1
0
$sejour_id = CValue::get("sejour_id");
$contexte = CValue::get("contexte");
$user = CMediusers::get();
$_ref_object = new CSejour();
if ($sejour_id) {
    $sejour = new CSejour();
    $sejour->load($sejour_id);
    $_ref_object = $sejour;
    if (!$contexte) {
        $contexte = "pmsi";
    }
}
if ($prescription_id) {
    $prescription = new CPrescription();
    $prescription->load($prescription_id);
    $prescription->loadRefObject();
    $_ref_object = $prescription->_ref_object;
    if (!$contexte) {
        $contexte = $user->isPraticien() ? "prescription" : "pharmacie";
    }
}
$favoris = new CSearchThesaurusEntry();
$favoris_sans_cibles = new CSearchThesaurusEntry();
$targets = new CSearchTargetEntry();
$actes_ccam = array();
$diags_cim = array();
$results = array();
$tab_favoris = array();
$date = CMbDT::date("-1 month");
$types = array();
$group = CGroups::loadCurrent();